← All platforms
install
Connect a local kind cluster
Docker, kind and the Cilium CLI.
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. For evaluation on a local machine. Create the cluster without the default CNI, then install Cilium. If Cilium is already installed, check that cilium status shows "Hubble Relay: OK" and continue to step 2.
cat <<EOF | kind create cluster --config - kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 networking: disableDefaultCNI: true EOF cilium install cilium hubble enable cilium status --wait
- 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.