add deployment manifests

This commit is contained in:
Anibal Angulo
2025-11-26 13:24:04 -06:00
parent 9fbcc07426
commit 5e4a155fed
4 changed files with 89 additions and 0 deletions

42
.k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: playground
namespace: apps
labels:
app: playground
spec:
replicas: 1
selector:
matchLabels:
app: playground
template:
metadata:
labels:
app: playground
spec:
imagePullSecrets:
- name: gitea-registry-cred
containers:
- name: playground
image: gitea.ia-innovacion.work/innovacion/playground:latest
env:
- name: VAULT_TOKEN
valueFrom:
secretKeyRef:
name: playground-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