Restricted SCC not allowing a privilege container port to expose within and outside container #871
Replies: 4 comments 5 replies
-
Which template?
what's "add that serviceaccount under user" and what requires manual editing?
Don't modify default SCCs, this might break updates. Use custom SCC instead |
Beta Was this translation helpful? Give feedback.
-
I am trying to select must gather logs file, it is not taking that. How can I upload it here. Don't modify default SCCs, this might break updates. Use custom SCC instead
template attached must gather logs are here http://88.198.173.117:8010/must-gather.tar.gz
I am using default service account. even I tried to create other service account and different project but still don't work. Thanks. |
Beta Was this translation helpful? Give feedback.
-
After running this command I am able to run individual Deployment config pod with anyuid scc, but I am still struggling with template. |
Beta Was this translation helpful? Give feedback.
-
Culprit for my template was deploymentconfig section, which used to work in upto 4.5, not sure what happen with this. When I test it with sample depoymentconfig it worked, we can close this case. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I have a customize nginx container image which run with root user. Now issue is it runs with Restricted SCC. When I run this image with just pod template it start with anyuid and it works fine. But when I run this from template it starts with Restricted SCC. I have enabled privileges container to true in restricted scc.
One major issue is here is that when I run command like below, it don't add that service account under user in SCC. I have to manually edit it and add that. Only after pod running with anyuid is working fine.
oc adm policy add-scc-to-user scc-admin system:serviceaccount:testing:default
I tried to add similar entries in restricted scc manully but, it did not work, then I tried to create new scc with all privileges scc-admin.
FYI.. During installation it failed with Openshift SDN, that time some issue was going on, then I use OVN-kubernetes.
Version
[amit@okd-installer ~]$ oc version
Client Version: 4.7.16
Server Version: 4.7.0-0.okd-2021-06-19-191547
Kubernetes Version: v1.20.0-1079+87cc9a4ade7ebe-dirty
It is installed on Baremetal servers with fedora coreos and it is UPI.
How reproducible
Everytime
Log bundle
Will attach logs soon.
Beta Was this translation helpful? Give feedback.
All reactions