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
34
votes
8 answers
Simple ingress from host with microk8s?
I would like to do two things with MicroK8s:
Route the host machine (Ubuntu 18.04) ports 80/443 to Microk8s
Use something like the simple ingress defined in the kubernetes.io docs
My end goal is to create a single node Kubernetes cluster that sits…

denski
- 1,768
- 4
- 17
- 35
33
votes
3 answers
Microk8s dashboard using nginx-ingress via http not working (Error: `no matches for kind "Ingress" in version "extensions/v1beta1"`)
I have microk8s v1.22.2 running on Ubuntu 20.04.3 LTS.
Output from /etc/hosts:
127.0.0.1 localhost
127.0.1.1 main
Excerpt from microk8s status:
addons:
enabled:
dashboard # The Kubernetes dashboard
ha-cluster #…

petwri
- 553
- 1
- 4
- 11
32
votes
2 answers
kubelet does not have ClusterDNS IP configured in Microk8s
I'm using MicroK8S in Ubuntu.
I'm trying to run a simple "hello world" program but I got the error when a pod is created.
kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. Falling back to "Default"…

Azeem Haider
- 509
- 1
- 4
- 10
26
votes
2 answers
How to use local docker images with microk8s?
I have been using minikube to test Kubernetes locally. In minikube, we can use local docker images by using eval $(minikube docker-env) command.
I started to explore microk8s. Installed microk8s using snap on my machine running on Ubuntu 18.
Is…

techrider
- 369
- 1
- 3
- 5
25
votes
2 answers
Logs complaining "extensions/v1beta1 Ingress is deprecated"
I'm adding an Ingress as follows:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cheddar
spec:
rules:
- host: cheddar.213.215.191.78.nip.io
http:
paths:
- backend:
service:
name: cheddar
…

Alessandro Dentella
- 1,250
- 2
- 16
- 30
23
votes
2 answers
Running Kubernetes locally on M1 Mac
I'm looking to see if it's currently possible to run Kubernetes locally on a 2020 M1 MacBook air.
The environment I need is relatively simple, just for going through some tutorials. As an example, this operator-sdk guide.
So far I've tried microk8s…

James Cockbain
- 466
- 2
- 4
- 13
21
votes
1 answer
How to debug Helm chart errors like "error converting YAML to JSON: yaml: mapping values are not allowed in this context"?
I'm using Helm 3 and microk8s. When I try a dry run:
microk8s.helm install <...> --dry-run --debug
I see errors like
Error: YAML parse error on ./templates/deployment.yaml: error converting YAML to JSON: yaml: mapping values are not allowed in…

Yann
- 2,426
- 1
- 16
- 33
19
votes
3 answers
How to fix "Failed to pull image" on microk8s
Im trying to follow the get started docker's tutorials, but I get stuck when you have to work with kuberetes. I'm using microk8s to create the clusters.
My Dockerfile:
FROM node:6.11.5WORKDIR /usr/src/app
COPY package.json .
RUN npm install
COPY .…

Manu Ruiz Ruiz
- 373
- 1
- 2
- 11
17
votes
2 answers
How to expose Microk8s containers, so they are available from another machine?
I'd like to use Microk8s for playing around Spring Cloud Data Flow, so I installed Multipass on my Windows 10, and in a virtual machine I run an Ubuntu where Microk8s is installed. I'd like to achieve that, all containers run on Ubuntu, which is a…

AndrasCsanyi
- 3,943
- 8
- 45
- 77
16
votes
5 answers
How to log in to the microk8s Kubernetes Dashboard?
I enabled the dashboard in microk8s:
microk8s.enable dns dashboard
I found its IP address:
microk8s.kubectl get all --all-namespaces
...
kube-system service/kubernetes-dashboard ClusterIP 10.152.183.212 443/TCP 24h
...
I tried to…

John McGehee
- 9,117
- 9
- 42
- 50
14
votes
1 answer
K8S Pod with startupProbe and initialDelaySeconds specified waits too long to become Ready
I have been trying to debug a very odd delay in my K8S deployments. I have tracked it down to the simple reproduction below. What it appears is that if I set an initialDelaySeconds on a startup probe or leave it 0 and have a single failure, then…

Allen
- 3,134
- 5
- 29
- 49
14
votes
5 answers
Can't connect to Elasticsearch with Node.Js on Kubernetes (self signed certificate in certificate chain)
I have a NodeJs application running inside a Kubernetes cluster (I am using microk8s). I've also followed the official steps to setup Elasticsearch on Kubernetes.
Issue
But I am unable to connect to the Elasticsearch cluster. I get this…

Florian Ludewig
- 4,338
- 11
- 71
- 137
14
votes
1 answer
How to change a Kubernetes hostpath-provisioner mount path?
With the storage add-on for MicroK8s, Persistent Volume Claims are by default given storage under /var/snap/microk8s/common/default-storage on the host system. How can that be changed?
Viewing the declaration for the hostpath-provisioner pod, shows…

Bjorn Thor Jonsson
- 827
- 1
- 10
- 21
13
votes
5 answers
How could I list the images pushed to microk8s built-in registry
I installed microk8s and I enabled registry addon
I am able to push docker images to this registry and I am able to use this images in deployments.
But I'm trying to list images that was already pushed to this registry. How can I do that? Is there…

EduMelo
- 455
- 3
- 15
12
votes
4 answers
microk8s Connection to port 16443 was refused
I'm getting following error message:
root@master-1:~# microk8s.kubectl get no
The connection to the server 127.0.0.1:16443 was refused - did you specify the right host or port?
Even microk8s.kubectl cluster-info dump fails with message above. When…

hejkerooo
- 709
- 2
- 7
- 20