-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Cilium: Do not run with securityContext.privileged: true #10499
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Environment:
Bare metal:
3x control-plane nodes
4x worker nodes
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):ansible --version
):ansible [core 2.14.9]
python --version
):python version = 3.11.2
Kubespray version (commit) (
git rev-parse --short HEAD
):2.23.0
Network plugin used:
Cilium
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):Can I skip this? There are some secrets in here and I don't want to go through and strip everything out.
Command used to invoke ansible:
Output of ansible run:
Skipped
Anything else do we need to know:
The gist of this ticket is that if you set the ownership of
/opt/bin/cni
for Cilium toroot:root
then you shouldn't need to run the cilium-agent daemonset withsecurityContext.priviledged: true
.We discovered this while doing testing with a helm version of Cilium.
securityContext.priviledged: false
is the default that Cilium sets when installing via Helm and IMHO it's a reasonably sane default.Related: cilium/cilium#23838
A suggestion for a fix would be to have /opt/cni/bin have a separate var that can be set rather than always setting it to
kube_owner
. Happy to submit an MR for that if desired!The text was updated successfully, but these errors were encountered: