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

View File

@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mayacontigo-riesgos-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: mayacontigo-riesgos.app.ia-innovacion.work
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: mayacontigo-riesgos-service
port:
number: 80

View File

@@ -0,0 +1,17 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: mayacontigo-riesgos-vault
namespace: apps
spec:
refreshInterval: "15s"
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: mayacontigo-riesgos-secret
data:
- secretKey: VAULT_TOKEN
remoteRef:
key: mayacontigo-riesgos
property: VAULT_TOKEN

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: mayacontigo-riesgos-service
labels:
app: mayacontigo-riesgos
spec:
selector:
app: mayacontigo-riesgos
ports:
- port: 80
targetPort: 80
protocol: TCP
type: ClusterIP