kubectl ge입력후 TAP키를 누르면 get를 자동으로 완성하는 기능 설정.
root@master # dnf -y install bash-completion
bash-completion 패키지 설치후
아래 내용 참고하여 설정합니다.
source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.
https://kubernetes.io/docs/reference/kubectl/cheatsheet/
kubectl Cheat Sheet
This page contains a list of commonly used kubectl commands and flags. Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo "source <(kubec
kubernetes.io
728x90
'Container > K8S' 카테고리의 다른 글
pv | released 상태인것 일괄삭제 (0) | 2023.12.09 |
---|---|
1.23.17 | k8s - install(ubuntu 22.04) (0) | 2023.08.14 |
k8s | 쿠버네티스 (1.27) + calico 설치 on Centos8stream (1) | 2023.04.26 |
k8s | rollout / update (0) | 2022.11.29 |
k8s | --dry-run (0) | 2022.11.28 |