Files
step3/api/QuestionsApi/k8s/deployment.yaml
T

29 lines
608 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: step3-questions
labels:
app: step3-questions
spec:
replicas: 2
selector:
matchLabels:
app: step3-questions
template:
metadata:
labels:
app: step3-questions
spec:
containers:
- name: step3-questions
image: step3-questions:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5008
readinessProbe:
httpGet:
path: /healthz
port: 5008
initialDelaySeconds: 5
periodSeconds: 10