“Instal semua paket Kubectl Kubens Kubectx” Kode Jawaban

Bash Instal Kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
Dr. Green

Instal semua paket 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
DreamCoder

Instal Kubectl

curl -LO "https://dl.k8s.io/release/v1.22.0/bin/windows/amd64/kubectl.exe"
Grieving Gerenuk

Jawaban yang mirip dengan “Instal semua paket Kubectl Kubens Kubectx”

Pertanyaan yang mirip dengan “Instal semua paket Kubectl Kubens Kubectx”

Lebih banyak jawaban terkait untuk “Instal semua paket Kubectl Kubens Kubectx” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya