question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues bootstrapping Juju into microk8s-on-AWS

See original GitHub issue

I spun up an Ubuntu server, then ran sudo snap install microk8s --classic. I then ran microk8s.enable dns ingress storage, copied over the output from microk8s.config, and tried to import microk8s into Juju:

juju add-k8s uk8saws --controller uk8saws --region=aws/us-east-1 --storage juju-operator-storage

This failed first off due to security groups, and I had to run juju run --unit ubuntu/0 "open-port 16443" to open up the secure server port. I also ran juju expose ubuntu, but I’m not sure if that was also necessary in addition to the open-port command.

Next up was the issue of microk8s.config pointing at the internal IP address, and I had to manually edit the kubeconfig to point at the external IP address that I copied from the AWS console.

Finally, I had to manually edit /var/snap/microk8s/current/certs/csr.conf.template to add IP.3 = $PUBLIC_IP, and ran sudo snap restart microk8s. I still wasn’t able to get a connection, and looking at /var/snap/microk8s/current/certs/csr.conf.rendered showed that that line was actually getting overwritten, and I had to put IP.7 = $PUBLIC_IP, restart microk8s again, and then I was able to successfully import microk8s into juju.

Not sure if this is all just stuff that should have updated documentation, or if any of it should result in code changes, but opening this issue in case anyone else runs into the same issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
knkskicommented, Apr 20, 2020

@paravatha: Can you file a new issue with details about the sub-menu items you’re unable to access?

1reaction
sakaiacommented, Apr 19, 2020

@paravatha thank you for notification. I also uses kubectl port-forward and it seems work fine for jupyternotebook etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues bootstrapping Juju into microk8s-on-AWS #713 - GitHub
I spun up an Ubuntu server, then ran sudo snap install microk8s --classic. I then ran microk8s.enable dns ingress storage, copied over the ......
Read more >
Error while bootstrapping on microk8s - juju - Charmhub
Hello folks, While bootstrapping on microk8s I got the following error: $ juju bootstrap microk8s mk8s Creating Juju controller "mk8s" on microk8s/localhost ...
Read more >
Bootstrapping onto microk8s fails with invalid cert
I have been bouncing between various networks the last few days, and that seems to have caused an issue where I would attempt...
Read more >
How to use MicroK8s with Juju
Install the Juju client; Create a controller. Verify the bootstrap process. Add a model. Verify that the model has been added. Deploy a...
Read more >
Bootstrapping juju model failed i/o timeout - MAAS | Discourse
The problem showed when bootstrapping a controller for Juju : Error: Error Get ... tcp 192.168.100.180:5240: i/o timeout Failed to bootstrap model I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found