Skip to content

Instantly share code, notes, and snippets.

@justindavies
Created September 14, 2018 11:16
Show Gist options
  • Save justindavies/965743c776f35cc4c1a2592c634467ce to your computer and use it in GitHub Desktop.
Save justindavies/965743c776f35cc4c1a2592c634467ce to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
name: frontend
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 80
selector:
app: frontend
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
labels:
app: frontend
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
imagePullSecrets:
- name: acr-secret
containers:
- name: frontend
image: "{{.Values.image}}:{{.Values.imageTag}}"
volumeMounts:
- name: sitemaps
mountPath: /usr/share/nginx/html/sitemaps
ports:
- containerPort: 80
volumes:
- name: sitemaps
azureFile:
secretName: azure-files
shareName: sitemaps
readOnly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment