Questions tagged [microk8s]
30 questions
24
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
- 375
- 1
- 2
- 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
- 171
- 1
- 6
3
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
- 301
- 1
- 6
- 17
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
- 5
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
- 4
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
- 4
- 13
- 29
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
- 161
- 1
- 5
- 25
1
vote
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
- 161
- 1
- 5
- 25
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
- 161
- 1
- 5
- 25
1
vote
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
- 161
- 1
- 5
- 25
1
vote
0 answers
Seeking advice regarding ingress versus load balancing for app in microk8s cluster
I have a seven node microk8s cluster set up on an Ubuntu server in my cellar. multipass shows me I have three IP address per VM since I created these hosts using the bridged network option. I thought having a routable IP might make it easier to…

mr.zog
- 923
- 3
- 20
- 39
1
vote
2 answers
kubernetes ingress replace path
I have two backend api-services:
api-service-v1
api-service-v2
Both respond on "/api/" path
I have this configuration running fine as a docker-compose setup where nginx service serves as a proxy with the following config…

Vasyl Herman
- 121
- 1
- 4
1
vote
1 answer
Trouble with DNS resolution on and Microk8s cluster
My microk8s cluster is running on a centos8 vm and I have some issues with DNS resolution of my pods. Nameserver are at x.x.x.101 and x.x.x.100 both are ping able from within the pods and I can also ping 8.8.8.8
nslookup from within a pod looks like…

Thagor
- 111
- 1
- 3
1
vote
1 answer
How to check if a node in k8s cluster got rebooted
k8s master checks for kubelet status at frequent intervals. Maybe we can change that time and that makes the node not-ready. But that doesn't always mean that the node got rebooted.
How to change kubelet status check frequency?
If I don't want to…

user762025
- 11
- 2
1
vote
1 answer
How to setup custom authentication and authorization in Istio/K8?
Let's say, I have a project that has 8 pods(services). I understand that authentication and authorization are covered in Istio Gateway using jwt. So that every request is verified. But users with different roles ex: [teacher, student, staff] need to…

coolisuz
- 13
- 2