Open misohu opened 2 days ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-6537.
This message was autogenerated
I have also explored the option to disable the runAsNonRoot option for net-istio-weebhook
deployment in KnativeServing CR by adding the:
workloads:
- name: net-istio-webhook
podSpec:
securityContext:
runAsUser: 0
Sadly this option is not supported for net-istio
workloads.
I encounter the same issue while integrating the net-istio-controller
rock, see the logs:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 73s default-scheduler Successfully assigned knative-serving/net-istio-controller-5896777f8b-pkjcx to dev
Normal Pulling 73s kubelet Pulling image "mvlassis/net-istio-controller:v1.12.3"
Normal Pulled 68s kubelet Successfully pulled image "mvlassis/net-istio-controller:v1.12.3" in 5.012s (5.012s including waiting)
Warning Failed 12s (x6 over 68s) kubelet Error: container has runAsNonRoot and image has non-numeric user (_daemon_), cannot verify user is non-root (pod: "net-istio-controller-5896777f8b-pkjcx_knative-serving(f27196b4-4f99-4dcf-b234-9a587b905c8c)", container: controller)
Normal Pulled 12s (x5 over 68s) kubelet Container image "mvlassis/net-istio-controller:v1.12.3" already present on machine
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: https://github.com/canonical/rockcraft/issues/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