Skip to content

Splunk Connect for SNMP using MicroK8s

See the following requirements to use any Linux deployment of Microk8s to support SC4SMP. The minimum requirements below are suitable for proof of value and small installations, and actual requirements will differ.

Single node minimum:

  • 4 cores
  • 8 GB of memory per node
  • 50 GB mounted as /

Three node minimum per node:

  • 4 cores
  • 8 GB of memory per node
  • 50 GB mounted /

MicroK8s installation on Ubuntu

The following quick start guidance is based on Ubuntu 20.04LTS with MicroK8s and internet access. See other deployment options in the MicroK8s documentation, including offline and with proxy.

Install MicroK8s using Snap

sudo snap install microk8s --classic --channel=1.25/stable

Add a user to the microk8s group so the sudo command is no longer necessary:

sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
su - $USER

Wait for Installation of Mk8S to complete:

microk8s status --wait-ready

Add nodes (optional)

  • Repeat the steps above for each additional node (with a minimum of 3 nodes).
  • On the first node, use the following command to see the instructions to join:
microk8s add-node
  • On each additional node, use the output from the command above.

Install required services for SC4SNMP

The following commands can be issued from any one node in a cluster:

sudo systemctl enable iscsid
microk8s enable helm3
microk8s enable hostpath-storage
microk8s enable rbac
microk8s enable metrics-server
microk8s status --wait-ready

Install the DNS server for mk8s and configure the forwarding DNS servers. Replace the IP addressed below (opendns) with the allowed values for your network:

microk8s enable dns:208.67.222.222,208.67.220.220
microk8s status --wait-ready

Install Metallb

When installing Metallb, you will be prompted for one or more IPs to use as entry points into the cluster. If you plan to enable clustering, this IP should not be assigned to the host (floats). If you do not plan to cluster, then this IP should be the IP of your host.

Note2: a single IP in cidr format is x.x.x.x/32. Use CIDR or range syntax for single server installations. This can be the same as the primary IP.

microk8s enable metallb
microk8s status --wait-ready