-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Is there an existing issue for this?
- I have searched the existing issues
Version
equal or higher than v1.17.1 and lower than v1.18.0
What happened?
We have couple of cilium cluster wide network policies (for worker, coredns and konnectivity agent) which are added as static policies with below config
extraArgs:
- --static-cnp-path=/policies
extraHostPathMounts:
- name: static-policies
mountPath: /policies
hostPath: /data/k0s/cilium
hostPathType: Directory
Recently we bumped the version from 1.16.6 to 1.17.1. While in dev cluster we had policy enforce mode never
it didnt give any error/issues. But while upgrading other clusters which had policy enforce mode always
failed the static policy to be taken into use.
We tried to switch to enable/disable the enforce mode in 1.17.1 version but it didnt work. At the end, we had to add the static policies to the cluster and apply them manually to get it working.
Could you check whats breaking the static policy behavior in new version?
How can we reproduce the issue?
- Install cilium 1.16.6, have policy enforce mode 'always' and load some static cilium cluster wide network policies
- Upgrade cilium to 1.17.x
- Notice that the static policies are not taken into effect
Cilium Version
1.17.1
Kernel Version
Red Hat Enterprise Linux release 8.10 (Ootpa) (4.18.0-553.16.1.el8_10.x86_64)
Kubernetes Version
v1.30.3
Regression
No response
Sysdump
No response
Relevant log output
Connection / polciies defined in the static policies fail. Eg: connection failing from our cilium agent logs
stream logs failed Get "https://10.25.216.7:10250/containerLogs/kube-system/cilium-smc9s/cilium-agent?follow=true&sinceSeconds=300&tailLines=100×tamps │
│ stream logs failed Get "https://10.25.216.7:10250/containerLogs/kube-system/cilium-smc9s/cilium-agent?follow=true&sinceSeconds=300&tailLines=100×tamps │
│ stream logs failed Get "https://10.25.216.7:10250/containerLogs/kube-system/cilium-smc9s/cilium-agent?follow=true&sinceSeconds=300&tailLines=100×tamps │
Anything else?
Other testing done:
- Version bump from 1.16.6 -> 1.17.x with policy enforce
never
and after upgrade add enforcement , everything works fine
Cilium Users Document
- Are you a user of Cilium? Please add yourself to the Users doc
Code of Conduct
- I agree to follow this project's Code of Conduct