Rinomina il workflow in GKE Auto-Deploy e migliora la gestione delle variabili per il deployment dell'applicazione
Some checks failed
GKE Auto-Deploy / build-and-deploy (push) Failing after 36s
Some checks failed
GKE Auto-Deploy / build-and-deploy (push) Failing after 36s
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: demo-app
|
||||
name: ${APP_NAME}
|
||||
labels:
|
||||
app: ${APP_NAME}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: demo-app
|
||||
app: ${APP_NAME}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: demo-app
|
||||
app: ${APP_NAME}
|
||||
spec:
|
||||
containers:
|
||||
- name: demo-container
|
||||
image: nginx:alpine # Verrà sostituita dalla pipeline
|
||||
- name: app-container
|
||||
image: ${FULL_IMAGE_NAME}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: demo-service
|
||||
name: ${APP_NAME}-service
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: demo-app
|
||||
app: ${APP_NAME}
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user