Hey Phil,
It looks like you're missing your kubeconfig file. Kubectl and Helm use the same configuration file by default.
Microk8s comes packaged with its own kubectl - there's also a helm3 add-on that you can enable (I would recommend adding metallb).
$ microk8s kubectl get pods
$ microk8s config ==> shows the kubeconfig file
Once you've confirmed everything is working as expected you can copy the config over to your local kube config directory.
This link goes through the configuration in more detail.
Let me know if that works or if you have any more questions.
Original Message:
Sent: May 08, 2023 04:39 PM
From: Phil Mead
Subject: Kubernetes helm chart tries to connect to port 8080
I am new to Kubernetes.
I am running Kubernetes microk8s under Ubuntu
I have a deployment for mysql 8.0 running.
When I iusse the command to install the helm chart - helm install my-ssg layer7/gateway --set-file "license.value=license.xml" --set "license.accept=true"
I get the following error:
Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused
Any ideas where I should look?
netstat shows no listener on port 8080. However, it says it is listening on https port 16443.
------------------------------
Phil Mead
------------------------------