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
3
votes
1 answer
Limiting microk8s maximum memory usage
We are using a self-hosted microk8s cluster (single-node for now) for our internal staging workloads. From time to time, the server becomes unresponsive and I can't even ssh into it. The only way out is a restart.
I can see that before the server…

Martin Melka
- 7,177
- 16
- 79
- 138
3
votes
0 answers
Change or set an advertise address in Microk8s
I am creating a cluster in MicroK8s, however when using Kubernetes I am able to specify an API Server Advertise Address that I can use to join my cluster. I need that functionality in MicroK8s, however I haven't found a way that works.
Thus far I…

nazar
- 149
- 13
3
votes
1 answer
How to make ingress use my TLS Certificate in Microk8s
I have the following Ingress configuration:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: http-ingress
spec:
rules:
- host: example-adress.com
http:
paths:
- path: /apple
pathType: Prefix
…

timmmmmb
- 674
- 7
- 26
3
votes
0 answers
Microk8s ImagePullBackOff cannot be fixed by modifying the config
I have installed a microk8s to ubuntu (arm64 bit version), I would like to access my local image registry provided by the microk8s enable registry. But I get a ImagePullBackOff error, I have tried to modify…

Dániel Kis
- 2,341
- 5
- 28
- 51
3
votes
2 answers
microk8s join node has no effect
I did command om master node
microk8s add-node
From the node you wish to join to this cluster, run the following:
microk8s join 192.168.0.xxx:25000/token
If the node you are adding is not reachable through the default interface you can use one of…

Sultan Zhumatayev
- 535
- 1
- 9
- 18
3
votes
0 answers
MicroK8s Metallb random error when calling a service
I'm setting up a k8s cluster using a scaleway machine (4cpu & 8g memory) using microk8s with following add-on:
microk8s is running
high-availability: no
addons:
enabled:
dns # CoreDNS
helm3 # Helm 3 -…

Gregoire
- 142
- 8
3
votes
1 answer
How to change microk8s kubernetes storage location
Hello I installed Microk8s Kubernetes on Ubuntu 18 single node machine and I was wondering how to change the storage location. I want all the containers / pods to be created in /dev/sdc volume which is ext4 format instead of default location.

Sean NT.
- 61
- 1
- 3
3
votes
0 answers
UFW not blocking traffic to microk8s cluster
I successfully deployed k8s pod with service of type NodePort in microk8s cluster. Now when I enable UFW and try to deny incoming traffic to the exposed port 31001 using command ufw deny 31001 , UFW still allows traffic to port 31001.
What should I…

ajay vasudevan
- 69
- 8
3
votes
4 answers
Microk8s node not ready - InvalidDiskCapacity
the node of microk8s does not watn to start. Kube.system pods are stick at pending state. kubectl describe nodes says as Warning InvalidDiskCapacity. My Server has more than enough resources.
PODS:
NAMESPACE NAME …

volkanb
- 229
- 3
- 14
3
votes
2 answers
Microk8s pods are stuck on pending on Ubuntu
I already looked for solutions in the internet but could not find anything useful. I have a server hostet, which runs Ubuntu 18.04. The Pods are always at the pending state and do not want to run.
NAMESPACE NAME …

volkanb
- 229
- 3
- 14
3
votes
1 answer
How to access locally installed postgresql in microk8s cluster
I have installed Postgresql and microk8s on Ubuntu 18.
One of my microservice which is inside microk8s single node cluster needs to access postgresql installed on same VM.
Some articles suggesting that I should create service.yml and endpoint.yml…

Bhushan
- 1,489
- 3
- 27
- 45
3
votes
1 answer
Configure custom DNS in kubernetes
I would like to configure custom DNS in CoreDNS (to bypass NAT loopback issue, meaning that within the network, IP are not resolved the same than outside the network).
I tried to modify ConfigMap for CoreDNS with a 'fake' domain just to test, but it…

Woody
- 809
- 8
- 21
3
votes
2 answers
Permanently replacing API server certificates
I have microK8S cluster, and expose the API server at my domain.
The server.crt and server.key in /var/snap/microk8s/1079/certs need to be replaced with the ones that include my domain.
Otherwise, as expected, i get the error:
Unable to connect to…

Vladimir Akopyan
- 644
- 8
- 16
2
votes
1 answer
"0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims" error using microk8s
by using the helm chart of emqx operator(https://github.com/emqx/emqx-operator) and going to follow their guide (https://github.com/emqx/emqx-operator/blob/main/docs/en_US/tasks/configure-emqx-persistence.md) on how to set data persistence I get the…

ADD_96
- 25
- 4
2
votes
1 answer
Jenkins pipeline: kubectl command not found
I'm running Jenkins locally and this is the last stage of my Jenkinsfile (after following this tutorial):
stage('Deploy to K8s') {
steps {
sshagent(credentials: ['k8s_key']) {
sh 'scp -r -o StrictHostKeyChecking=no…

cs.kali
- 198
- 12