cilium-operator

by QuenchWorks

Helm chartv0.0.13App 1.20.5Apache-2.0Verified publisher

The Cilium Operator (generic variant): cluster-pool and Kubernetes IPAM for CiliumNodes, CRD registration, identity and endpoint garbage collection, and node taint removal, for a Cilium install that runs its agents with operator.enabled=false. Hardened by QuenchWorks, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Cilium Operator

The Cilium Operator runs the cluster-wide half of Cilium: it registers Cilium's CRDs, hands each CiliumNode its pod CIDR (cluster-pool IPAM), garbage-collects stale identities and endpoints, and removes the not-ready taint once a node's agent is up. This chart runs the generic variant on the QuenchWorks cilium-operator image. The image is nonroot, 0 fixable CVEs, cosign-signed and pinned by digest. The cloud IPAM variants (AWS, Azure, Alibaba Cloud) are not built.

Install

Install Cilium with its own operator off, then this chart in the same namespace. The agent can be the QuenchWorks image too (ghcr.io/quenchworks/images/cilium, built from source on the same lines; it runs as root like upstream's):

helm install cilium cilium/cilium -n kube-system --set operator.enabled=false \
  --set image.override=ghcr.io/quenchworks/images/cilium:1.20.2
helm install cilium-operator oci://ghcr.io/quenchworks/charts/cilium-operator -n kube-system
kubectl get ciliumnodes

The operator reads Cilium's own cilium-config ConfigMap (ciliumConfigMap), so IPAM mode, cluster name and CIDRs come from the Cilium install. Keep the chart on the same Cilium minor line as the agents.

Why it runs on the host network

Nodes get their pod CIDRs from the operator, so the operator has to run before the pod network exists. Like upstream, the chart sets hostNetwork: true, tolerates not-ready and control-plane nodes, and uses system-cluster-critical. Health listens on host port 9234, so the rollout replaces one replica at a time and the replicas spread across nodes.

Values

KeyDefaultMeaning
replicas2one leader, one standby (leader election on a Lease)
ciliumConfigMapcilium-configCilium's ConfigMap
metrics.enabledfalsePrometheus metrics on metrics.port (9963)
extraArgs[]other operator flags
podDisruptionBudget.enabledtruewhen replicas is above 1
rbac.createtruethe ClusterRole Cilium 1.20 needs

Pods run with a read-only root filesystem and all capabilities dropped. The ClusterRole covers the features Cilium enables by default; features that need more (TLS interception, ztunnel) are not covered.

The release gate starts a two-node kind cluster, installs Cilium 1.20.2 agents from the QuenchWorks agent image with their operator off, installs this chart, and requires the CRDs to be registered, every CiliumNode to get a pod CIDR, every node to turn Ready, CoreDNS to resolve from a pod, and one replica to hold the leader lease.

The chart depends on the quench-common chart from oci://ghcr.io/quenchworks/charts.

Deploy cilium-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cilium-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcilium-operator is pinned at v0.0.13 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply