apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-master
namespace: vdk2ch
spec:
replicas: 2
selector:
matchLabels:
app: flask-htmx-master
template:
labels:
containers:
- name: flask-htmx-master
image: flask-htmx-board1:master-of-slaves
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
livenessProbe:
httpGet:
path: /liveness
port: 5000
initialDelaySeconds: 2
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 2
readinessProbe:
path: /readiness
initialDelaySeconds: 3
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 3