Some checks failed
GKE Auto-Deploy / build-and-deploy (push) Failing after 36s
33 lines
552 B
YAML
33 lines
552 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 |