installation of backend with helm does not seem to work with microk8s
Closed this issue · 1 comments
bhomass commented
I installed microk8s on my ubuntu machine. When I try to install the backend
helm install my-substra-backend substra/substra-backend --version 22.3.0
I get error
Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get “http://localhost:8080/version”: dial tcp [::1]:8080: connect: connection refused
It is looking at localhost:8080 which is not the cluster ip
based on microk8s kubectl get all --all-namespaces, the cluster ip is at
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default service/kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 5h32m
kube-system service/metrics-server ClusterIP 10.152.183.87 <none> 443/TCP 5h28m
kube-system service/kubernetes-dashboard ClusterIP 10.152.183.107 <none> 443/TCP 5h28m
kube-system service/dashboard-metrics-scraper ClusterIP 10.152.183.216 <none> 8000/TCP 5h28m
kube-system service/kube-dns ClusterIP 10.152.183.10 <none> 53/UDP,53/TCP,9153/TCP 83m
Do I need to drop microk8s and use kubernetes instead?
bhomass commented
I copied the microk8s config file /var/snap/microk8s/current/credentials/client.config to ~$HOME/.kube/config and it all started to work!