Connection
calicoctl node status
Check connectivity to the Calico datastore and node status
calicoctl version
Display the version of calicoctl and the Calico components
Networking
calicoctl get ippool
List IP pools
calicoctl get ippool -o wide
List IP pools with more details
calicoctl get ippool -o yaml
Get a specific IP pool in YAML format
calicoctl create -f pool.yaml
Create an IP pool from a file
calicoctl delete ippool
Delete an IP pool
Policy
calicoctl get networkpolicy
List NetworkPolicy resources
calicoctl get globalnetworkpolicy
List GlobalNetworkPolicy resources
calicoctl get networkpolicy -n
List NetworkPolicy resources in a namespace
calicoctl get policy -o yaml
Get a specific policy in YAML format
calicoctl create -f policy.yaml
Create a policy from a file
calicoctl apply -f policy.yaml
Apply a policy from a file (create or update)
calicoctl delete policy
Delete a policy
Nodes
calicoctl get nodes
List Calico nodes
calicoctl get node -o yaml
Get a specific node in YAML format
calicoctl node run
Run the Calico node container on this host
BGP
calicoctl get bgppeer
List BGP peers
calicoctl get bgpconfig
Show BGP configuration
calicoctl create -f bgppeer.yaml
Create a BGP peer from a file
calicoctl delete bgppeer
Delete a BGP peer
Troubleshooting
calicoctl node diag
Gather diagnostic information
calicoctl ipam show
Show IPAM information
calicoctl node checksystem
Verify that the system is ready to run Calico