# kubectl
sudo snap install kubectl --classic
# helm
sudo snap install helm --classic
# argocd
sudo mkdir -p /opt/argo
ARGO_VERSION=1.0.0 && \
sudo curl -L -o /opt/argo/argocd-linux-amd64 \
https://github.com/argoproj/argo-cd/releases/download/v$ARGO_VERSION/argocd-linux-amd64
sudo chmod +x /opt/argo/argocd-linux-amd64
sudo ln -s /opt/argo/argocd-linux-amd64 /usr/local/bin/argocd
# kubectl
brew install kubernetes-cli
# helm
brew install kubernetes-helm
# argocd
brew tap argoproj/tap
brew install argoproj/tap/argocd
Add to .bashrc
or .bash_profile
# K8S PROMPT
[[ -f /opt/kube-ps1/kube-ps1.sh ]] && source /opt/kube-ps1/kube-ps1.sh
#export KUBE_PS1_SYMBOL_COLOR=green
PS1='$(kube_ps1)'$PS1
# default
kubeoff
# K8S CONFIGS
function kube-config-local {
export KUBECONFIG=
}
function kube-config-<MY_CLUSTER> {
export KUBECONFIG=~/.kube/<MY_CLUSTER>-kubeconfig.yaml
kubeon
}
# default
kube-config-local