Skip to main content
Calico Open Source 3.33 (latest) documentation

calicoctl ipam configure

This section describes the calicoctl ipam configure command.

Read the calicoctl overview for a full list of calicoctl commands.

Displaying the help text for 'calicoctl ipam configure' command​

Run calicoctl ipam configure --help to display the following help menu for the command.

Configure cluster-wide Calico IPAM settings, such as strict affinity and the
maximum number of blocks per host.

Usage:
calicoctl ipam configure [flags]

Examples:
# Require strict affinity (disable IP borrowing).
calicoctl ipam configure --strictaffinity=true

Flags:
-c, --config string Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")
-h, --help help for configure
--ip-cooldown-seconds int Set the minimum time between release and re-allocation of an IP address. (default -1)
--kubevirt-ip-persistence string Control whether KubeVirt VMs retain persistent IP addresses (Enabled|Disabled).
--max-blocks-per-host string Set the maximum number of blocks that can be affine to a host.
--strictaffinity string Set StrictAffinity to true/false.

Global Flags:
--allow-version-mismatch Allow client and cluster versions mismatch
--context string The name of the kubeconfig context to use
-l, --log-level string Set the log level (panic, fatal, error, warn, info, debug) (default "panic")

Examples​

calicoctl ipam configure --strictaffinity=true
calicoctl ipam configure --kubevirt-ip-persistence=Enabled

General options​

-c, --config string Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")

See also​