$linuxjunkies
>

ciliumctl(1)

Command-line tool for managing and debugging Cilium network policies and connectivity.

UbuntuDebianFedoraArch

Synopsis

ciliumctl [OPTION]... COMMAND [ARG]...

Description

ciliumctl is the command-line interface for interacting with Cilium, a Linux kernel-based networking and security platform. It allows operators to inspect and manage Cilium agents, network policies, service load balancing, and endpoint connectivity across Kubernetes clusters.

The tool communicates with Cilium agents via a Unix socket or remote API to retrieve cluster state, policy information, and network metrics. Common tasks include viewing endpoints, checking policy enforcement, debugging connectivity issues, and inspecting service configurations.

Common options

FlagWhat it does
-n, --namespace STRINGKubernetes namespace to operate in (default: cilium)
--context STRINGkubeconfig context to use
-o, --output STRINGoutput format: json, yaml, or table (default: table)
--kubeconfig PATHpath to kubeconfig file (default: ~/.kube/config)
-v, --verboseenable verbose/debug output
--host STRINGCilium API server host address

Examples

List all Cilium endpoints (pods) and their security labels in the cluster

ciliumctl get endpoints

Display all active network policies enforced by Cilium

ciliumctl get policy

Run connectivity tests between endpoints to verify network policies are working

ciliumctl connectivity test

Show all Cilium-managed services and their backend endpoints

ciliumctl get service

Dump detailed debug information about Cilium agent state

ciliumctl debug info

List all endpoint labels in JSON format for programmatic processing

ciliumctl -o json get endpoints | jq '.[] | .labels'

Related commands