k8s/manifests/01-deployments/flask-htmx-master.yaml

40 lines
925 B
YAML
Raw Normal View History

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