Table of Contents |
---|
Installation of MicroK8s
Install Microk8s with the following instructions,
...
- Update the image version to 6.3.0 in smo-install/onap_oom/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/values.yaml
- Update the configuration(smo-install/onap_oom/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/resources/config/KubernetesParticipantParameters.yaml) to have the support for http with the chartmuseum configuration
- By default, policy clamp gui service is not enabled, Enable the policy-gui services in helm-override (smo-install/helm-override/default/onap-override.yaml)
...
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
...
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:
- ClusterIP and Nodeport are assigned per deployment basis. So there is no guarantee that the same IP address will be assigned to the same service on new deployment.
- Chrome doesn't have separate socks proxy configuration, instead it uses the windows environment proxy configuration.
- Socks proxy can be configured in intellij and eclipse IDE.
- Visual studio code doesn't have the support for socks proxy. It has the http based proxy configuration.
- To enable the socks proxy support, pproxy(https://pypi.org/project/pproxy/) plugin can be used. This converts the socks proxy to http proxy and the http proxy can be configured in VS Code.