Files
manifesti/k8s/moj-servis/deployment.yaml

50 lines
976 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: moj-servis
namespace: student-martabulic
spec:
replicas: 1
selector:
matchLabels:
app: moj-servis
template:
metadata:
labels:
app: moj-servis
spec:
containers:
- name: moj-servis
image: git.fpmoz.sum.ba/martabulic/moj-servis:1.2
ports:
- containerPort: 8000
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 2
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "150m"