Container/K8S
k8s | 자동완성 설정
icf_
2023. 5. 2. 23:33
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