Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install all pack kubectl kubens kubectx

# https://www.visualstudiogeeks.com/kubernetes/utilities/using-kubectx-kubens
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

# kubectx and kubens
wget https://raw.githubusercontent.com/ahmetb/kubectx/master/kubectx
wget https://raw.githubusercontent.com/ahmetb/kubectx/master/kubens
chmod +x kubectx kubens
sudo mv kubens kubectx /usr/local/bin

# completions zsh
mkdir -p ~/.oh-my-zsh/completions
chmod -R 755 ~/.oh-my-zsh/completions

wget -O ~/.oh-my-zsh/completions/_kubens.zsh https://raw.githubusercontent.com/ahmetb/kubectx/master/completion/_kubens.zsh
wget -O ~/.oh-my-zsh/completions/_kubectx.zsh https://raw.githubusercontent.com/ahmetb/kubectx/master/completion/_kubectx.zsh

compinit

#you might or might not need to call compinit or autoload -U compinit && compinit in your ~/.zshrc
Comment

install kubectx kubens

kubectl krew install ctx
kubectl krew install ns
Comment

PREVIOUS NEXT
Code Example
Shell :: git delete changes 
Shell :: git commits by author 
Shell :: ubuntu firewall 
Shell :: docker go inside a container 
Shell :: bluetooth keep restarting ubuntu 
Shell :: docker Problem with the CMake installation, aborting build. CMake executable is cmake 
Shell :: brew services start mongodb 
Shell :: getting a package in colab from github 
Shell :: jupyter kernel dies 
Shell :: snap store fedora 
Shell :: see if urdf is valid 
Shell :: unzip bz2 file ubuntu 
Shell :: cmd delete recursive 
Shell :: python2 pip install 
Shell :: ffmpeg shrink video size 
Shell :: show date linux 
Shell :: how to install frida 
Shell :: uninstall dependencies npm 
Shell :: uninstall gns3 ubuntu 
Shell :: Bitwarden docker-compose 
Shell :: ubuntu server change timezone 
Shell :: anydesk ubuntu 
Shell :: Exception: Error running pod install flutter on iod 
Shell :: shell single line for loop syntax 
Shell :: command powershell show wifi password 
Shell :: kill python processes 
Shell :: notepad++ kali 
Shell :: download from gdrive link command line 
Shell :: install playwright 
Shell :: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =