MicroK8s, developed by Canonical, is a lightweight Minimal CNCF-certified distribution of Kubernetes. Designed for local development, IoT appliances, CI/CD, and use at the edge, MicroK8s is available as a snap and available on Linux, Windows and Mac.
Questions tagged [microk8s]
415 questions
11
votes
1 answer
Multipass VM not reachable via specific http ports from host
I'm running an Ubuntu VM with multipass hyperkit do run microk8s. Within the VM all things checkout and available with skaffold/kubectl port forwarding. For instance:
$ multipass list
Name State IPv4 …

a11hard
- 1,904
- 4
- 19
- 41
10
votes
2 answers
How to setup Letsencrypt with Kubernetes microk8s using default Ingress?
Recently, I tried to setup letsencrypt using microk8s and the default ingress controller on a bare-metal server.
I found a few guides online that were very useful but it seems as if there must have been a recent update to microk8s that changed the…

Emmanuel Mendoza
- 721
- 7
- 12
9
votes
1 answer
How to properly configure ingress cache to get it working?
I'm trying to configure cache for a specific host, but getting 404. Also It seems my config was not included into final nginx.conf. This file doesn't contain it
My ingress.yaml:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name:…

Сергей Коновалов
- 226
- 1
- 2
- 6
9
votes
2 answers
How to enable default-http-backend in Kubernetes in order to make Ingress work?
I have a single node Kubernetes instance from microk8s. It is installed on a Ubuntu Server 20.20 running on Raspberry Pi 4.
I am tring to setup an ingress resource which cannot get working.
When I run kubectl describe ingress my-ingress I get this…

Sasha Shpota
- 9,436
- 14
- 75
- 148
9
votes
2 answers
Microk8s, MetalLB, ingress-nginx - How to route external traffic?
Kubernetes/Ubuntu newbie here!
I'm setting up a k8s cluster using a single Raspberry Pi (hoping to have more in the future). I'm using microk8s v1.18.8 and Ubuntu Server 20.04.1 LTS (GNU/Linux 5.4.0-1018-raspi aarch64).
I'm trying to access one of…

Pablo
- 91
- 1
- 1
- 4
8
votes
2 answers
microk8s Broken K8s Dashboard and Kubeflow Dashboard
I'm using microk8s in an Ubuntu 18.04 LTS VM, 3 cores, 60 GB storage, 12 GB of memory. I followed the instructions from microk8s website here to install it.
$ snap install microk8s --classic --channel=1.18/stable
$ sudo microk8s start
$ sudo…

lwileczek
- 2,084
- 18
- 27
8
votes
3 answers
How to remove docker images added to microk8s image cache?
I have imported some docker images to microk8s image cache for local kubernetes deployment using,
microk8s.ctr -n k8s.io image import .tar
how can I remove some of the unwanted images from this cache? Is there any command for…

anju
- 157
- 1
- 2
- 8
8
votes
1 answer
helm and kubectl context mismatch
I'm having trouble understanding helm's use of helm --kube-context=microk8s install ... should install into the context microk8s thus into my local microk8s cluster rather than the remote GKE cluster which I once connected to.
This however fails due…

Kalle Richter
- 8,008
- 26
- 77
- 177
7
votes
1 answer
microk8s.ctr image import error import image
someone has tried microk8s on windows (I only have to use it for a process I always use debian) I have an error when importing an image to microk8s
command:
microk8s ctr image import image.tar
reply:
ctr: open image.tar: no such file or directory
An…

JA Ramos
- 71
- 2
7
votes
3 answers
microk8s, DEVOPS : Unable to connect to the server: x509: certificate is valid for , not
I have a microk8s cluster on a ubuntu laptop.
I want to apply a deployment yaml file on it from azure devops pipeline.
I have successfully defined a Kubernetes Service connections in my devops and it went through verification. Though when I try to…

Daniel
- 136
- 2
- 12
7
votes
3 answers
Helm 3: x509 error when connecting to local Kubernetes
I'm a perfect noob with K8s. I installed microk8s and Helm using snap to experiment locally. I wonder whether my current issue comes from the use of snap (purpose of which is encapsulation, from what I understood)
Environment
Ubuntu 20.04LTS
helm…

zar3bski
- 2,773
- 7
- 25
- 58
7
votes
2 answers
Configure Microk8s
I am migrating from minikube to Microk8s and I want to change the configs of Microk8s and control the resources that it can use (cpu, memory, etc.).
In minikube we can use commands like below to set the amount of resources for minikube:
minikube…

AVarf
- 4,481
- 9
- 47
- 74
7
votes
1 answer
How to configure kubernetes (microk8s) to use local docker images?
I've build docker image locally:
docker build -t backend -f backend.docker
Now I want to create deployment with it:
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend-deployment
spec:
selector:
matchLabels:
tier: backend
…

Bunyk
- 7,635
- 8
- 47
- 79
7
votes
1 answer
Where does Microk8s keep kubelet.service?
I am trying to enable a FlexVolume driver on Microk8s on Ubuntu.
To do that, it seems I have to edit the kubelet.service file. This is supposed to be stored in /etc/systemd/system/kubelet.service but it is't present in my installation.
Where is it…

Anders Sewerin Johansen
- 1,578
- 18
- 40
6
votes
1 answer
Configure microk8s to use ~/.kube/config
I've added stuff to my ~/.kube/config which doesn't appear when I do:
microk8s.kubectl config view
I'd like to use Microk8s with the default config file location.
Is this possible?

LondonRob
- 73,083
- 37
- 144
- 201