k8s/manifests/01-deployments/flask-htmx-dev.yaml
Simple_Not 58f07a3c31
All checks were successful
continuous-integration/drone/push Build is passing
some structure
2023-07-03 22:59:11 +10:00

38 lines
873 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-dev
namespace: vdk2ch
spec:
replicas: 2
selector:
matchLabels:
app: flask-htmx-dev
template:
metadata:
labels:
app: flask-htmx-dev
spec:
containers:
- name: flask-htmx-dev
image: flask-htmx-board1:dev
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
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