Aggiorna la configurazione di deploy su GKE e rimuovi il file docker-compose.yml
Some checks failed
GKE Deploy / build-and-deploy (push) Failing after 1m57s
Some checks failed
GKE Deploy / build-and-deploy (push) Failing after 1m57s
This commit is contained in:
31
k8s/deployment.yml
Normal file
31
k8s/deployment.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: demo-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: demo-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: demo-app
|
||||
spec:
|
||||
containers:
|
||||
- name: demo-container
|
||||
image: nginx:alpine # Verrà sostituita dalla pipeline
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: demo-service
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: demo-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user