Installation of MicroK8s

Install Microk8s with the following instructions,

https://ubuntu.com/tutorials/install-a-local-kubernetes-with-microk8s#1-overview

It is possible to enable multi node setup with Microk8s, In this exploration single node Microk8s cluster is used.

Enable host-access add-on in Microk8s to allow the Kubernetes containers to access the host.

https://microk8s.io/docs/addon-host-access

NOTE: Once the host-access enabled, The host can be accessed using IP address "10.0.1.1" from kubernetes pods.

Installation of ONAP with Policy Clamp in Microk8s

Policy clamp kubernetes participant used in the charts doesn't support the http based chartmuseum servers. It is supported in later version of the k8sparticipant (6.3.0).

To enable the http based chartmuseum access, k8sparticipant participant image needs to be upgraded with the configuration change as shown below.

           

           

Install ONAP using it/dep repository and the instructions for the installation of ONAP is available in smo-install/README.md. This should create namespaces onap,nonrtric and network with all the containers running.

NOTE: Initial installation takes more time as the docker images are getting downloaded newly and the consequent installation will be faster.

Using Socks proxy to access the Microk8s cluster

Socks proxy can be used to access the containers/GUI from Microk8s cluster.

Creating ssh tunnel for Socks proxy

Once this tunnel is enabled, socks proxy can be configured in windows application/environment.


Enabling Socks proxy with Firefox

Socks proxy can be configured in Firefox as shown below,Go to, Settings → General → Network Settings → Manual Proxy Configuration and configure as shown below.


Enabling socks proxy in windows environment

Go to, Internet Options → Connections → LAN Settings → Proxy server

Enable the checkbox and click on Advanced,

Once the Socks proxy is configured, Kubernetes services in Microk8s can be accessed using Nodeport and ClusterIP.


Accessing policy clamp UI in Firefox.


Using Socks proxy in Kubernetes config

Socks proxy can be used to access the Kubernetes cluster. Get the kubeconfig file from the cluster which needs to be accessed and add the configuration as shown below,


proxy-url property should be configured based on the tunneling port.


Observations: