Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As Helm is self contained, it's pretty straightforward to install/upgradeI recommend putting helm in local bin folder as a softlink, this way it's easy to switch between versions if you need to, we can also use snap do install the right version

Code Block
sudo wget https://get.helm.sh/helm-v3.5.2-linux-amd64.tar.gz
 tar -zxvf helm-v3.5.2-linux-amd64.tar.gz
 sudo mv linux-amd64/helm /usr/local/bin/helm-v3.5.2
 sudo ln -s /usr/local/bin/helm-v3.5.2 /usr/local/bin/helmsnap install helm --classic --channel=3.5/stable

3) Tweak Microk8s

The below tweaks are not strictly necessary, but they help in making the setup more simple and flexible.

...

We need kubectl 1.19 to match the cluster we have installed

Code Block
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.19.7/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

If you want to use a the same link trick as for helm (see above) this could allow you to switch between kubectl versions if needed

, let's again use snap to quickly choose and install the one we need

Code Block
sudo snap install kubectl --classic --channel=1.19/stable

Now we need to provide our local kubectl client with a proper config file so that it can access the cluster, microk8s allows to retrieve the cluster config very easily

Simply create a .kube folder in your home directory and dump the config there

Code Block
cd
mkdir .kubecdkube
cd .kube
microk8s.config > config
chmod 700 config

...