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
0
votes
0 answers
Microk8s kubernetes preStop httpGet does not work
The livenessProbe works, but the lifecycle preStop does not.
My yaml:
- image: localhost:32000/worker:2022-08-28-h
name: worker-container
ports:
- containerPort: 55001
name: name-b
livenessProbe:
httpGet:
path:…

grabbag
- 980
- 1
- 15
- 33
0
votes
1 answer
How do I export kubernetes node/pod logs from a private network
I have an application running on microk8s at multiple edge server locations bounded by trusted VPN network. There are no inbound accesses allowed. No ssh nor rdp. We're only allowed rdp during the time of initial setup or during trimester…
0
votes
0 answers
Metallb and Microk8s version 2.4
To expose some state-full set pods I used the following script:
microk8s.kubectl expose po mars-0 mars-1 mars-2 mars-3 mars-4 mars-5 mars-6 mars-7 mars-8 mars-9 --type LoadBalancer --port 31001,31002,31003,31004,31005,31006,31007,31008,31009
The…

user8217890
- 1
- 1
0
votes
1 answer
I'm trying to test "mayastor" on k8s and i need to install Kernel module 'nvme_tcp`
However, i have the following issue :
sudo microk8s enable core/mayastor
Checking for HugePages (>= 1024)...
Checking for HugePages (>= 1024)... OK
Checking for nvme_tcp module...
Kernel module 'nvme_tcp' is missing or not loaded. For Ubuntu,…

Theodor
- 1
- 2
0
votes
0 answers
Docker private registry on localhost fails to retrieve via http
I have setup Docker and microk8s running on Ubuntu WSL. I have pushed a demoapp to private registry running on localhost:5000 and when I try to deploy this demo app image on kubernetes I get imagepull fail stating below error when I describe the…

vick_4444
- 303
- 1
- 5
- 19
0
votes
1 answer
Kubernetes Ingress does not match host
I'm trying to create an ingress rule for a backend service. The ingress controller is the Microk8s Nginx ingress. If I set the host, the ingress stops matching the backend, resulting in a 404 when I visit https://my-host.com
Here is my…

Nash
- 85
- 2
- 8
0
votes
1 answer
Microk8s MetalLB ingress headless service - 502 Bad Gateway
Using the latest version of microk8s and trying to set up load balancer to headless service running in the cluster, this is what I have:
$ k get all -n ingress
NAME READY STATUS RESTARTS …

Kok How Teh
- 3,298
- 6
- 47
- 85
0
votes
1 answer
Port forward to postgres kubernetes pod fails with connection reset when executing certain commands via psql
I have a postgres deployment, whose configuration looks like this
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: hippo
spec:
image:…

Caius Cosades
- 33
- 1
- 9
0
votes
2 answers
Service Endpoint not created although container port is online
I have a simple Service that connects to a port from a container inside a pod.
All pretty straight forward.
This was working too but out of nothing, the endpoint is not created for port 18080.
So I began to investigate and looked at this question…

madmax
- 1,803
- 3
- 25
- 50
0
votes
0 answers
Microk8s : cannot ping outside pods
I'm using microk8s installed on my ubuntu server. and I try to ping outside from my pod
I have docker installed on my machine: when I run a container with docker I can ping outside :
~$ sudo ip addr show docker0
5: docker0:…
0
votes
0 answers
Microk8s Pod fails to start when i create a service for it with 1000 UDP ports
I am creating a deployment with a custom image i have in a private registry, the container will have lots of ports that need to be exposed, i want to expose them with a NodePort service, if i create a service with 1000 UDP ports then create the…

frisky5
- 29
- 10
0
votes
2 answers
How to change value for TCP_KEEP_ALIVE value in K8S Pod
I setup a k8s cluster using microk8s. I wonder how to change the default TCP Keep
Alive Value in the Pod. When i apply the yaml file, it will give me allowedUnsafeSysctls error
apiVersion: apps/v1
kind: Deployment
metadata:
name:…

Jack
- 89
- 6
0
votes
1 answer
Intermittent 502 errors on local nginx-ingress router in microk8s cluster
I'm new to Kubernetes and am experiencing a weird issue with my nginx-ingress router. My cluster is run locally on a raspberry pi using Microk8s, where I have 4 different deployments. The cluster uses an ingress router to route packets for the UI…

Adrian Patterson
- 57
- 8
0
votes
1 answer
Struggling with microk8s ingress and mapping
I have built a process using a series of docker containers to spool up quick and easy flutter apps into a kubernetes cluster (so I can use the rest of the cluster to run background worker type processes). I have been able to get it deployed to my…

Xanderu
- 747
- 1
- 8
- 30
0
votes
0 answers
Spring Cloud Skipper errors out immediately after start on local MicroK8s
I'm trying to deploy the entire Spring Cloud Data Flow platform to a MicroK8s cluster running on one of our server, a VM with Ubuntu 20.04. Before starting performing actions on the target server, I tried to deploy it on my local computer (same OS)…

Riccardo Bellini
- 248
- 2
- 7