Files
Vendaweb-api/k8s/base/deployment.yaml
Joelbrit0 48d6e64ada
Some checks failed
Build (develop) / Promote (main) / build-and-push-deploy (push) Failing after 24s
fix: update registry url to oci.simplifiquehc.com.br
2026-01-29 13:24:58 -03:00

63 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: vendaweb-api
labels:
app: vendaweb-api
spec:
replicas: 15
selector:
matchLabels:
app: vendaweb-api
template:
metadata:
labels:
app: vendaweb-api
spec:
imagePullSecrets:
- name: harbor-secret
containers:
- name: api
image: 172.35.0.216/library/vendaweb-api:latest
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