Keptn on MicroK8s (experimental)

Installation Guide

If you would like to install the quality-gates standalone version of Keptn on MicroK8s, please follow the instructions below.

Please note: Running Keptn on MicroK8s is currently an experimental feature.

On macOS via multipass

If you are using macOS, you will need to run MicroK8s using multipass. You can install multipass using either the multipass installer, or by using brew:

  brew cask install multipass

After you have installed multipass, you can install Keptn using the following commands:

  multipass launch --name microk8s-vm --mem 8G --disk 40G --cpus 2
  multipass exec microk8s-vm -- sudo snap install microk8s --classic
  multipass exec microk8s-vm -- sudo iptables -P FORWARD ACCEPT
  multipass exec microk8s-vm -- sudo microk8s.enable dns
  multipass exec microk8s-vm -- sudo microk8s.enable dns ingress
  multipass exec microk8s-vm -- sudo microk8s.enable storage
  multipass exec microk8s-vm -- sudo /snap/bin/microk8s.config > kubeconfig

  export KUBECONFIG=./kubeconfig
  kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.3/manifests/metallb.yaml
  multipass exec microk8s-vm -- sudo ifconfig

  keptn install --platform=kubernetes --keptn-installer-image=keptn/installer:0.6.2 --use-case=quality-gates --gateway=NodePort

Afterwards, you are ready to use Keptn for the use case of Keptn Quality Gates.

On Ubuntu

If you are using Ubuntu, you can install Keptn using the following commands:

  sudo snap install microk8s --classic
  sudo iptables -P FORWARD ACCEPT
  sudo microk8s.enable dns
  sudo microk8s.enable dns ingress
  sudo microk8s.enable storage
  sudo /snap/bin/microk8s.config > kubeconfig
  export KUBECONFIG=./kubeconfig
  kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.3/manifests/metallb.yaml

  keptn install --platform=kubernetes --use-case=quality-gates --gateway=NodePort

Afterwards, you are ready to use Keptn for the use case of Keptn Quality Gates.