← All platforms
install
Connect a self-managed cluster
kubeadm, RKE2, k3s or any cluster with Cilium as the CNI.
Requirements
- Cilium
- The cluster CNI, with Hubble and Hubble Relay enabled.
- Network
- Outbound HTTPS (443) from the cluster to api.cilera.io and ingest.cilera.io.
- Tools
- kubectl and Helm 3.8+ with access to create a namespace.
- Footprint
- One pod. No privileged access, no host mounts. Read-only RBAC, except its own state Secret and, when containment is on, deny-only containment policies.
Steps
- Run Cilium with Hubble enabled. Start the cluster with no default CNI, then install Cilium. If Cilium is already installed, check that cilium status shows "Hubble Relay: OK" and continue to step 2.
# k3s: --flannel-backend=none --disable-network-policy # RKE2: set "cni: cilium" in /etc/rancher/rke2/config.yaml cilium install cilium hubble enable cilium status --wait
On RKE2, enable Hubble Relay in the rke2-cilium HelmChartConfig instead of running cilium install.
- Add the cluster in the Cilera console. Open Clusters → Add cluster and create an onboarding credential. It expires on its own and can be limited to a number of clusters. Copy the two commands: one downloads the cluster's values file, the other installs the operator. The cluster is named after your current kubectl context unless you type a name.
- Run the commands. They install operator 0.11.0 with Helm into the cilera-system namespace, wait until it is connected, and print the reason if it cannot connect. The cluster appears in the Cilera console within about a minute.
$ helm upgrade --install cilera-operator \ <chart from the console> \ --version 0.11.0 \ -f cilera-values.yaml \ -n cilera-system \ --create-namespace --wait$ kubectl -n cilera-system get pods NAME READY STATUS cilera-operator-7c9d8b6f5d-x2kqp 1/1 Running
- To disconnect later, uninstall the operator. Containment policies stay in the cluster until you delete them.
$ helm uninstall cilera-operator -n cilera-system $ kubectl get cnp -A -l cilera.io/containment=true
For platform-specific Cilium options, see the Cilium installation guide. Supported versions and release notes are on Operator releases.