After deploying the k8s cluster architecture through kubeadm, using the kubectl tool, I want to use the tab key to associate the auto-completion and find that it does not work, and the error is as follows:
[root@k8s-master]# kubectl - bash: _get_comp_words_by_ref: command not found
Google it and found out that the bash-completion package needs to be installed first. The operation is as follows:
#Install bash-completion yum install bash -completion -y #source takes effect source /usr/share/bash-completion/ bash_completion source <(kubectl completion bash)
Read More:
- [Solved] K8s cluster build error: error: kubectl get csr No resources found.
- How to Solve Hexo init error: bash: hexo: command not found
- [MAC] How to Solve zsh Error: command not found: umi
- [Solved] kubectl top pod error: error: Metrics API not available
- [Solved] SHELL Run Error: “-BASH: ./TEST.SH: /BIN/BASH^M: BAD INTERPRETER: NO SUCH FILE OR DIRECTORY”
- [Solved] Mac Install homebrew Error: error: Not a valid ref: refs/remotes/origin/master
- [Solved] Error in porting libzrtp: automake-1.14: command not found
- HEXO D Command ERROR Deployer not found: git
- Mac error: SH: Vue cli service: command not found
- Mac Error: sh: vue-cli-service: command not found
- [Solved] Latex&VScode Error: I found no bibdata command//command//citation—while reading file*.aux
- Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found
- [Solved] hive Caused by: MetaException(message:Version information not found in metastore. )
- The SDK of Android webrtc compiled with Ninja – C out / release command reported an error, and the Android NDK processing method could not be found
- [Solved] Error response from daemon: Get “*“: x509: certificate signed by unknown authority
- [Solved] Error: Could not get apiVersions from Kubernetes
- [Solved] Initialization error encountered by JUnit unit test: Method initialization error not found
- [Solved] error LNK2005: _bn_sub_part_words Already defined in bn_mul.obj
- [Solved] Redisson distributed lock error: attempt to unlock lock, not locked by current thread by node id
- [Solved] Go Get Download Dependency Error: is not using a known version control system