Customizing Cilium on an OVHcloud Managed Kubernetes cluster
Find out how to customize Cilium on an OVHcloud Managed Kubernetes cluster
Objective
The OVHcloud Managed Kubernetes Service provides you with Kubernetes clusters without the hassle of installing or operating them.
The Standard plan of OVHcloud Managed Kubernetes clusters uses Cilium as the default CNI.
The Cilium agent process (a.k.a. DaemonSet) allows configuration on a per-node basis.
This allows overriding cilium-config ConfigMap for a node or set of nodes by using CiliumNodeConfig objects.
Without using a CiliumNodeConfig object, it will not be possible to update cilium-config ConfigMap.
Requirements
- An OVHcloud Managed Kubernetes cluster with Standard plan.
Instructions
What is CiliumNodeConfig
As stated in Cilium documentation:
A CiliumNodeConfig object allows for overriding ConfigMap / Agent arguments.
It consists of a set of fields and a label selector. The label selector defines to which nodes the configuration applies.
As is the standard with Kubernetes, an empty LabelSelector (e.g. {}) selects all nodes.
CiliumNodeConfig possible values
You can find the full list of possible keys and values in the cilium-configmap file on GitHub.
Be aware that some keys available on our platform may require certain features to be enabled in the Cilium operator.
Customization example
Enable topology aware routing for 3AZ region
To discover this feature, please refer to the following page: Discover Kubernetes 1.33 features – Topology aware routing in multi-zones Kubernetes clusters, by Aurélie Vache.
To enable topology aware routing for 3AZ region on the Cilium side, apply this configuration of CiliumNodeConfig:
Then restart the Cilium agent:
Verify that the configuration has been applied:
Go further
To have an overview of the OVHcloud Managed Kubernetes Service, see this page.
To learn more about how to use your Kubernetes cluster the practical way, we invite you to read our tutorials.
-
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.
-
Join our community of users.