46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gohorse-backend-prd
|
|
namespace: gohorsejobs
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: gohorse-backend-prd
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gohorse-backend-prd
|
|
env: production
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-registry
|
|
containers:
|
|
- name: backend
|
|
image: in.gohorsejobs.com/gohorsejobs/gohorsejobs-backend:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8521
|
|
envFrom:
|
|
- secretRef:
|
|
name: backend-secrets
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "200m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1000m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8521
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8521
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|