shell Kubernetes commands
# install microk8s sudo snap install microk8s --clasic # grant access sudo usermod -a -G microk8s mjuffs # install kubectl sudo snap install kubectl --classic # create config directory cd ~ mkdir .kube sudo chown -R mjuffs ~/.kube sudo bash -c "microk8s config -l > ~/.kube/config" # enable storage sudo microk8s enable storage # install helm sudo snap install helm --classic helm list # grant access to the config kubectl config view --raw > ~/.kube/config # get the current services that are running sudo kubectl get po -A # create a new namespace/project for your pods sudo kubectl create namespace slickhouse # see the pods in your namespace sudo kubectl get pod -n slickhouse # see all of the services running sudo kubectl get svc -A # see all of the services running - within your namespace sudo kubectl get svc -n slickhouse # see the IP addresses ip a | grep eth0 # install a helm chart help upgrade release-name helm-chart-name --namespace slickhouse --install
Using kubectl with microk8s. These can all be run from within Linux (e.g. Ubuntu).
NOTE: mjuffs is my username on WSL/Ubuntu.
Updated: Thursday 9th October 2025, 23:04am
There are 0 comments
Comments are currently closed.