mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
38 lines
951 B
YAML
38 lines
951 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app-demo
|
|
spec:
|
|
replicas: 2
|
|
revisionHistoryLimit: 3
|
|
selector:
|
|
matchLabels:
|
|
app: app-demo
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: app-demo
|
|
spec:
|
|
containers:
|
|
- image: lukastrkan/cc-app-demo@sha256:10590db789cef5f1a58bb603cce0b502ce2b4054af956d9b71d60e3f02045894
|
|
name: app-demo
|
|
ports:
|
|
- containerPort: 8000
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
- image: lukastrkan/cc-app-demo
|
|
name: app-demo-worker
|
|
command: [ "python3", "worker/email_worker.py" ]
|