記事:
記事:
ver=1.28.0 curl -LO "https://github.com/stern/stern/releases/download/v${ver}/stern_${ver}_linux_amd64.tar.gz" tar xvfz stern_${ver}_linux_amd64.tar.gz mv stern ~/.local/bin/ stern --version version: 1.28.0 commit: 9763d953d86d8f60cf9a5e5da3531e6a1aa47c5c built at: 2024-01-09T00:32:07Z
記事:
問題:
kubectl config use-context env1
対策:
例:
# backup PS1_BAK=$PS1 cat ~/.bash.d/99-bash_prompt.sh RS="\[\033[0m\]" HC="\[\033[1m\]" UL="\[\033[4m\]" INV="\[\033[7m\]" FBLK="\[\033[30m\]" FRED="\[\033[31m\]" FGRN="\[\033[32m\]" FYEL="\[\033[33m\]" FBLE="\[\033[34m\]" FMAG="\[\033[35m\]" FCYN="\[\033[36m\]" FWHT="\[\033[37m\]" BBLK="\[\033[40m\]" BRED="\[\033[41m\]" BWHT="\[\033[47m\]" export PS1="[$FMAG\u$FWHT@$FCYN\h$FWHT: \W\$(__git_ps1)\$(kube_ps1)]\$ " # promptを変更 source ~/.bash.d/kube-ps1.sh source ~/.bash.d/99-bash_prompt.sh kubeon
記事:
記事:
# 最新の安定板 curl -LO "https://dl.k8s.io/release/$(curl -LS https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" # 指定バージョン curl -LO "https://dl.k8s.io/release/v1.27.10/bin/linux/amd64/kubectl" # 権限付与、移動 mv kubectl ~/.local/bin/ chmod +x ~/.local/bin/kubectl # version確認 kubectl version --short Flag --short has been deprecated, and will be removed in the future. The --short output will become the default. Client Version: v1.27.10 Kustomize Version: v5.0.1 Server Version: v1.26.12-eks-5e0fdde