Questions tagged [kubernetes]

Kubernetes is an open source container cluster manager.

kubernetes (pronounced koo-ber-neh-tees from its greek origin of "helmsman") or "k8s", is a system for automating deployment, scaling, and management of applications in container groups on clusters of hosts. Originally donated by Google, it is now open-source but available from several commercial vendors.

Also, see stackexchange's What does Kubernetes actually do?

182 questions
62
votes
2 answers

Install specific previous version of package using snap?

I would like to install kubectl version 1.2.4 on a machine. The Kubernetes documentation recommends using snap for installation on Ubuntu. snap install --help is not very useful, the one promising parameter --revision= doesn't work: $ sudo snap…
Cory Klein
  • 18,391
  • 26
  • 81
  • 93
10
votes
1 answer

How to achieve processor affinity in containers?

I see with kubernetes it's possible to set node affinity for certain workloads. I'm wondering if there are any facilities in the various container technologies, such as docker, rocket etc that allow you to pin processes to cores? or if this is even…
barrymac
  • 1,115
  • 1
  • 12
  • 18
5
votes
1 answer

How to install containerd on Debian?

As the docker daemon gets deprecated in the future Kubernetes version 1.20, I just wanted to start a test installation of a kubernetes cluster with containerd. I am trying to install a new cluster running on a debian (buster) using containerd as the…
Ralph
  • 153
  • 1
  • 6
5
votes
1 answer

Yum in Amazon Linux 2 still asks for GPG key even after "rpm --import" when adding Kubernetes repo

I'm trying to add a kubernetes repo to my Amazon Linux 2 instance and struggle with automatically adding GPG keys. This is my…
KeepLearning
  • 235
  • 2
  • 7
5
votes
0 answers

Kubelet failed to get cgroup stats for "/system.slice/docker.service"

Question What the kubectl (1.8.3 on CentOS 7) error message actually means and how to resolve. Any references to understand what is going on. I suppose kubelet tries to talk to docker but somehow it is not happening, and would like to know what…
mon
  • 179
  • 1
  • 5
5
votes
2 answers

OpenVPN server on Kubernetes cluster / DNS and Service resolution

I have a Kubernetes cluster running applications (currently on a set of Vagrant CoreOS VMs on a local server) I want to be able to debug a particular application locally on my laptop, so I worked on setting up VPN into the cluster: a client/server…
MrE
  • 563
  • 5
  • 11
4
votes
1 answer

What mechanism prevents me from reading /proc//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 their environmental variables protected while others…
Dejan Zelic
  • 131
  • 8
4
votes
1 answer

How can "/sys/class/net/eth0/iflink" have system wide information in a container

I was looking for ways to tcpdump a Kubernetes pod. Each pod creates a virtual interface and it is hard to know which interface belongs to the actual pod. I found a method that helps identify the system-wide interface index. Basically, it is…
AFP_555
  • 251
  • 2
  • 11
4
votes
1 answer

How can I pass environment variables from sshd's environment to new SSH sessions?

How can I pass environment variables from sshd's environment to new SSH sessions? I'm running sshd in Kubernetes pods. Kubernetes sets various variables in the containers environment, including the API server:…
Shuzheng
  • 4,023
  • 1
  • 31
  • 71
4
votes
0 answers

How to mount entire "/" directory of a linux container on a persistentVolume in AWS k8s

Is it possible to use PersistentVolume to mount entire "/" diirectory of a linux container on it. i am trying to mount it, but it fails. i basically want a container, where i would be doing ,multiple changes througtout, and want those changes to…
Mohammed Ali
  • 671
  • 2
  • 14
  • 38
4
votes
2 answers

Unable to pull images in Kubernetes

I am running Kubernetes on CentOS 7, and I am unable to deploy pods.  After running # kubectl run nginx --image=nginx I run # kubectl describe pod nginx which gives the following output: Name: nginx-701339712-8sx7m Namespace: …
Mohammed Ali
  • 671
  • 2
  • 14
  • 38
3
votes
2 answers

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…
YoavKlein
  • 312
  • 2
  • 10
3
votes
3 answers

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

I have a CSV file that looks…
Vidanez
  • 33
  • 4
3
votes
2 answers

How to run multiple commands in kubernetes cron job

I am trying to run multiple commands in a K8s cron job. However, only the first jobs output is showing in the logs. I have this: containers: - name: myjob image: postgres args: - /bin/sh …
Anthony
  • 175
  • 1
  • 2
  • 7
3
votes
0 answers

Failed writes after a while on mounted nfs volume

I have mounted an nfs drive on the machine. I can see it with the following command: $ df -aTh | grep nfs … unrelated volumes … 10.200.30.100:/export/pvc-70..1d nfs4 976M 2.0M 907M 1%…
gurghet
  • 81
  • 4
1
2 3
12 13