반응형
    
    
    
  kubectl 명령어의 자동 완성을 활성화하는 방법
kubectl 자동 완성 스크립트를 다운로드
echo 'source <(kubectl completion bash)' >>~/.bashrc영구적으로 적용하려면 .bashrc 파일 또는 해당 사용자의 셸 설정 파일에 이 스크립트를 추가
source ~/.bashrckubectl [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
    
    
  반응형
    
    
    
  '리눅스' 카테고리의 다른 글
| 리눅스에서 ulimit을 설정하는 방법 (0) | 2024.02.26 | 
|---|---|
| 우분투에서 Elasticsearch를 설치하고 Kibana를 사용하여 클러스터 상태를 확인하는 방법 (0) | 2024.02.23 | 
| HAProxy 구성을 동기화하고 HAProxy를 다시 시작하는 스크립트 (0) | 2024.02.17 | 
| Helm을 사용하여 Ingress Controller를 설치하는 방법 (0) | 2024.02.17 | 
| 우분투에서 쿠버네티스 클러스터를 구성하는 방법 (0) | 2024.02.16 | 
 
                  
                 
                  
                 
                  
                