Update workloads/ecommerce/frontend.yaml
This commit is contained in:
@@ -2,21 +2,13 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: frontend-deploy
|
name: frontend-deploy
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: frontend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: frontend
|
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitea-registry-secret # 🟢 Llave para que K8s pueda autenticarse en tu Gitea
|
- name: gitea-registry-secret
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: gitea.cruzcloud.net/devops/ecommerce-frontend:v1.1.0 # 🟢 Imagen alojada directamente en el registry de tu ZimaOS
|
image: gitea.cruzcloud.net/devops/ecommerce-frontend:latest # 1. Apuntamos a latest
|
||||||
|
imagePullPolicy: Always # 2. Obligamos a Kubernetes a descargarla siempre
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user