
Download and install the Cilium CLI
First, download the Cilium CLI binary appropriate for your platform and install it into your PATH. The example below targets Linux; macOS and Windows users can find platform-specific binaries on the Cilium releases page. Recommended links:- Cilium CLI releases: https://github.com/cilium/cilium-cli/releases
- Cilium docs: https://cilium.io/docs/
- For macOS use the
darwintarball; for Windows use the appropriate zip. - If you prefer package managers, check the Cilium docs for Homebrew, Chocolatey, or distribution packages.
Install Cilium into the cluster
The Cilium CLI uses your current kubeconfig context to determine which cluster to install into. Ensure your kubeconfig points to the intended cluster before running the installer. Warning: make sure you are targeting the correct cluster/context to avoid accidental changes to production clusters.Ensure your kubeconfig context is set to the intended cluster before running
cilium install. Installing Cilium will create ClusterRoles, DaemonSets, Deployments, and other cluster-scoped resources.Preview resources with a dry run
If you want to review the exact Kubernetes manifests that will be applied without changing the cluster, use a dry run. This is useful for auditing and validating Helm values before applying them.kubectl apply -f - later when ready.
Common CLI commands
| Command | Purpose | Notes |
|---|---|---|
cilium install | Install Cilium using current kubeconfig context | Uses Helm under the hood |
cilium install --dry-run | Render manifests without applying | Good for validation/auditing |
cilium status --wait | Wait until Cilium components are ready | Blocks until readiness conditions |
cilium uninstall | Remove Cilium resources from cluster | Use with caution in production |
Configuring Cilium at install time
The Cilium CLI uses the Cilium Helm chart to render manifests. You can customize installation by supplying Helm values either inline via--helm-set or from a values file via --values.
Examples:
values.yaml in the Cilium GitHub repository or the chart documentation.
The available configuration keys come from the Cilium Helm chart. Use —dry-run to preview the final rendered manifest or check the chart’s values.yaml to see all options.
Sample values.yaml
Below is an examplevalues.yaml that enables IPv6 and configures dual-stack IPAM using a cluster pool. Adjust CIDRs and other options to match your network design and cluster requirements.
Best practices and references
- Always validate rendered manifests using
cilium install --dry-runbefore applying to production. - Use the table above to quickly reference common cilium CLI commands.
- Consult the official documentation and Helm chart values:
- Cilium Documentation: https://cilium.io/docs/
- Cilium Helm chart / values: https://github.com/cilium/cilium/tree/main/install/kubernetes/cilium
- Cilium CLI releases: https://github.com/cilium/cilium-cli/releases