You are on page 1of 2

apiVersion: apps/v1

kind: Deployment
metadata:
generation: 1
labels:
app: ret-webapi-v1
tier: frontend
name: ret-webapi-v1
spec:
replicas: 3
revisionHistoryLimit: 2
selector:
matchLabels:
app: ret-webapi-v1
tier: frontend
strategy:
rollingUpdate:
maxSurge: 3
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: ret-webapi-v1
tier: frontend
spec:
containers:
- name: ret-webapi-v1
image: tigerpistol.azurecr.io/ret-webapi-v1:latest
imagePullPolicy: IfNotPresent
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
securityContext: {}
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
memory: 256Mi
cpu: 250m
envFrom:
- configMapRef:
name: environment
optional: False
- configMapRef:
name: ret-webapi-v1
optional: False
livenessProbe:
failureThreshold: 3
httpGet:
path: /login
port: 1337
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: acr-key
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
app: ret-webapi-v1
tier: frontend
name: ret-webapi-v1
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 1337
selector:
app: ret-webapi-v1
tier: frontend
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
appgw.ingress.kubernetes.io/backend-path-prefix: /
kubernetes.io/ingress.class: azure/application-gateway
generation: 1
name: ret-ingress
selfLink: /apis/extensions/v1beta1/namespaces/dev/ingresses/ret-ingress
spec:
rules:
- host: realestate.dev.tigerpistol.com
http:
paths:
- backend:
name: ret-webapi-v1
port:
number: 80
path: /
status:
loadBalancer: {}

You might also like