Skip to content
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

Support configuring Cilium policyCIDRMatchMode setting via Cluster resource #8681

Open
jacobbmay opened this issue Aug 29, 2024 · 0 comments

Comments

@jacobbmay
Copy link

What would you like to be added:
Configuring the policyCIDRMatchMode setting for Cilium via the Cluster resource cniConfig. Example:

spec:
  clusterNetwork:
    cniConfig:
      cilium: 
        policyCIDRMatchMode: nodes

Why is this needed:
By default Cilium doesn't apply CIDR block network policies to IPs internal to the cluster.

This feature enables applying CIDR block policies to node IPs which is helpful for configuring network policies that allow access to the kubernetes API. Currently to enable this you have to manually edit the cilium config in cluster, and it would better if it could be configured via the cluster definition.

Some example services that need this are metrics-server and prometheus. If you have ip based network policies configured to grant access to the kube API, the pods for these services fail to startup because they can't reach the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant