Splunk Connect for SNMP using MicroK8s¶
See the following requirements to use any Linux deployment of Microk8s to support SC4SNMP. The minimum requirements below are suitable for proof of value and small installations, 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.
Enabling IPv6¶
If you plan to poll or receive trap notifications from IPv6 addresses, firstly check the instruction for enabling IPv6.
Install MicroK8s using Snap¶
sudo snap install microk8s --classic --channel=1.30/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 microk8s to complete:
microk8s status --wait-ready
Install required services for SC4SNMP¶
The following commands can be issued from any 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 microk8s 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.
Note: 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
Add nodes (optional)¶
If you need cluster mode use following guide.