Versions Compared

Key

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

Install and configure microk8s:

Code Block
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 

#Secure the config
chmod 600 ~/.kube/config


Install and setup HELM:

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


Setup chartmuseum repo for helm:

Code Block
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

...