Hello folks,
While bootstrapping on microk8s I got the following error:
$ juju bootstrap microk8s mk8s
Creating Juju controller "mk8s" on microk8s/localhost
Bootstrap to Kubernetes cluster identified as microk8s/localhost
Fetching Juju Dashboard 0.3.0
Creating k8s resources for controller "controller-mk8s"
Downloading images
Starting controller pod
Bootstrap agent now started
Contacting Juju controller at 10.152.183.225 to verify accessibility...
ERROR an error occurred forwarding 36469 -> 17070: error forwarding port 17070 to pod 51155c3ae675bbeb5fd600d3b48ab53002de73a17dab77f99755151c8cb2ef1e, uid : failed to execute portforward in network namespace "/var/run/netns/cni-52b0a8a0-ac29-03ca-d3b4-0d3f626308cf": socat command returns error: exit status 1, stderr: "2021/03/10 15:38:57 socat[298445] E connect(5, AF=2 127.0.0.1:17070, 16): Connection refused\n"
Bootstrap complete, controller "mk8s" is now available in namespace "controller-mk8s"
Now you can run
juju add-model <model-name>
to create a new model to deploy k8s workloads.
I’m running:
$ snap info microk8s | grep installed | awk '{print $1 $2}'
installed:v1.20.2
$ snap info juju | grep installed | awk '{print $1 $2}'
installed:2.9-rc6
on kubuntu 20.04.
After getting that error I uninstalled everything and installed again executing:
$ juju unregister mk8s
$ sudo snap remove juju
$ sudo snap remove microk8s
$ sudo snap install --beta juju --classic
$ sudo snap install microk8s --classic
$ microk8s.enable dns storage
$ juju bootstrap microk8s mk8s
And the original error persists