Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (56 sloc) 999 Bytes
apiVersion: apps/v1
kind: Deployment
metadata:
name: gwa-deployment
spec:
replicas: 1
selector:
matchLabels:
app: api
tier: backend
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: api
tier: backend
spec:
containers:
- name: gwa
image: pmorelli92/go-with-azure:latest
ports:
- name: http
containerPort: 80
restartPolicy: Always
terminationGracePeriodSeconds: 60
---
kind: Service
apiVersion: v1
metadata:
name: gwa-service
spec:
selector:
app: api
tier: backend
ports:
- name: http
port: 80
targetPort: 80
type: NodePort
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: gwa-ingress
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: gwa-service
servicePort: 80
You can’t perform that action at this time.