From a2a1ac7fa61854fe9db5789dc1d3a633037b47d4 Mon Sep 17 00:00:00 2001 From: Anibal Angulo Date: Fri, 28 Nov 2025 11:08:02 -0600 Subject: [PATCH] update manifests --- .k8s/deployment.yaml | 15 ++++++--------- .k8s/ingress.yaml | 1 + .k8s/service.yaml | 3 ++- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.k8s/deployment.yaml b/.k8s/deployment.yaml index b0b7393..277bf2e 100644 --- a/.k8s/deployment.yaml +++ b/.k8s/deployment.yaml @@ -20,23 +20,20 @@ spec: containers: - name: playground image: gitea.ia-innovacion.work/innovacion/playground:latest - env: - - name: VAULT_TOKEN - valueFrom: - secretKeyRef: - name: playground-secret - key: VAULT_TOKEN + envFrom: + - secretRef: + name: playground-secret ports: - - containerPort: 80 + - containerPort: 3000 readinessProbe: httpGet: path: / - port: 80 + port: 3000 initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: httpGet: path: / - port: 80 + port: 3000 initialDelaySeconds: 15 periodSeconds: 20 diff --git a/.k8s/ingress.yaml b/.k8s/ingress.yaml index 041475f..5b97daa 100644 --- a/.k8s/ingress.yaml +++ b/.k8s/ingress.yaml @@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: playground-ingress + namespace: apps annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: diff --git a/.k8s/service.yaml b/.k8s/service.yaml index f0de260..c825657 100644 --- a/.k8s/service.yaml +++ b/.k8s/service.yaml @@ -2,13 +2,14 @@ apiVersion: v1 kind: Service metadata: name: playground-service + namespace: apps labels: app: playground spec: + type: ClusterIP selector: app: playground ports: - port: 80 targetPort: 3000 protocol: TCP - type: ClusterIP