Skip to content

Instantly share code, notes, and snippets.

@maxgio92
Last active February 14, 2020 10:20
Show Gist options
  • Save maxgio92/d1896274a3ec4ae7eaff9f15f330157f to your computer and use it in GitHub Desktop.
Save maxgio92/d1896274a3ec4ae7eaff9f15f330157f to your computer and use it in GitHub Desktop.
Pod Security Policy for allowed host paths
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: my-psp-hostpaths
# ...
spec:
# ...
allowedHostPaths:
- pathPrefix: "/example"
readOnly: true
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment