49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: zadaca-deployment
|
|
labels:
|
|
app: zadaca-deployment
|
|
namespace: student-blazp04
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: zadaca
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: zadaca
|
|
spec:
|
|
containers:
|
|
- name: zadaca
|
|
image: git.fpmoz.sum.ba/blazp04/zadaca:latest
|
|
ports:
|
|
- containerPort: 8000
|
|
envFrom:
|
|
- configMapRef:
|
|
name: zadaca-config
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
timeoutSecounds: 3
|
|
failureTreshold: 3
|
|
lifenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySecounds: 10
|
|
periodSecounds: 15
|
|
timeoutSecounds: 3
|
|
failureTreshold: 3
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "200m"
|