Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container can't run as root by default in ICP v3.1.1. #6

Closed
sotoiwa opened this issue Feb 14, 2019 · 0 comments
Closed

Container can't run as root by default in ICP v3.1.1. #6

sotoiwa opened this issue Feb 14, 2019 · 0 comments

Comments

@sotoiwa
Copy link
Contributor

sotoiwa commented Feb 14, 2019

Openldap container try to run as root but container can't run as root by default in ICP v3.1.1.

To allow container run as root, we need to create PodSecurityPolicy, ClusterRole and ClusterRoleBinding.
We can use PodSecurityPolicy and ClusterRole created by ICP.
In that case we need to create only ClusterRoleBinding something like below.

kubectl create clusterrolebinding ibm-privileged-openldap \
  --clusterrole=ibm-privileged-clusterrole \
  --serviceaccount=<namespace>:default
@sotoiwa sotoiwa closed this as completed Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant