Files
testvue/k8s/deployment.yaml
Carmine Savino 7bd84539a3
All checks were successful
GKE Auto-Deploy / build-and-deploy (push) Successful in 31s
Ripristina il file di deployment per l'applicazione con configurazione di Deployment e Service
2026-01-28 18:28:39 +01:00

33 lines
539 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ${APP_NAME}
labels:
app: ${APP_NAME}
spec:
replicas: 1
selector:
matchLabels:
app: ${APP_NAME}
template:
metadata:
labels:
app: ${APP_NAME}
spec:
containers:
- name: app-container
image: ${FULL_IMAGE_NAME}
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: ${APP_NAME}-service
spec:
type: LoadBalancer
selector:
app: ${APP_NAME}
ports:
- port: 80
targetPort: 80