- Easiest way to set up a local single node cluster is via one of the following:
- Rancher Desktop
- minikube
- Incidentally,
minikube
ships with the Kubernetes Dashboardminikube dashboard
- The boilerplate Terraform plan below hasn't been tested against
minikube
- Incidentally,
- multipass with microk8s
- Add aliases to
~/.bashrc
or~/.zshrc
# k8s alias k="kubectl" alias kc="kubectl config use-context" alias kns='kubectl config set-context --current --namespace' alias kgns="kubectl config view --minify --output 'jsonpath={..namespace}' | xargs printf '%s\n'" KUBECONFIG="$HOME/.kube/config:$HOME/.kube/kubeconfig:$HOME/.kube/k3s.yaml"
- CLI/TUI (terminal user interface) management of k8s
- POC
git clone https://github.com/jwsy/simplest-k8s.git k config get-contexts # should have `rancher-desktop` selected kc rancher-desktop # switch to rancher context if not k create namespace simplest-k8s k apply -n simplest-k8s -f simplest-k8s k delete -n simplest-k8s -f simplest-k8s k delete namespace simplest-k8s
- Navigate to https://jade-shooter.rancher.localhost/ in Chrome
- Allow self-signed cert
- Profit 💸