32 lines
674 B
YAML
32 lines
674 B
YAML
# services/ci-demo/deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ci-demo
|
|
namespace: ci-demo
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: ci-demo
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: ci-demo
|
|
spec:
|
|
nodeSelector:
|
|
hardware: rpi4
|
|
containers:
|
|
- name: ci-demo
|
|
image: registry.bstein.dev/infra/ci-demo:latest
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 2
|
|
periodSeconds: 5
|
|
|