calicoctl ipam configure
이 섹션은 calicoctl ipam configure 명령을 설명해요.
calicoctl 명령 전체 목록은 calicoctl 개요를 참고하세요.
본문
'calicoctl ipam configure' 명령의 도움말 보기
calicoctl ipam configure --help를 실행하면 다음과 같은 도움말 메뉴가 표시돼요.
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")
예제
calicoctl ipam configure --strictaffinity=true
calicoctl ipam configure --kubevirt-ip-persistence=Enabled
일반 옵션
-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 configure는 strict affinity 같은 클러스터 전역 IPAM 설정을 바꾸는 명령이에요. strict affinity를 켜면 다른 호스트가 IP를 빌려 쓰는 게 금지돼요. KubeVirt 가상머신의 IP 유지 여부도 여기서 제어할 수 있어요.