← Каталог
Надежность и доступность — Механизмы прогрева
Фрагмент из «Надежность и доступность»: Механизмы прогрева.
# Kubernetes — конфигурация startup probe
apiVersion: apps/v1
kind: Deployment
spec:
template:
spec:
containers:
- name: app
startupProbe:
httpGet:
path: /health/startup
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 30 # До 150 секунд на старт
readinessProbe:
httpGet:
path: /health/ready
port: 8080
periodSeconds: 10
livenessProbe:
httpGet:
path: /health/live
port: 8080
periodSeconds: 15 # Kubernetes — конфигурация startup probe
apiVersion: apps/v1
kind: Deployment
spec:
template:
spec:
containers:
- name: app
startupProbe:
httpGet:
path: /health/startup
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 30 # До 150 секунд на старт
readinessProbe:
httpGet:
path: /health/ready
port: 8080
periodSeconds: 10
livenessProbe:
httpGet:
path: /health/live
port: 8080
periodSeconds: 15