티스토리 뷰

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

 

'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
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함