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 with internet access. Other deployment options may be found 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 additional nodes (optional)

  • Repeat the steps above for each additional node (minimum total 3)
  • On the first node issue the following to return the instructions to join:
microk8s add-node
  • On each additional node, use the output from the command above

Install basic services required 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 allowed values for your network:

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

Install Metallb

Note: when installing Metallb you will be prompted for one or more IPs to use as entry points into the cluster. If your 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