Skip to content

Instantly share code, notes, and snippets.

@iocanel
Created December 11, 2015 14:07
Show Gist options
  • Save iocanel/aad9e70eb6ae185463bb to your computer and use it in GitHub Desktop.
Save iocanel/aad9e70eb6ae185463bb to your computer and use it in GitHub Desktop.
Weird Kubernetes exec response
bash #oc exec mypod-17817053-320d-4659-8b58-dd45f3c09544 ls
Error from server: pods "mypod-17817053-320d-4659-8b58-dd45f3c09544" is forbidden: unable to validate against any security context constraint: [provider restricted: .spec.containers[0].securityContext.privileged: invalid value 'true', Details: Privileged containers are not allowed provider restricted: .spec.containers[0].securityContext.VolumeMounts: invalid value 'workspace', Details: Host Volumes are not allowed to be used]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment