fix: harden GitOps deploy and rollback
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 1m22s

This commit is contained in:
2026-01-29 15:21:07 -03:00
parent ecd298442b
commit fd17be5408
7 changed files with 45 additions and 15 deletions

View File

@@ -11,9 +11,17 @@ spec:
path: k8s/overlays/prod
destination:
server: https://kubernetes.default.svc
namespace: vendaweb-api
namespace: vendaweb-prod
syncPolicy:
automated:
selfHeal: true
prune: true
retry:
limit: 2
backoff:
duration: 5s
factor: 2
maxDuration: 3m
syncOptions:
- CreateNamespace=true
- PruneLast=true

View File

@@ -5,7 +5,15 @@ metadata:
labels:
app: vendaweb-api
spec:
replicas: 15
replicas: 3
revisionHistoryLimit: 5
minReadySeconds: 10
progressDeadlineSeconds: 600
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: vendaweb-api
@@ -16,6 +24,7 @@ spec:
spec:
imagePullSecrets:
- name: gitea-auth
terminationGracePeriodSeconds: 30
containers:
- name: api
image: git.simplifiquehc.com.br/simplifique/vendaweb-api:589fa29

View File

@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: vendaweb-api
spec:
replicas: 15

View File

@@ -8,3 +8,5 @@ resources:
patches:
- path: service-patch.yaml
- path: deployment-prod-patch.yaml
- path: deployment-image-digest-patch.yaml