add healthcheck to remaining apps

This commit is contained in:
2025-11-25 07:05:14 +00:00
parent eccd53673c
commit 6d9686e373
87 changed files with 850 additions and 632 deletions

View File

@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mayacontigo-riesgos
namespace: apps
labels:
app: mayacontigo-riesgos
spec:
replicas: 1
selector:
matchLabels:
app: mayacontigo-riesgos
template:
metadata:
labels:
app: mayacontigo-riesgos
spec:
imagePullSecrets:
- name: gitea-registry-cred
containers:
- name: mayacontigo-riesgos
image: gitea.ia-innovacion.work/innovacion/mayacontigo-riesgos:latest
env:
- name: VAULT_TOKEN
valueFrom:
secretKeyRef:
name: mayacontigo-riesgos-secret
key: VAULT_TOKEN
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 15
periodSeconds: 20