-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can't integrate rocks to securityContext.runAsNonRoot
: true
#243
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-6537.
|
I have also explored the option to disable the runAsNonRoot option for
Sadly this option is not supported for |
I encounter the same issue while integrating the
|
Adding more context to this issue: The problem occurs due to a known limitation of Pebble, described in canonical/pebble#462. In short, Pebble needs write access to the disk for storing information about it's current state. Note that the above issue has been closed not because it now works on a readonly filesystem, but because it outputs an appropriate error message. A read-only filesystem still produces errors. According to the Pebble team, needing write access seems to be a strong constraint for Pebble, and a workaround is not actively being worked on by the team. |
To summarize the current state, initially we couldn't integrate rocks because of Although to include it we had to use The last comment above from @mvlassis is about |
Bug Description
While working on
net-istio-webhook
extension rock for knative we had encountered a problem where we can't run rocks insecurityContext.runAsNonRoot
:true
Kubernetes deployment.Rocks like
net-istio-webhook
are deployed as part of KnativeServing CR.This is how
securityContext
for the webhook deployment looks like.This problem is known problem in rockcraft project tracked here: canonical/rockcraft#659
To Reproduce
Use (or build) the rock presented in this PR.
Use the rock in the config file for knative-serving. One way to do it is just change the linked field in the config before deploying. Simplest way is to run bundle integration test from the root folder of knative-operators.
After some time the test should be green. After that you can check the pods in the knnative-serving namespace
The pod for net-istio-webhook is in
ConfigurationError
state. You can inspect the events of the podYou should see simillar error message.
Environment
Juju: 3.4.5
Kubernetes: 1.29
Relevant Log Output
Additional Context
No response
The text was updated successfully, but these errors were encountered: