Reference
DevOps Kubernetes (K8s): Reference
Type | Nodes |
---|---|
Docker Desktop | 1 |
MicroK8s | Multiple nodes |
Minikube | Multiple nodes |
Kind | Multiple nodes |
kubectl cluster-info
Windows
choco install kind
MacOS
brew install kind
Hypervisor
like VirtualBox is required${HOME}/.kube/config
C:\Users\{USER}\.kube\config
Commands | Description |
---|---|
kubectl config current-context | Get the current context |
kubectl config get-context | List all context |
kubectl config use-context {CONTEXT_NAME} | Set the current context |
kubectl config delete-context {CONTEXT_NAME} | Delete a context from the config file |
kubectl config rename-context {OLD_CONTEXT_NAME} {NEW_CONTEXT_NAME} | Rename a context from the config file |
# Instead of typing
kubectl config use context minikube
# Simply type
kubectx {CONTEXT_NAME}
# Windows
choco install kubectx-ps
# MacOS
brew install kubectx
# Ubuntu
sudo apt intall kubectx
DevOps Kubernetes (K8s): Reference