36 lines
No EOL
929 B
YAML
36 lines
No EOL
929 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gohorse-backoffice-hml
|
|
namespace: gohorsejobshml
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate # Garante que limpa o pod antigo antes de subir o novo
|
|
selector:
|
|
matchLabels:
|
|
app: gohorse-backoffice-hml
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gohorse-backoffice-hml
|
|
env: staging # Alterado para clareza
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-registry
|
|
containers:
|
|
- name: backoffice
|
|
image: in.gohorsejobs.com/gohorsejobs-backoffice-hml/backoffice:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8521
|
|
envFrom:
|
|
- secretRef:
|
|
name: backend-secrets
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m" |