This commit is contained in:
Marcus Bohessef 2025-12-22 21:58:11 -03:00
parent ce1590917e
commit a648c48d1a
2 changed files with 8 additions and 5 deletions

View file

@ -5,6 +5,8 @@ metadata:
namespace: gohorsejobshml namespace: gohorsejobshml
spec: spec:
replicas: 1 replicas: 1
strategy:
type: Recreate # Garante que limpa o pod antigo antes de subir o novo
selector: selector:
matchLabels: matchLabels:
app: gohorse-backoffice-hml app: gohorse-backoffice-hml
@ -12,13 +14,12 @@ spec:
metadata: metadata:
labels: labels:
app: gohorse-backoffice-hml app: gohorse-backoffice-hml
env: development env: staging # Alterado para clareza
spec: spec:
imagePullSecrets: imagePullSecrets:
- name: harbor-registry - name: harbor-registry
containers: containers:
- name: backoffice - name: backoffice
# Imagem apontando para o projeto correto no Harbor
image: in.gohorsejobs.com/gohorsejobs-backoffice-hml/backoffice:latest image: in.gohorsejobs.com/gohorsejobs-backoffice-hml/backoffice:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:

View file

@ -5,6 +5,8 @@ metadata:
namespace: gohorsejobs namespace: gohorsejobs
spec: spec:
replicas: 1 replicas: 1
strategy:
type: Recreate # Crítico para ambientes com pouco recurso
selector: selector:
matchLabels: matchLabels:
app: gohorse-backoffice app: gohorse-backoffice
@ -12,14 +14,14 @@ spec:
metadata: metadata:
labels: labels:
app: gohorse-backoffice app: gohorse-backoffice
env: development env: production # Alterado para production
spec: spec:
imagePullSecrets: imagePullSecrets:
- name: harbor-registry - name: harbor-registry
containers: containers:
- name: backoffice - name: backoffice
# Imagem apontando para o projeto correto no Harbor # CORRIGIDO: Removido o "-backoffice" do caminho para bater com o Drone
image: in.gohorsejobs.com/gohorsejobs-backoffice/backoffice:latest image: in.gohorsejobs.com/gohorsejobs/backoffice:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8521 - containerPort: 8521