Created
August 14, 2018 14:11
-
-
Save samvarankashyap/f047fb1de8b3af6bce8a8f2a30302b21 to your computer and use it in GitHub Desktop.
enable privileged containers on openshift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> You need to have cluster adimin privilages | |
### edit scc | |
```sh | |
oc edit scc restricted | |
or | |
oc edit scc restricted --config=/openshift.local.config/master/admin.kubeconfig | |
``` | |
> Change runAsUser type to RunAsAny | |
```sh | |
- SETGID | |
runAsUser: | |
type: RunAsAny | |
seLinuxContext: | |
type: MustRunAs | |
supplementalGroups: | |
type: RunAsAny | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment