Skip to content

Instantly share code, notes, and snippets.

/-

Created August 9, 2016 02:48
Show Gist options
  • Save anonymous/0922b383cfbf989b2b59c6e9a3736b49 to your computer and use it in GitHub Desktop.
Save anonymous/0922b383cfbf989b2b59c6e9a3736b49 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: i-have-no-sa
spec:
containers:
- name: c
image: ubuntu:xenial
command:
- /bin/bash
- -c
- "while true; do date; sleep 1; done"
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: no-api-access-please
readOnly: true
volumes:
- name: no-api-access-please
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment