Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created August 2, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owainlewis/538c801f9212f3ee1a9b7f49ccdfb6e8 to your computer and use it in GitHub Desktop.
Save owainlewis/538c801f9212f3ee1a9b7f49ccdfb6e8 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: security-context-demo
spec:
volumes:
- name: sec-ctx-vol
emptyDir: {}
containers:
- name: sec-ctx-demo
image: gcr.io/google-samples/node-hello:1.0
volumeMounts:
- name: sec-ctx-vol
mountPath: /data/demo
securityContext:
allowPrivilegeEscalation: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment