add app set

This commit is contained in:
2025-11-24 16:49:46 +00:00
parent 11214c47f6
commit 9b0e7d4177
8 changed files with 113 additions and 373 deletions

View File

@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mayacontigo-ocp
labels:
app: mayacontigo-ocp
spec:
replicas: 1
selector:
matchLabels:
app: mayacontigo-ocp
template:
metadata:
labels:
app: mayacontigo-ocp
spec:
imagePullSecrets:
- name: gitea-registry-cred
containers:
- name: mayacontigo-ocp
image: gitea.ia-innovacion.work/innovacion/mayacontigo-ocp:latest
env:
- name: VAULT_TOKEN
valueFrom:
secretKeyRef:
name: mayacontigo-ocp-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,9 @@
apiVersion: v1
kind: Secret
metadata:
name: mayacontig-ocp-secret
annotations:
avp.kubernetes.io/path: "secret/data/mayacontigo-ocp"
type: Opaque
stringData:
VAULT_TOKEN: <VAULT_TOKEN>