Questions tagged [microk8s]

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.

415 questions
6
votes
2 answers

microk8s pulling image, stuck in ContainerCreating state

As described in the doc (based on). I am on Ubuntu as a host OS. docker --version Docker version 18.09.6, build 481bc77 microk8s 1.14/beta Enable local registry for microk2s: microk8s.enable registry Checking: watch microk8s.kubectl get all…
ses
  • 13,174
  • 31
  • 123
  • 226
6
votes
1 answer

How to fix problem with pod's issue "pod has unbound immediate persistentvolumeclaims" in Kubernetes

I want setup a working environment on local machine where I had installed microk8s before. And when I install Jenkins from helm chart (stable/jenkins) I have problem pod has unbound immediate PersistentVolumeClaims I started cluster in Linux…
Bogdan Pisarenko
  • 357
  • 1
  • 5
  • 17
6
votes
2 answers

Accessing a service using a LoadBalancer in microk8s

When exposing a service in minikube it is possible to see its url via the following: minikube service [-n NAMESPACE] [--url] NAME How do you achieve the same in microk8s? Thank you
user2324712
  • 435
  • 3
  • 13
5
votes
0 answers

CRI v1 runtime API is not implemented for endpoint

whenever i am doing kubeadm init following error displayed can anyone help me here what i can do for this [init] Using Kubernetes version: v1.26.1 [preflight] Running pre-flight checks [WARNING Swap]: swap is enabled; production deployments…
5
votes
3 answers

How to make microk8s ctr image prune

I'm getting a low disk space warning on a server where my microk8s and applications are installed. When I run the microk8s ctr image ls command, multiple images appear for an application. Does the "docker image prune -f" command in Docker have an…
5
votes
2 answers

microk8s is not running. use microk8s inspect for a deeper inspection

After restarting the VM, microk8s stopped running. Executing this command outputs the following: microk8s status: microk8s is not running. use microk8s inspect for a deeper inspection. microk8s kubectl get pod: The connection to the server 127.0.0.1…
5
votes
1 answer

Execute command as another user in container using containerd's ctr

I've installed microk8s on Ubuntu to have a simple Kubernetes cluster for test purposes. I have a usecase where I have to execute a command in a container (in a kubernetes pod) with another user than the one which is used to run the container. Since…
buderu
  • 415
  • 7
  • 16
5
votes
1 answer

TaintManagerEviction - maybe cause of my pod get a new IP a few times a day

microk8s kubectl describe pod mysql-deployment-756f9d8cdf-8kzdw Notice the 11 minute age. Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal SandboxChanged 11m kubelet Pod sandbox…
grabbag
  • 980
  • 1
  • 15
  • 33
5
votes
2 answers

/snap/bin/microk8s error - permanently dropping privs did not work: File exists

Has anyone come across this issue before? /snap/bin/microk8s permanently dropping privs did not work: File exists I get the same error when trying to run any of the other sub commands like microk8s.enable, microk8s.status, microk8s.kubectl - all…
Okezie
  • 5,012
  • 3
  • 26
  • 27
5
votes
1 answer

Do we need to keep the services as nodePort even if Ingress is being used?

Hello Kubernetes Experts, Trying to get a better understanding here. I have created a deployment with a regular deployment yaml and service yaml The service is node port, I then created a ingress and pointed the service Tried to access the service…
anish anil
  • 2,299
  • 7
  • 21
  • 41
5
votes
3 answers

Is it possible to set microk8s to use docker engine instead of containerd?

First of all, I am not an expert in container orchestration tools. I've just installed microk8s according to the guide: https://microk8s.io/docs/ And if I run microk8s kubectl get nodes, I see, that my node is actually running containerd engine. My…
Vololodymyr
  • 1,996
  • 5
  • 26
  • 45
5
votes
1 answer

microk8s.enable dns gets stuck in ContainerCreating

I have installed microk8s snap on Ubuntu 19 in a VBox. When I run microk8s.enable dns, the pod for the deployment does not get past ContainerCreating state. I used to work in before. I have also re-installed microk8s, this helped in the passed, but…
Peter Zandbergen
  • 188
  • 2
  • 13
4
votes
1 answer

gitlab-runner executor failing on Microk8s Raspberry pi cluster - `ContainersNotInitialized: "containers with incomplete status: [init-permissions]"`

gitlab-runner executor failing on Microk8s Raspberry pi cluster - ContainersNotInitialized: "containers with incomplete status: [init-permissions]" Any help or just suggestions as to how to troubleshoot this further would be appreciated! I am trying…
KNOX
  • 367
  • 1
  • 3
  • 15
4
votes
2 answers

How do I kill microk8s kubernetes?

I took a course a while ago on Kubernetes. I used my Ubuntu 20.04.3 LTS laptop to set up the environment for educational purposes. I used microk8s as my Kubernetes distribution. I recently noticed that there were the following processes using about…
Campbell Hutcheson
  • 549
  • 2
  • 4
  • 12
4
votes
3 answers

microk8s Kubernetes Service connection refused

I have a simple restful django project that return 'hello world' when you GET localhost:8000. I want to run it using microk8s. Using following instruction (https://microk8s.io/docs/registry-images) i created the image and apply my yaml file yaml…
M.Dara
  • 71
  • 7
1 2
3
27 28