Skip to content

Instantly share code, notes, and snippets.

@oboukili
Created May 16, 2019 15:07
Show Gist options
  • Select an option

  • Save oboukili/d43dc31f167f203ffbee4a501eabf257 to your computer and use it in GitHub Desktop.

Select an option

Save oboukili/d43dc31f167f203ffbee4a501eabf257 to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 2
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
initContainers:
- name: certs
...
volumeMounts:
- mountPath: /vault
name: vault-tls
containers:
- name: myapp
...
volumeMounts:
- name: vault-tls
mountPath: /vault
readOnly: true
volumes:
- name: vault-tls
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment