Calico Open Source 3.33 (latest) documentation
calicoctl ipam release
This section describes the calicoctl ipam release command.
Read the calicoctl overview for a full list of calicoctl commands.
Displaying the help text for 'calicoctl ipam release' command
Run calicoctl ipam release --help to display the following help menu for the
command.
Release one or more Calico-assigned IP addresses. Release a single address
with --ip, or release the leaked addresses identified in a report from ipam
check.
Usage:
calicoctl ipam release [flags]
Examples:
# Release a single IP.
calicoctl ipam release --ip 10.0.0.1
# Release leaked IPs from a check report.
calicoctl ipam release --from-report report.json
Flags:
-c, --config string Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")
--force Force release of leaked addresses.
--from-report stringArray Release all leaked addresses from the report.
-h, --help help for release
--ip string IP address to release.
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 release --ip=192.168.1.2
calicoctl ipam release --from-report=./report.json
General options
-c, --config string Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")