리눅스
kubectl 명령어의 자동 완성을 활성화하는 방법
변군이글루
2024. 2. 17. 20:26
반응형
kubectl 명령어의 자동 완성을 활성화하는 방법
kubectl 자동 완성 스크립트를 다운로드
echo 'source <(kubectl completion bash)' >>~/.bashrc
영구적으로 적용하려면 .bashrc 파일 또는 해당 사용자의 셸 설정 파일에 이 스크립트를 추가
source ~/.bashrc
kubectl [Tab][Tab]
$ kubectl
annotate (Update the annotations on a resource)
api-resources (Print the supported API resources on the server)
api-versions (Print the supported API versions on the server, in the form of "group/version")
apply (Apply a configuration to a resource by file name or stdin)
attach (Attach to a running container)
...
top (Display resource (CPU/memory) usage)
uncordon (Mark node as schedulable)
version (Print the client and server version information)
wait (Experimental: Wait for a specific condition on one or many resources)
참고URL
- Kubernetes Documentation : Install and Set Up kubectl on Linux
728x90
반응형