Questions tagged [microk8s]
35 questions
26
votes
5 answers
Is microk8s suitable for production environments, or is it just for development?
microk8s appears to be an easy way to install Kubernetes on Ubuntu. Several places refer to it as an alternative to minikube, which is not aimed at production environments, and this post seems to indicate that it's mostly aimed at development…
Travis
- 395
- 1
- 3
- 9
7
votes
1 answer
Error when create a MicroK8s cluster : Connection failed. The hostname (xx) of the joining node does not resolve to the IP "xx". Refusing join (400)
I have installed microk8s(1.24/stable) on two machines.
The ip of the two machines are:172.29.99.187, 172.29.99.188.
I operate the command at 172.29.99.187:microk8s add-node
Output:
From the node you wish to join to this cluster, run the…
ya chen
- 181
4
votes
1 answer
Access Kubernetes Dashboard Via HTTP Instead of HTTPS
Question
How can I enable HTTP requests? I have a primary web server that is a proxy and sends HTTP requests to the MicroK8S server but cannot due to the HTTP error.
Install command used:
sudo snap install microk8s --classic…
Pie
- 330
3
votes
1 answer
How to debug why a Ingress Controller in MicroK8S is pointing to the wrong service?
I have built a little three-node Kubernetes cluster at home, for learning purposes. Each 16GB node runs Ubuntu Server and MicroK8S. I have set up a leader (arran) and two followers (nikka and yamazaki).
root@arran:/home/me# microk8s kubectl get…
halfer
- 259
2
votes
1 answer
How to set up port-forwarding in MicroK8S across a cluster (ideally without a manifest)?
I am learning K8S using MicroK8S. I have a three-node cluster, each node having 16G of RAM. The cluster has entered HA mode automatically. The cluster sits on my home LAN.
Here are my…
halfer
- 259
2
votes
1 answer
microk8s communication - vxlan.calico, bridge and veth
I've configured my microk8s instance (one node). Works well. I've started digging in some linux network internals and I was dumbfounded looking at this:
$ ip -c -br link
lo UNKNOWN 00:00:00:00:00:00 …
Maciek Leks
- 121
2
votes
0 answers
What decides node's hostname when adding new node with microk8s?
I am building a cluster of machines all running the same setup:
Ubuntu Server 20.04.2
during installation I select a unique short hostname
when OS is installed, I add microk8s 1.20/stable via snap and add permissions following this tutorial
I…
porkbrain
- 121
1
vote
2 answers
"failed to created runc console socket" when calling kubectl exec
I have an Ubuntu Server in my basement running MicroK8S, installed via Snap. I'm trying to create a simple pod using kubectl run that I can exec into for debugging purposes. But I keep failing.
At first, I tried this command:
kubectl run -it --rm…
soapergem
- 719
1
vote
0 answers
microk8s kubelet constantly restarting
OS: Ubuntu Desktop 24 LTS
Microk8s: v1.30.1 revision 6876
I was trying to bring up some containers, using helm, but the pods never get created:
sudo microk8s kubectl get all --all-namespaces
NAMESPACE NAME …
gai-jin
- 133
1
vote
0 answers
microk8s pods not starting, containerd possible conflict
a few days ago I had to install microk8s to try out a project, all seems great and stuff but pods never start.. and I wonder why, here is what I found so far:
I use ubuntu 22.04 LTS, previously I had docker and minikube installed and working on this…
gai-jin
- 133
1
vote
1 answer
Upgraded from 18.04 to Ubuntu 20.04 - microk8s local DNS resolution stopped working
I have a server that started out on Ubuntu 16.04. I'm trying to get it current so I did an upgrade from 16.04 to 18.04 (Which was mostly trouble free) I let that run for a day to make sure everything worked as expected and then I upgraded to 20.04..…
irwinr
- 21
- 3
1
vote
0 answers
MicroK8s does not authenticate with gitlab private registry
I have an instance of MicroK8s, I am currently migrating my applications. But I can't authenticate to Gitlab's private registry.
About my environment:
MicroK8s
Gitlab (with registry working securely)
Tests I performed
To test my private Gitlab…
Hiago Souza
- 109
1
vote
2 answers
How to debug why a NodePort is refusing connections in K8S?
Introduction
I recently got a simple web app working on a three-node Ubuntu Server with MicroK8S. I decided to try rebuilding my cluster and reinstalling everything using YAML manifests, to ensure the process was replicable. However, the app is now…
halfer
- 259
1
vote
2 answers
How to fix "failed to unpack image on snapshotter overlayfs: unexpected media type text/html" when MicroK8S is starting a deployment?
I continue down the frustratingly stop-start road of learning Kubernetes (specifically MicroK8S).
I build an image locally on a development laptop thus:
docker build -t k8s-workload .
This is a simple PHP web app that reports some request metadata.…
halfer
- 259
1
vote
1 answer
Microk8s - Non-HA single node, leaving node removes all pods
Iam running the microk8s in ubuntu in no high availability i.e. there is a single node onto the same machine where it is installed. I updated the certificates and then i issue following command:
sudo microk8s leave
as it was advised that after…
Umair Khan
- 11