calicoctl ipam release
이 섹션은 calicoctl ipam release 명령을 설명해요.
calicoctl 명령 전체 목록은 calicoctl 개요를 참고하세요.
본문
'calicoctl ipam release' 명령의 도움말 보기
calicoctl ipam release --help를 실행하면 다음과 같은 도움말 메뉴가 표시돼요.
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")
예제
calicoctl ipam release --ip=192.168.1.2
calicoctl ipam release --from-report=./report.json
일반 옵션
-c, --config string Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")
더 알아보기 (See also)
더 알아보기 (Learn more)
ipam release는 Calico가 할당한 IP 주소를 풀로 돌려보내는 명령이에요. --ip로 주소 하나를, --from-report로 ipam check 리포트에 기록된 누수 주소들을 해제할 수 있어요. 누수 주소 정리 절차는 ipam check 문서의 예제 워크플로를 참고하세요.