Files
Vendaweb-api/k8s/base/deployment.yaml
Joelbrit0 fd17be5408
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 1m22s
fix: harden GitOps deploy and rollback
2026-01-29 15:21:09 -03:00

72 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: vendaweb-api
labels:
app: vendaweb-api
spec:
replicas: 3
revisionHistoryLimit: 5
minReadySeconds: 10
progressDeadlineSeconds: 600
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: vendaweb-api
template:
metadata:
labels:
app: vendaweb-api
spec:
imagePullSecrets:
- name: gitea-auth
terminationGracePeriodSeconds: 30
containers:
- name: api
image: git.simplifiquehc.com.br/simplifique/vendaweb-api:589fa29
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8067
protocol: TCP
envFrom:
- configMapRef:
name: vendaweb-api-config
- secretRef:
name: vendaweb-api-secrets
livenessProbe:
httpGet:
path: /v1/health
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /v1/health
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 6
startupProbe:
httpGet:
path: /v1/health
port: http
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 24
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi