Merge pull request #16340 from icheikhrouhou/feature/tasksserviceaccountfr

docs | tasks | configure-pod-container | service account
This commit is contained in:
Kubernetes Prow Robot
2020-06-29 01:14:16 -07:00
committed by GitHub
2 changed files with 303 additions and 0 deletions
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx
name: nginx
volumeMounts:
- mountPath: /var/run/secrets/tokens
name: vault-token
serviceAccountName: build-robot
volumes:
- name: vault-token
projected:
sources:
- serviceAccountToken:
path: vault-token
expirationSeconds: 7200
audience: vault