Questions tagged [kubernetes]
The kubernetes tag has no usage guidance.
115
questions
0
votes
0
answers
54
views
not able to find ''kubectl" : no such file or directory
I am installing kubectl using Kubernetes Install on Linux . I am on third steps sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl but I am getting this error install: cannot stat '...
0
votes
0
answers
22
views
DNS Issues with Kubernetes Cluster : no servers could be reached
I'm still experiencing dns and network issues
And I'm at a dead point, looking for hints and suggestions
Summing up :
Following the indications found here : https://kubernetes.io/docs/tasks/administer-...
0
votes
0
answers
25
views
I want to create containerd/config.toml file for local lxc containers
0
I've been trying and looking for a solution to use my local lxc containers images to get loaded in my local k8s cluster.
By this, I have a Dev Environment, which has few lxc containers and images. I ...
0
votes
0
answers
435
views
sysctl: setting key "net.ipv4.conf.all.accept_source_route": Invalid argument While loading kernel modules for kubernetes
Following the indications found here: https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/ I'm trying to install Kubernetes cluster on Ubuntu 22.04
On Step 2 : Load the kernel module I'm ...
2
votes
2
answers
478
views
Cloud-init: how to get kernel parameters into the grub config files during autoinstall on 22.04?
I proceed struggling my way through the cloud-init and it's documentation. One of my current challenges is getting the cgroups flags for the kernel into the grub configs.
The ultimate goal is to get ...
0
votes
0
answers
68
views
Prometheus Server not showing Cadvisor metrics for apiserver node
I have deployed a prometheus helm chart on my Microk8s and all is working fine. The only problem I am having is that it does not seem to be polling metrics for the leader node with the apiserver on it....
1
vote
0
answers
24
views
Microk8s air gapped install issues
Followed the instructions for this tutorial in order to install microk8s in an air-gapped environment to no avail.
Upon attempting the "Deploy MicroK8s cluster" step the following command ...
0
votes
0
answers
104
views
Ubuntu 22.04 flannel cni0 degraded carrier
I'm working with kubernetes on Ubuntu 22.04. We can see networking issues showing up in the syslog with flannel. In the logs you can see various networking links going up and down after 2s. The cni0 ...
1
vote
1
answer
77
views
Why is Kubernetes K8s not in official Ubuntu repos?
I am aware of the more generic version of this question, found here:
Why is some software not in the official Ubuntu repositories?
However, I would like to ask about Kubernetes in particular.
I am ...
0
votes
1
answer
5k
views
Installing k9s on Ubuntu
I am using snap install k9s to install k9s on ubuntu. However, that installs a much older version 0.5.1 whereas the latest version is 0.27.4. Can Someone please help me in how to install the latest ...
1
vote
0
answers
342
views
Microk8s high cpu usage
I recently installed microk8s on a Ubuntu 22.04 server (running on VirtualBox 7, windows 10 as host). The VM has 6 cores and 32gb of ram, so it has plenty of resources.
Microk8s is installed via snap ...
0
votes
0
answers
67
views
Changing the Pod and Service CIDR?
How would one go about changing the:
Pod (10.1.0.0/16)
Service (10.152.183.0/24)
Kubernetes API (10.152.183.1)
CoreDNS (10.152.183.10)
CIDRs that come stock with installing Microk8s?
I run a 10.0....
0
votes
0
answers
375
views
apt-key deprecated. Install key without installing gpg?
I know that apt-key is deprecated and want to install kubectl like this:
docker run -it ubuntu:22.04 bash
apt update; apt install gpg curl sudo
curl -s https://packages.cloud.google.com/apt/doc/apt-...
0
votes
1
answer
930
views
apt install no longer works for kubernetes. snap install also fails
I've always installed kubernetes with sudo apt install -y kubectl kubeadm kubelet. This now gives the message
No apt package "kubeadm", but there is a snap with that name.
Try "snap ...
0
votes
1
answer
216
views
do-release-upgrade fails because of Err https://packages.cloud.google.com/apt kubernetes-xenial InRelease
I'm upgrading a Ubuntu 18.04 system. The command sudo do-release-upgrade fails with the error below. This system was a k8s master, but I did sudo apt purge kubeadm kubectl kubelet. Why is it still ...
0
votes
1
answer
174
views
No such file or directory: '/lib/modules/5.2.0/modules.builtin'
I'm trying to install Kubernetes cluster using Kubespray. I get this error during script run time:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ...
0
votes
1
answer
573
views
Kubernete Pod cannot resolve DNS address but can reach it (example curl google.com fails, curl ip is ok)
I'm just starting out and i've been learning kubernetes since couple of weeks ago, i'm using a plain installation of microk8's with addons dns metallb enabled, and a simple pod with alpine with curl ...
0
votes
3
answers
936
views
I want to deploy k8s 1.26 on ubuntu22.04, but apt install kubelet fails
I want to deploy k8s 1.26 on ubuntu22.04, but apt install kubelet fails
$ apt-get install kubelet kubeadm kubectl
You might want to run 'apt --fix-broken install' to correct these.
The following ...
0
votes
0
answers
50
views
Portainer SSL Microk8s
I have installed Microk8s on my Ubuntu server, enabled Microk8s and set up my cluster. Everything is working fine and as expected. The issue is when I go to upload my own SSL certificates in the ...
0
votes
2
answers
321
views
Why can I not attach a shell to Google's hello-app:v1 container?
I've deployed a simple Kubernetes bare pod (hello-world-pod) in a cluster with nodes running Ubuntu 18.04 in Vagrant. When I run this command,
kubectl exec -it hello-world-pod -- /bin/sh
...I get the ...
0
votes
0
answers
23
views
deleting all pods in k8s
is there a difference between deleting all pods in a daployment or doing a rollout restart of the deployment?
Of course with no changes in the deployment configuration.
Thanx
0
votes
1
answer
304
views
microk8s minio addons
I have setup a microk8s (1.26) cluster that runs on 2 vagrant VMs (both Ubuntu 22.04), I have also enabled the minio addon.
The setup went well, and using sudo microk8s kubectl-minio proxy, I am able ...
0
votes
1
answer
3k
views
Soln to the "Found multiple CRI endpoints on the host" issue?
(Apologies if this is a dumb question...)
chuck@k8smaster:~$ sudo systemctl status crio
● crio.service - Container Runtime Interface for OCI (CRI-O)
Loaded: loaded (/lib/systemd/system/crio....
0
votes
0
answers
104
views
How to use "microk8s kubectl" within a "skaffold.yaml" file?
I have a skaffold.yamlfile like below:
apiVersion: skaffold/v2alpha3
kind: Config
deploy:
mk:
manifests:
- ./infra/k8s/*
build:
local:
push: false
artifacts:
- image: ...
0
votes
0
answers
242
views
Proces6420ExecStart=/usr/bin/kubelet$KUBELET_KUBECONFIG_ARGS$KUBELET_CONFIG_ARGS$KUBELET_KUBEADM_ARGS$KUBELET_EXTRA_ARGS(code=exited,status=1/FAILURE)
I've just installed kubeadm, kubelet, kubectl 1.26.0 using apt install command. When I try systemctl status kubelet, I get the following result:
● kubelet.service - kubelet: The Kubernetes Node Agent
...
0
votes
0
answers
1k
views
The connection to the server 192.168.1.2:6443 was refused - did you specify the right host or port?
I am trying to install and run Kubernetes on my Ubuntu 22.04LTS machine. I followed the installation here but I get the following errors when I try kubectl get pods or kubectl get nodes for example:
...
3
votes
0
answers
336
views
Why does microk8s keep complaining that the memory cgroup is not enabled?
I have several raspberry pie's with ubuntu 22.04 installed on them. On them I have installed microk8s (1.25). I have also enabled the memory cgroup as per the instructions here: https://microk8s.io/...
0
votes
0
answers
107
views
Microk8s Bind to Port 80 with Non-Root User
I seem to be having an issue on microk8s that when I run a pod / container as non-root in Microk8s it cannot bind to port 80 even though I had the NET_BIND_SERVICE capability enabled. It works however ...
0
votes
0
answers
159
views
Why does pod on worker node fail to initialize in Vagrant VM?
I'm building a Kubernetes cluster in virtual machines running Ubuntu 18.04 managed by Vagrant. I've successfully added the first worker node to the cluster, but a pod on this node fails to initialize.
...
0
votes
0
answers
124
views
Cilium Network Policy
I have a microk8s one node cluster set up. When enabling Cilium network policies I cannot access the whoami webpage; however, I can access it fine without the network policy or if I uncomment the ...
0
votes
1
answer
324
views
How to join Kubernetes worker node to Control Plane Node using Vagrant virtual machines
I am setting up a Kubernetes cluster using Ubuntu 18.04 virtual machines with Vagrant. All goes well until I try to run the kubeadm join 10.0.2.15:6443 --token ... command on a worker node, and I get ...
0
votes
1
answer
446
views
Microk8s Traefik Dashboard
I have set up a microk8s one node cluster as a test and installed and configured metalLB as a load-balancer alongside Traefik. It is working because when I set up an ingress router to whoami, it works ...
2
votes
0
answers
1k
views
Problem starting minikube on ubuntu 22.04 with docker and virtualbox
I am trying to start minikube on my ubuntu 22.04 and it fails with a few errors.
I am using kubctl v1.25.3 and minikube v1.27.1.
When I run minikube start here is what I get:
✨ Using the virtualbox ...
0
votes
0
answers
61
views
How to add files to ipfs using ingress url from the command line tool - ipfs-cluster-ctl?
I have deployed ipfs-cluster as a statefulset with 3 replicas in Azure Kubernetes cluster. Created loadbalancer service for ipfs and used the loadbalancer service ip to add files using ipfs-cluster-...
2
votes
1
answer
1k
views
Argocd Ingress not working on a Ubuntu Microk8s cluster
I have a working Microk8s cluster. After enabling the argocd community addon, the recommended ingress for argocd sever doesn't seem to be working.
Here's a note I got after enabling the addon:
Infer ...
0
votes
0
answers
1k
views
After uninstalling Microk8s, htop commands still shows its process
I installed microk8s on my ubuntu machine. After that, I uninstalled it. But Since then I can feel that my PC is getting slow each time I run my pc. So I ran htop command and saw that microk8s process ...
0
votes
0
answers
750
views
exec format error for kubectl on Ubuntu Server 22.04 Raspberry Pi 4
I've installed kubernetes on Ubuntu Server 22.04 LTS, on a Raspberry Pi 4.
kubeadm and kubelet execute fine, but when executing kubectl I get the cannot execute binary file exec format error output.
...
0
votes
0
answers
783
views
Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) docker container
when I want to install wget in docker container like this:
exec kubectl exec -i -t -n reddwarf-storage reddwarf-postgresql-postgresql-0 -c reddwarf-postgresql -- sh -c "clear; (bash || ash || sh)&...
0
votes
1
answer
85
views
charm kub in openstack "... no metadata for "focal" images ... arch amd64"
I am using ubuntu 18 to deploy charmed kubernetes to openstack. I have done the following which has worked but the instances are not being created.
I created controller like so
juju bootstrap ...
0
votes
2
answers
866
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 ...
0
votes
0
answers
1k
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] [...
0
votes
0
answers
2k
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&...
-1
votes
2
answers
421
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 ...
1
vote
0
answers
1k
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 ...
6
votes
1
answer
6k
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 ...
0
votes
0
answers
99
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 ...
0
votes
0
answers
276
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://...
0
votes
1
answer
387
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 --...
1
vote
0
answers
54
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
1
vote
2
answers
5k
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 ...