Skip to content

Instantly share code, notes, and snippets.

@sandromello
Created January 15, 2020 17:44
Show Gist options
  • Save sandromello/d94798cce1e0978f49996b7b31a9331c to your computer and use it in GitHub Desktop.
Save sandromello/d94798cce1e0978f49996b7b31a9331c to your computer and use it in GitHub Desktop.
Volume Mapping
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: nginx-ig
name: nginx-ig
spec:
replicas: 2
selector:
matchLabels:
app: nginx-ig
template:
metadata:
labels:
app: nginx-ig
spec:
containers:
- image: nginx:1.17.6-alpine
imagePullPolicy: IfNotPresent
name: nginx-ig
ports:
- containerPort: 443
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/nginx/ssl
name: secret-volume
volumes:
- name: secret-volume
secret:
defaultMode: 420
secretName: cert-wildcard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment