- Docker-for-Desktop
- kubeadm
minikube start --memory 3072
: start minikubeminikube dashboard
: check
- minikube
- helm
More details can be find here.
brew install bash-completion
kubectl completion bash > $(brew --prefix)/etc/bash_completion.d/kubectl
brew info bash-completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
: added in~/.bash_profile
- restart the terminal
Reference: https://kubernetes.io/docs/tasks/tools/install-kubectl/
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
echo "source <(kubectl completion bash)" >> ~/.bashrc`: auto-completion in bashrc
kubectl get componentstatuses
kubectl -n kube-system get pod
context in k8s is configuration setting of 1 cluster
kubectl config get-contexts
: context is the config of a k8s cluster for kubectlkubectl config set-context $CONTEXT_ID --user=admin-formation --cluster=cluster-demo
: setup a contextkubectl config use-context $CONTEXT_ID
: switch to another K8S context