Closed owwweiha closed 1 year ago
@owwweiha Can you explain more on what kind of restricted environment?
If PSA restricted is enabled on a cluster level, then I believe a whole lot of pods will be affected and the admin will have to adjust security context for each deployment in the cluster. If it's at namespace level, then we're actually deploying cns-manager in its own namespace. IMO the user/admin should make necessary adjustments to manifests when deploying in a PSA/PSP restricted environment. Let me know your thoughts.
Hi @gohilankit,
I noticed that the deployment uses a RoleBinding refering to the ClusterRole psp:vmware-system-privileged
which does not exist in our environment (TKGI). After creating a ClusterRole with the same name referting to the pks-privileged
PSP everything works fine now, even without setting the securityContext
on Swagger UI and NGINX (but it's always a good idea to explicit set a SecurityContext IMHO).
Thank you!
Describe the bug
Currently, no securityContext is set for the nginx and swagger-ui container. Both need
privileged: true
to start in restricted environments. So this is missing on both containers:Without privileged, you'll get this error on nginx:
and this error on swagger-ui:
Reproduction steps
Expected behavior
Both container should run out of the box
Additional context
No response