Questions tagged [kubernetes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

How do I force microk8s kubectl to generate a token for my dashboard?

I'm trying to get the token for the kubernetes dashboard. It seems none was generated. How do I force it to generate one? Here is what I did: I've installed Ubuntu 20.04 on a hyperV VM on my local ...
user avatar
  • 23
0 votes
0 answers
118 views

dial tcp: lookup master on 10.151.0.1:53: no such host over expressvpn

I am building a k8s cluster. but I am using expressvpn so when I am trying to make my worker join the msater its cant join and give me this error I0423 20:19:33.265427 5573 token.go:217] [...
user avatar
0 votes
0 answers
97 views

gpg: no valid openpgp data found while downloading kubernetes cluster

I am trying to download using this command : curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - on ubuntu 20.04.4 LTS server and I am getting this error message: gpg: no ...
user avatar
1 vote
0 answers
324 views

How i can fix this error (Unable to connect to the server: x509: certificate signed by unknown authority

When I used this command kubectl get nodes I got this error Unable to connect to the server: x509: certificate signed by unknown authority possibly because of "crypto/rsa: verification error&...
user avatar
-2 votes
1 answer
63 views

How I can start minikube

Ubuntu 20.04.3 LTS on AWS cloud Command 'start' not found, did you mean: command 'stars' from snap stars (2.7jrc3) command 'startx' from deb xinit (1.4.1-0ubuntu2) command 'stat' from deb ...
user avatar
0 votes
0 answers
83 views

systemd-udev hogs system cpu at 100%

Recently I encountered a problem on one of the nodes of kubernetes where system was running at a crawling speed. after investigating I found that several instances of systemd-udevd were running. ...
user avatar
0 votes
0 answers
106 views

Calico/flannel cni created interfaces gets deleted in Ubuntu 20.04 Arm64 platform upon restart

I have been trying to install kubeadm based k8s cluster on Macbook M1. I am using VMware Fusion tech preview to visualize Ubuntu Arm64 platform. Following is the OS build info. abhilash@lvm-master:~$ ...
user avatar
0 votes
0 answers
425 views

Trying to start minikube using virtualbox driver but getting error (Windows 10 Home)

I did below steps: Installed Ubuntu 18.04 (this was not working until I enabled WSL, so I enabled WSL2) Installed kubectl and minikube in linux distro Installed VBox Version 6.1.32 r149290 (Qt5.6.2)on ...
user avatar
  • 1
0 votes
0 answers
166 views

New microK8s cluster, dashboard fails when starting out

Setup a 3 node cluster with microk8s, seems like a snap. However when I try and access the dashboard, the pod hosting it fails and dies. When I do get there, I don't get the dashboard, but rather ...
user avatar
  • 101
1 vote
0 answers
251 views

How env var is resolved in distroless container?

I am using a distroless container for my app and normally I start my app as follow: java -jar $ARG1 $ARG2 app.jar In distroless image I gave only CMD ["app.jar"] Args are predefined env ...
user avatar
  • 111
0 votes
0 answers
62 views

How do I configure microk8s to assign SSL certs for microk8s pods with dns traefik metallb storage helm3 rbac enabled?

I'm trying to learn how to set up and manage Kubernetes using microk8s on Ubuntu 20.04. For the admin interface I'm using Rancher, as it allows me to easily mount NFS share to my pods. But I would ...
user avatar
0 votes
0 answers
135 views

setting up metallb there is no route to the node

I try to configure metall in minicube and get there is no route to the node In minicube I add metall minikube ip 192.168.49.2 Here is the file metallb-config.yaml apiVersion: v1 kind: ConfigMap ...
user avatar
  • 209
3 votes
0 answers
1k views

What is the purpose of cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1

I am trying to setup a kubernetes cluster on a raspberry pi cluster using Ubuntu 20.04.3. In many online guides available, one of the steps is mentioned as follows: Edit the /boot/firmware/cmdline.txt ...
user avatar
0 votes
0 answers
78 views

Service takes a long time to shutdown

I recently started practicing kubernetes on my local machine which is ubuntu 21.04L in a virtual machine (VMWare). Whenever I shutdown it is stuck for few minutes for containerd-shim with the ...
user avatar
0 votes
0 answers
49 views

I am keep getting warning message when doing "sudo apt-get update". I was trying to do update in kubernetes cluster. How can I resolve it?

root@gpus:/home/gpus# apt-get update Hit:2 https://repo.download.nvidia.com/baseos/ubuntu/focal/x86_64 focal InRelease Get:1 https://...
user avatar
0 votes
0 answers
23 views

Microk8s + Docker images from cdkbot

I am just starting with MicroK8s for personal use and I ended up installing images from CDKBOT user. Is that a trust source? I image that CDK stands for Canonical Distribution of Kubernetes
user avatar
  • 1
0 votes
0 answers
128 views

Log all commands executed inside kubernetes pods

I have a ttyd pod launched and running in my kubernetes cluster. I want to log all the commands executed in the ttyd or the bash shell NOTE: the security context "readOnlyRootFilesystem" is ...
user avatar
0 votes
1 answer
188 views

juju k8s-core deployment: Waiting for CNI plugins to become available

I am struggling with installation of juju kubernetes-core charm I have setup three environments: juju-controller juju add-cloud manual added two focal Ubuntu 4 CPU 4GB RAM Then I ran: juju deploy --...
user avatar
0 votes
0 answers
34 views

my charmed kubernetes stuck in wait for 3 kube-system

I am just installed charmed kubernetes with juju on top of maas which my maas is built on kvm and when my charmed complete the master nods stuck in wait for 3 kube-system
user avatar
0 votes
0 answers
49 views

Where can I find snap microk8s kubertes installation help?

Good day all. First time snap microk8s user and need help. Followed the guide located here https://microk8s.io/ with no success. The following command hangs for longer then 30 mins requiring keyboard ...
user avatar
0 votes
0 answers
34 views

Ubuntu 20.04 stuck on reboot

I have recently downloaded Docker and Kubernetes onto my system, and it is now stuck on a black screen saying > A stop job is running for Docker Application Container Engine (12min 7s / no limit) ...
user avatar
0 votes
2 answers
2k views

How to perform a port-forward on microk8s and send that process to the background?

I am trying to run this command: microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 But the output is the following: └─[$] <> microk8s kubectl port-forward -n ...
user avatar
0 votes
0 answers
104 views

Error found when loading /home/[username]/.profile

I’ve been setting up my computer, having not used Ubuntu before, and after restarting it I’m presented with this error. The mouse is not always visible to click the “ok” button, so I have to turn the ...
user avatar
0 votes
0 answers
133 views

GitPod self-hosting installation script requires non-existent argument “--aks-custom-headers”

I’m currently trying to install a self-hosted GitPod instance on an Azure VM via this page: https://github.com/gitpod-io/gitpod/tree/wth/add-azure-containerd-support/install/azure Everything was going ...
user avatar
1 vote
0 answers
521 views

Ubuntu Terminal on Windows 10: how to fix "kubectl: command not found"?

I installed "Ubuntu Terminal on Windows 10" and tried to execute kubectl commands. The problem is that I must add the .exe file extension to the command in order to operate it. If I don't I ...
user avatar
  • 121
1 vote
1 answer
538 views

Charmed K8s - Volume not created by Ceph storage class

I've deployed an on premise baremetal K8s Cloud with charmed Kubernetes. And I use Ceph for the storage. The deployment of the cluster went well but when I want to create a Volume (via a PVC) the ...
user avatar
1 vote
1 answer
2k views

How to fix signature key?

I have tried with sudo apt-get update and sudo apt-get upgrade. And i get this error with kubernetes error: I have tried with these following commands below: sudo rm /var/lib/apt/lists/* -vf sudo apt-...
user avatar
  • 1,429
0 votes
0 answers
19 views

How to install kubernetes using automatic deb version?

I use ubuntu 20.04 (focal) and need use kubernetes but the official package is kubernetes-xenial and the snap version is broken and no have support. How to create a command for install automatic last ...
user avatar
  • 188
0 votes
1 answer
309 views

Howto run kubectl from snap package?

By example: $ sudo snap install kubectl --classic; $ kubectl cluster-info dump; The connection to the server localhost:8080 was refused - did you specify the right host or port? $ ps -aux | grep kube; ...
user avatar
  • 188
0 votes
1 answer
483 views

Docker login permission denied from private repo in Kubectl

I have few private repository in docker hub and i want to deploy it in my laptop below are the issue im getting when deploying images. And all images have download but still issue having root@master-...
user avatar
0 votes
1 answer
4k views

How to remove docker package from apt update?

On Ubuntu 20.04 I had problems installing minikube due to some docker issues, so I decided to update it, but sudo apt update outputs docker package error: Err:18 https://get.docker.com/ubuntu docker ...
user avatar
  • 117
1 vote
1 answer
425 views

Installing Ubuntu Kubernates 1.20 on localhost -> Documentation lead to error -> Waiting for 3 kube-system pods to start

I was created fresh Ubuntu 20.03 on VirtualBox than started installation using documentation. Machine have Quadro RTX Card (maybe it impacts?). Documentation is messy because there is many ways to do -...
user avatar
  • 111
1 vote
2 answers
3k views

Remove node from Microk8s cluster

I've dead node which I probably removed using kubectl instead of microk8s command. The problem is that microk8s status still shows it among datastore standby nodes. How can it be deleted from the ...
user avatar
0 votes
1 answer
816 views

Add ubuntu repository command fails to run [duplicate]

Sorry for the newb question. I'm trying to add a repository to my ubuntu machine: $ sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - <<EOF >/etc/apt/...
user avatar
0 votes
1 answer
2k views

Running sudo snap on WSL2 with ubuntu18.04

By following WSL: Am I running version 1 or version 2? I've verified that my WSL is version 2. Running uname -a outputs "Linux DESKTOP 4.4.0-18362-Microsoft" I want to install microk8s on ...
user avatar
  • 101
0 votes
1 answer
959 views

Microk8s for Mysql High- Availability

I am trying to setup MySQL HA Database with Microk8s Kubernetes. The goal is to have MySQL running on all 3 nodes with 1 floating IP in between them, and that if any of the nodes bursts up in flames ...
user avatar
0 votes
1 answer
614 views

microk8s on LXC: Service snap.microk8s.daemon-proxy is not running

I installed microk8s in a LXD container snap install microk8s --classic When I inspect the instance it shows that snap.microk8s.daemon-proxy is not running root@mk8s1:~# microk8s inspect Inspecting ...
user avatar
  • 200
0 votes
1 answer
259 views

Unable to resolve DNS for kubernetes cluster on Ubuntu only

I've been reading through the forums all day and can't find an answer to this so I'm hoping I can get help here. I've setup a kubernetes cluster with DNS using a CNAME to point it to my cluster as per ...
user avatar
0 votes
0 answers
50 views

Kubernetes 1.19 is out! Get it in one command with sudo snap install microk8s [duplicate]

I have three Ubuntu VM on Microsoft Azure. Every-time I login (through ssh) on my VMs in the Azure I see the following hint: * Kubernetes 1.19 is out! Get it in one command with: sudo snap install ...
user avatar
0 votes
1 answer
119 views

Unexpected termination of pods

I have created a fresh charmed cluster using Juju bundle: Kubernetes Calico #884 Running kubectl commands like kubectl logs <podname> -f, the terminal connection disconnects with error: rpc ...
user avatar
  • 1
0 votes
0 answers
1k views

Kubernetes connection refused?

When run kubectl version i get the client version back but not the server-version? Picture below: How can i solve this error? The connection to the server localhost:8080 was refused - did you specify ...
user avatar
  • 1,429
0 votes
1 answer
5k views

How do I access microk8s externally exposed service ip over network?

I am running a microk8s instance on Ubuntu server as a vanilla install, configured with MetalLB to dynamically allocate 10.0.2.1 to 10.0.2.200 and the Nginx ingress controller enabled. I've installed ...
user avatar
  • 111
6 votes
1 answer
9k views

Enabling memory cgroup in Ubuntu 20.04

Instructions for enabling the memory cgroup on Ubuntu 18 and 19 involve adding cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 to /boot/firmware/nobtcmd.txt and restarting. After rebooting, ...
user avatar
  • 141
0 votes
1 answer
789 views

login phpMyAdmin to MySql getting error in Ubuntu 18.04 kubernetes nodes

i am trying to install phpMyAdmin and Mysql as pods in my Kubernetes cluster. everything is okay but when i try to log in into mysql by browser from phpMyAdmin interface i failed the error massages ...
user avatar
1 vote
0 answers
135 views

Every snap installed executable getting ibudev.so.1: failed to map segment from shared object

Every time that i run any snap installed app, i'm getting this message: /snap/core/9066/usr/lib/snapd/snap-confine: error while loading shared libraries: libudev.so.1: failed to map segment from ...
user avatar
0 votes
1 answer
413 views

coredns is running but not ready after conjure-up k8s cdk

I have deployed Kubernetes V1.18.2 (CDK) using conjure-up (which used bionic) The coredns is resolving via /etc/resolv.conf, see configmap below: Name: coredns Namespace: kube-system ...
user avatar
0 votes
0 answers
456 views

Why can't see pod resources in the cluster which created by microk8s?

Installed microk8s by sudo snap install microk8s --classic --channel=1.17/stable Alias alias kubectl='microk8s.kubectl' Current docker container: docker container ls CONTAINER ID IMAGE ...
user avatar
1 vote
1 answer
416 views

Installing kubernetes on my own hardware

I need to install a k8s cluster on my own hardware running ubuntu 18 and 19. No cloud will be involved. I've read about JuJu, but it seems very oriented to various clouds. I haven't seen anything ...
user avatar
1 vote
1 answer
6k views

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443

I've been trying to install minikube on my Ubuntu machine as per this post. But whenever I try to run... curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-...
user avatar
0 votes
1 answer
412 views

“kubeadm init” fails on setting up Highly Available clusters

I try to setup a haproxy'd multi-master node setup for Kubernetes, as described in [1]. My network configurations are: haproxy = 192.168.1.213 master0|1|2 = 192.168.1.210|211|212 worker0|1|2 = 192....
user avatar