ืืืขืืื ืื ื ืจืื ืืช ืืืืื ืืงืจืืื ืฉื Readiness Probe:
ื ืขืืื ืขื:
ื ืืฆืืจ ืชืืงืืื readiness-probes ืื ืืฆืืจ ืงืืืฅ:
vi api-deployment.yaml
ืืืืง:
apiVersion: apps/v1
kind: Deployment
metadata:
name: color-api
spec:
replicas: 6
selector:
matchLabels:
app: color-api
template:
metadata:
labels:
app: color-api
spec:
containers:
- name: color-api
image: lironefitoussi/color-api:1.2.1
ports:
- containerPort: 80
resources:
limits:
cpu: "500m"
memory: 512Mi
env:
- name: DELAY_STARTUP
value: "false"
- name: FAIL_LIVENESS
value: "false"
- name: FAIL_READINESS
value: "true"
startupProbe:
httpGet:
path: /up
port: 80
failureThreshold: 2
periodSeconds: 3
readinessProbe:
httpGet:
path: /ready
port: 80
failureThreshold: 2
periodSeconds: 5