microk8s: Failed to enable kubeflow
inspection-report-20200728_120622.tar.gz
- Error Message:
Couldn't contact api.jujucharms.com
Please check your network connectivity before enabling Kubeflow.
Failed to enable kubeflow
- microk8s version:
Name Version Publisher Notes Summary
microk8s v1.18.6 canonical✓ classic Lightweight Kubernetes for workstations and appliances
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 84 (21 by maintainers)
have the same problem
I have the same problem
@xelios: Ah, it looks like there was an incomplete teardown of a previous Kubeflow deployment, as the admission-webhook shouldn’t be deployed before the network check. The easiest way to fix this (assuming you don’t have anything else in MicroK8s you need to keep) is to just reinstall the MicroK8s snap:
Otherwise, you can list the existing mutating and validating webhooks with:
And then running
microk8s deleteon any webhooks withadmission-webhookin the name.sudo iptables -P FORWARD ACCEPT- helped me with same issue, maybe it can help someoneI also got the same error message: Couldn’t contact api.jujucharms.com from within the Kubernetes cluster.
Solution:
os: Ubuntu 20.04.1 LTS microk8s: v1.20.1 rev1894
After some tries with different versions, I could make it work (on v1.19 stable) with:
microk8s inspecttold me that, but the “permanent” solution did not work alone (sudo apt install iptables-persistent). So theiptablesrule was needed. I am on Debian 10.@hpcaicom: It looks like there’s a bug in that version of microk8s, can you run this and then try to enable Kubeflow again?
same issue on v1.22.3
sudo iptables -P FORWARD ACCEPTdidn’t work for meI am too facing same error with 1.18,1.19,1.20 versions of microk8s.
Error on enabling kubeflow addon:
microk8s inspect:
ping api.jujucharms.com is failing with packets not being received.
curl -v https://api.jujucharms.com/charmstore/v5/~kubeflow-charmers/ambassador-88/icon.svg seems to be not found error as the url is no longer valid it seems.
Any idea on how to overcome this?
per discussion on slack with @RFMVasconcelos (thanks again!), i ran the following network test:
microk8s.kubectl run --rm -it --restart=Never --image=ubuntu connectivity-check -- bash -c "apt update && apt install -y curl && curl https://api.jujucharms.com/charmstore/v5/istio-pilot-5/icon.svg"with the following error:
In my case, the issue turned out to be that the local dns hostname didn’t match the machine name (eg my machine name is athena, but i had the name athena-40g being assigned by dns), and then all sort of wierdness happened elsewhere/kubeflow was dying. Simply making the interface name match the host name resolved the issue and now all is working properly, thanks Rui!
I’ve tried in 1.20/stable, but there’s still same error.
inspection-report-20201216_094714.tar.gz kubeflow_installation_log.txt
@knkski I think the issue is the proxy is not being set inside the pod container. I created an issue for this #1719
Removing microk8s and installing the old 1.18/stable version seems to fix the error.