mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-18 13:34:08 +01:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: forfarm-backend
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: forfarm-backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: forfarm-backend
|
|
spec:
|
|
containers:
|
|
- name: backend
|
|
image: sosokker/forfarm-backend:latest
|
|
ports:
|
|
- containerPort: 8000
|
|
envFrom:
|
|
- configMapRef:
|
|
name: forfarm-config
|
|
- secretRef:
|
|
name: forfarm-secrets
|
|
resources:
|
|
requests: # Minimum guaranteed resources
|
|
memory: "128Mi" # Mebibytes
|
|
cpu: "100m" # 100 millicores (0.1 CPU)
|
|
limits: # Maximum allowed resources
|
|
memory: "256Mi"
|
|
cpu: "500m" # 500 millicores (0.5 CPU)
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 20
|