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