Questions tagged [kubernetes]

Kubernetes is an open source container cluster manager.

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

Dynamically read key from values.yaml in helm

I am working creating virtual service with helm my goal is to create vs that accept single or multiple match block with help of helm right now I am stuck at very last part , I want to read httpmatch ...
  • 1
0 votes
0 answers
16 views

Why can't Kubernetes PODs communicate with Docker containers started manually?

We are running Docker and Kubernetes on EC2 through the EKS service, and this cluster is mainly used for CICD purposes solely. Besides that, we are trying to setup TestContainers to run in our ...
0 votes
0 answers
82 views

HELM(error) data: Too long: must have at most 1048576 bytes

ok I have a huge applications with multiple components, each have plentyful config files directory tree looks like this # ls -1 . Chart.yaml configs templates values.yaml # ls -1 configs component1-...
  • 1,833
0 votes
0 answers
9 views

IP rule for Metal LB not used

I try to implement source-based routing on my Kubernetes cluster. It works for everything, except the interfaces "generated" by Metal LB. The physical interface on my machine is 172.16.1.253,...
  • 1
0 votes
0 answers
23 views

export environment variables in k8s command is not working

In a k8s yaml config, the command is set as follows: When the pod launches, there's no PYTHONPATH enviroment variables, could anyone help explain? Thanks soo much!
  • 205
0 votes
0 answers
24 views

Configuring iptables rules for a redirection side-car proxy on Kubernetes

I have a Kubernetes pod which has two containers: An HTTP server listening on port 80 and will send back http requests to the outside of the pod on port 80 A side-car proxy listening in port 11095, ...
1 vote
1 answer
28 views

How to list all allowed actions I can perform in kubernetes?

I've been granted access to a k8s cluster in k8s, and I'd like to see what privileges I have in the cluster, like creating/deleting pods and other such kind of actions. So far I know a command to ...
0 votes
1 answer
42 views

How can I install docker-ce alongside kubernetes on debian when using containerd?

debian/11, kubernetes/1.26.1 I have a Debian 11 host running as the control plane node for a Kubernetes deployment. This deployment uses containerd as the container engine. I'd like to install docker-...
0 votes
0 answers
19 views

kube-apiserver consumes a lot of memory. How can I find out the reason?

I've noticed that kube-apiserver consumes a lot of memory resources. This leads to some terrible issues related kubernetes cluster work: in some cases, kubernetes API doesn't work. How can I find out ...
  • 23
0 votes
0 answers
13 views

kubernetes host caching entire linux host memory

I do have a kubernetes cluster that hosts keep caching memory until entire free memory is used, impacting Flask APIs deployed inside container (API endpoint would get killed inside the pod but pod won'...
  • 101
0 votes
0 answers
27 views

Issue with installing mirco8ks on wsl 2

Good evening, I'm currently stuck on trying to figure out why vagrant cannot startup arrikto/minikf Here are the commands I used so far: $ vagrant init arrikto/minikf $ vagrant up However, I receive ...
0 votes
0 answers
31 views

How to switch nodes within a Kubernetes cluster using a Linux bash terminal?

I did follow this link to install Kubernetes. Now I noticed that my terminal shows: a@worker01: in front of each line, that isn't what it was before I follow the instructions. It seems the terminal ...
0 votes
0 answers
171 views

error execution phase addon/coredns: unable to create a new DNS service: the server was unable to return a response in the time allotted

I am trying to initialize kubeadm using sudo kubeadm init command but I get the following result: [init] Using Kubernetes version: v1.26.0 [preflight] Running pre-flight checks [WARNING Firewalld]...
0 votes
0 answers
3k views

couldn't get current server API group list: Get "https://192.168.1.2:6443/api?timeout=32s": dial tcp 192.168.1.2:6443: connect: connection refused

I have installed kubeadm, kubelet and kubectl using sudo apt install command and they are all version 1.26.0. I use Ubuntu 22.04LTS machine. I just wanted to test and use Kubernetes on my local ...
1 vote
1 answer
119 views

Where does "journalctl" read configurations from?

I have installed kubelet 1.26.0 on my Ubuntu 22.04 machine. Previously I had 1.25.2 version that I removed by apt remove kubelet command and reinstalled it with apt install kubelet command. Wherever I ...
0 votes
0 answers
3k views

status=1/FAILURE starting kubelet

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 ...
1 vote
1 answer
551 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: ...
2 votes
0 answers
129 views

No space left on device despite there is a lot of space/inodes/filefd remaining

I'm running EKS worker nodes with EC2 on AWS. There are some nodes saying "No space left on device"; all the pods in those nodes can't create new files. All nodes have only 1 volume (/). I ...
  • 21
1 vote
1 answer
60 views

What is the meaning of the --pod-network-cidr flag in kubeadm?

kubeadm, the official kubernetes installer, takes a --pod-cidr-network flag as a flag in the init command. This translates to the --cluster-cidr flag of kube-controller-manager. But it seems that this ...
  • 312
2 votes
1 answer
29 views

How to install Kubernetes on Ubuntu 2022LTS?

I installed docker engine using this page successfully. Now I want to add Kubernetes to it but I don't know how? In Docker-Desktop app that I was using on Windows it was as simple as check out an ...
0 votes
0 answers
107 views

missing kernel config for nftables with calico

I am working on a custom piece of linux kernel for my tinkerboard (like raspberry pi) , and i was trying to run kubernetes with calico installed. fyi - i'm new to kernel config in general. However, ...
  • 111
1 vote
0 answers
64 views

chaos-mesh installation on CentOS 7

I am trying to install chaos-mesh on my CentOS 7 machine but I encounter some difficulties: 2022-11-25T14:53:30.795Z ERROR chaos-daemon.daemon-server chaos-daemon/main.go:94 build chaos-daemon ...
  • 11
0 votes
0 answers
101 views

kubeadm init process hangs on on Debian 11 with connection refused

I am trying to install Kubernetes via kubeadm on a new Debian 11 node. I followed the official guidelines. I installed containerd before in install kubelet, kubeadm and kubectl When I verify the ...
  • 133
0 votes
0 answers
15 views

Manually deploy LetsEncrypt certificate to Kubernetes

One of my systems (Rocky Linux 9) collects wildcard certificates from LetsEncrypt and distributes it to the various systems that require an SSL certificate. I also have AWX running on Kubernetes (...
  • 101
0 votes
0 answers
177 views

overlay fs error when pxe booting k3s worker filesystem on ... not supported as upperdir

i have been trying to get a k3s cluster working with pxe boot following a networkchuck tutorial (https://www.youtube.com/watch?v=X9fSMGkjtug) but the tutorial doesn't use pxe booting but i got that ...
  • 1
0 votes
0 answers
15 views

OpenShift pod tolerations

I have a question related to openshift pod tolerations. According to the document, tolerations are defined in pod. Spec not in deployment/deploymentconfigs Here is the scenario, 3 master nodes with ...
0 votes
0 answers
21 views

How to parse kubeadm stdout output using shell?

How to parse kubeadm stdout output using shell? There are tons of strings E.g. {...} kubeadm join 123.123.123.123 --token jihsad.asddasdasd.asdasd \ --discovery-token-ca-cert-hash sha256:...
3 votes
1 answer
4k views

What is the net.bridge.bridge-nf-call-iptables kernel parameter?

I am following this guide of installing kubernetes with kubeadm, and as part of the installation process, I need to set the following kernel parameters in sysctl.d/99-kuvernetes-cni.conf: net.bridge....
  • 312
4 votes
1 answer
286 views

What mechanism prevents me from reading /proc/<PID>/environ in containers with a PID namespace shared with the host?

While investigating sharing the PID namespace with containers, I noticed something interesting that I don't understand. When a container shares the PID namespace with the host, some processes have ...
1 vote
3 answers
173 views

Parsing age string with awk

I need to parse out the age of a pod for a Kubernetes/OpenShift monitoring script. I need to compare the age of the pod and notify about pods in a certain state for a long amount of time. The age of ...
0 votes
1 answer
405 views

Forward multicast traffic to bridge interface

I am trying to forward the multicast traffic arriving on interface eth1 to a bridge I created with ip link add br0 type bridge. Elsewhere I have done this with a simple ip route add 226.3.2.1 dev ...
0 votes
0 answers
28 views

Another Kubernetes routing question, access services on bare metal from external network

Its taken me many attempts, and countless hours spread out over various attempts the past two years or so, but I have finally made some real progress on getting a kubernetes cluster setup and working ...
  • 101
1 vote
1 answer
61 views

CLOSE_WAIT not visible on the kubernetes node

Debugging a tcp: out of memory error, I found that a process (from a container) has a lot of connection on CLOSE_WAIT status aka 08 when I cat /proc/XXX/net/tcp But neither netstat or ss were showing ...
  • 315
3 votes
3 answers
203 views

AWK to launch OS commands from items in a CSV file with a jump line

I have a CSV file that looks like: keyuat,carsim,logs-keyuat-carsim lowuat,carsimserver,logs-lowuat-carsimserver utils,dash,logs-utils-dash utils,lifecycle,logs-utils-lifecycle utils,lifecycle-nodejs,...
  • 33
1 vote
0 answers
405 views

Why error "error: open /dev/null.lock: permission denied"?

I try to config kubernetes, but once I run the command kubectl config set-credentials... I get the error error: open /dev/null.lock: permission denied Why is that? When I search for the error, I ...
  • 23
0 votes
0 answers
66 views

Configure Multiple Schedulers

i am trying to do a customize scheduler but i keep getting this error, i am following the official k8s documentation: https://kubernetes.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/ ...
0 votes
0 answers
126 views

What is the cni.lock file for?

What does the $HOME/.config/cni/net.d/cni.lock file do for (rootless) podman? (I've read cni.lock exists in Docker too, so I've tagged this post Docker as well.) I can control where the container's ...
0 votes
1 answer
341 views

kubeadm init - unable to create ConfigMap

When Installing stacked HA cluster on Ubuntu: LOAD_BALANCER_DNS_LOAD_BALANCER_PORT=192.170.1.165:6443 sudo kubeadm init --v=9 --control-plane-endpoint "$LOAD_BALANCER_DNS_LOAD_BALANCER_PORT"...
  • 143
0 votes
2 answers
77 views

How to change kubernetes cluster name?

I am new to kubernetes. The default cluster name is Kubernetes and I want to rename it to something more meaningful. Can anybody help?
0 votes
0 answers
85 views

Why it have to do SNAT on endpoint IP when do NAT hairpin?

I was trying to figure out how kube-proxy works. So I built a expriment enviroment using docker. There are two containers: net-tool with IP 172.0.0.3 and nginx with IP 172.0.0.4. I use ipvsadm built a ...
0 votes
1 answer
247 views

Get return value from kubectl exec out into powershell script [closed]

So I'm working on a powershell script that runs a pester test. The script connects to a Kubernetes pod with a Mongo database. The goal is to check whether or not a collection in the database is empty. ...
0 votes
2 answers
160 views

is it possible to fix the sh: 1: clear: not found error when login into kubernetes pod

when I login the kubernetes v1.23 pod using this command: exec kubectl exec -i -t -n reddwarf-storage reddwarf-postgresql-postgresql-0 -c reddwarf-postgresql -- sh -c "clear; (bash || ash || sh)&...
  • 489
0 votes
0 answers
49 views

Installing Camunda Modeler in Kubernetes

I am new to Camunda and Kubernetes. I have to install camunda modeler in Kubernetes cluster. I took time to search it in internet but I coundn’t find a way. Is there any possible way to install ...
  • 11
1 vote
0 answers
109 views

When binding to vfio-pci for PCI Passthrough, I lose my ssh connection. How can I overcome this?

I am going through this KubeVirt article on PCI Passthrough. When I get to the step that unbinds the Ethernet controller from the igb driver, I lose my ssh connection. echo 0000:02:00.3 > /sys/bus/...
  • 571
0 votes
1 answer
329 views

How to SSH into Pod from outside a cluster without Internet access ? (K8S)

I created a K8S cluster (2 nodes and 1 master), that has no access to Internet, only the piloting machine has. I wanted to SSH into a Ubuntu-OpenSSH Pod, from outside the cluster and did a port-...
0 votes
0 answers
51 views

How to quickly & transparently re-mount NFS share?

I have 3 nodes running NFS servers all serving the same underlying storage: Node1 10.9.0.1 Node2 10.9.0.2 Node3 10.9.0.3 In addition, I also have a load balancer proxy on 10.9.0.10 which simply ...
2 votes
1 answer
14k views

kubeadm init missing optional cgroups

It seems that since I've updated to the newest kernel (Ubuntu server 22), I get this message during kubeadm init How to get rid of the following error? : user@kubemaster:~$ sudo kubeadm init [init] ...
1 vote
0 answers
528 views

Kubernetes - Can I set Number of Open Files Limit per pod/container?

So in Linux, we can use /proc/sys/fs/file-max to set system(node) wide limit. Is there a way to set per pod/container?
  • 11
0 votes
1 answer
314 views

No token for microk8s dashboard

I use Rocky Linux 8 and installed micro8ks with Snap. I tried to enable the dashboard of microk8s according to this docu: https://microk8s.io/docs/addon-dashboard microk8s enable dashboard token=$(...
  • 183
1 vote
2 answers
458 views

Why k3s is still seeing swap on Debian Bullseye?

I've installed k3s on Debian Bullseye (on M1 Pro through qemu/UTM). k3s recommend to disable the swap. After reading the answers of the following questions: How to safely turn off swap permanently ...