Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (33 sloc) 895 Bytes
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sample-app
spec:
replicas: 5
template:
metadata:
labels:
app: sample-app
annotations:
pod.boostport.com/vault-approle: sample-app
pod.boostport.com/vault-init-container: get-vault-token
spec:
containers:
- name: sample-app
image: boostport/kubernetes-vault-sample-app
volumeMounts:
- name: vault-token
mountPath: /var/run/secrets/boostport.com
initContainers:
- name: get-vault-token
image: boostport/kubernetes-vault-init
imagePullPolicy: Always
env:
- name: VAULT_ROLE_ID
value: 313b0821-4ff6-1df8-54dd-c3eea5d3b8b1
volumeMounts:
- name: vault-token
mountPath: /var/run/secrets/boostport.com
volumes:
- name: vault-token
emptyDir: {}
You can’t perform that action at this time.