Skip to main content
In this lesson we will go over how to install Cilium using the Cilium CLI.
A presentation title slide with the text "Installing Cilium With CLI" on a blue-green gradient background. A small "© Copyright KodeKloud" appears in the lower-left corner.

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: Example (Linux):
Verify the installation:
Notes:
  • For macOS use the darwin tarball; 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.
Run the installer:
Wait for components to become healthy. Use —wait to block until readiness conditions are met:
Example output (truncated):
A successful deployment shows components (DaemonSet, Deployment, containers) with matching Desired/Ready/Available counts.

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.
This prints the rendered YAML to stdout so you can inspect it, pipe to a file, or run kubectl apply -f - later when ready.

Common CLI commands

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:
For a complete list of configuration keys, review the Helm chart’s 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 example values.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

With these steps you can install and configure Cilium using the CLI, preview resources before applying changes, and supply Helm values either inline or via a values file.

Watch Video