Microk8s and helm setup in Ubuntu

Install and configure microk8s:

snap install microk8s --classic --channel=1.20/stable # Add the group sudo usermod -a -G microk8s $USER # Enable dns and helm3 microk8s.enable dns helm3 # make sure microk8s is running ok microk8s.inspect # Updating kubectl config. umask 077; sudo microk8s kubectl config view --raw > $HOME/.kube/config

 

Install and setup HELM:

# Helm-3 Install mkdir ~/.helm curl -fsSL -o get_helm https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 chmod 700 get_helm ./get_helm -v v3.5.2 --no-sudo # Check Helm Version helm version helm repo remove stable

 

Setup chartmuseum repo for helm:

curl https://raw.githubusercontent.com/helm/chartmuseum/main/scripts/get-chartmuseum | bash mkdir ~/chartstorage chartmuseum --debug --port=8080 \ --storage="local" \ --storage-local-rootdir="~/chartstorage" & helm repo add chartmuseum http://localhost:8080

 

Install helm push plugin: