In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "kubectl Shell command prompt tool kube-shell how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let Xiaobian lead you to study and learn "kubectl Shell command prompt tool kube-shell how to use" this article.
0. About kube-shell
Kube-shell is implemented based on python-prompt-toolkit and is designed to provide ease of use and increase productivity of Kubectl.
Kube-shell provides the following features:
Automatically complete kubectl commands and parameter prompts
Color labeling display
History command auto-populate
Fuzzy query, automatically completed by the server
Context information and switching, F4 switching cluster, F5 switching Namespaces
1. The environment is ready to upgrade 1.1 python2.7.5 to 2.7.14
View Python version
[root@os161 /] # python-VPython 2.7.5
Download python2.7.14
[root@os161 /] # wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz--2018-01-19 17 root@os161 06 root@os161 49 Murray-https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz is parsing host www.python.org (www.python.org). 151.101.228.223, 2a04:4e42:36::223 is connecting www.python.org (www.python.org) | 151.101.228.223 |: 443. Connected. HTTP request issued, waiting for response. 200 OK length: 17176758 (16m) [application/octet-stream] is being saved to: "Python-2.7.14.tgz" 0 [
Extract the Python package
Tar-zxvf Python-2.7.13.tgz
Check & prepare the compilation environment
Yum install gcc* openssl openssl-devel ncurses-devel.x86_64 bzip2-devel sqlite-devel python-devel zlib
Installation
Cd Python-2.7.14./configure-- prefix=/usr/localmake & & make altinstall
Backup old versions, yum and other components rely on 2.7.5 work
Mv / usr/bin/python / usr/bin/python2.7.5ln-s / usr/local/bin/python2.7 / usr/bin/python
Verification
[root@os163 Python-2.7.14] # python-VPython 2.7.14 [root@os163 Python-2.7.14] # python2.7.5-VPython 2.7.5
Fixed python of components such as yum
[root@localhost bin] # vim / usr/bin/yum first line #! / usr/bin/python changed to #! / usr/bin/python2.7.5 [root@localhost bin] # vim / usr/libexec/urlgrabber-ext-down first line #! / usr/bin/python changed to #! / usr/bin/python2.7.51.2 Pip install wget https://bootstrap.pypa.io/get-pip.pypython get-pip.pyln-s / usr/local/bin/pip2.7 / usr/bin/pip
Do not try the following way to install pip will not work!
Sudo yum-y install epel-release sudo yum-y install python-pip2, kube-shell installation pip install kube-shell3, Verify and use [root@os163 Python-2.7.14] # kube-shellkube-shell > kubectl get clusterrole-n kube-system kubectl kubectl controls the Kubernetes cluster manager [F4] Cluster: kubernetes [F5] Namespace: default User: kubernetes-admin [F9] In-line help: ON [F10] Exit all the contents of the article "how to use kubectl Shell Command prompt tool kube-shell" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.