Questions tagged [kubernetes]

KUBERNETES QUESTIONS MUST BE SPECIFICALLY RELATED TO SOFTWARE DEVELOPMENT. Configuration and deployment is off-topic here. A good rule of thumb is, if it happens outside the pod, it's probably off-topic. If it's about code running inside the pod, it's probably OK.

Kubernetes is a system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications. Its APIs are intended to serve as the foundation for an open ecosystem of tools, automation systems, and higher-level API layers. Kubernetes can run on various cloud providers, on premises in VMs, or on bare metal machines.

Getting started

Books

Online Courses

57333 questions
13
votes
2 answers

How to import state created on another server?

I setup my Kubernetes cluster using kops, and I did so from local machine. So my .kube directory is stored on my local machine, but I setup kops for state storage in s3. I'm in the process of setting up my CI server now, and I want to run my…
djt
  • 7,297
  • 11
  • 55
  • 102
13
votes
1 answer

What is the signal sent to the process running in the container when k8s liveness probe fails? KILL or TERM

I have a use case to gracefully terminate the container where i have a script to kill the process gracefully from within the container by using the command "kill PID".( Which will send the TERM signal ) But I have liveness probe configured as…
13
votes
6 answers

Error while executing and initializing kubeadm

While initializing kubeadm I am getting following errors. I have also tried command kubeadm reset before doing kubadm init. Kubelet is also running and command I have used for same is systemctl enable kubelet && systemctl start kubelet. Following is…
rishi007bansod
  • 1,283
  • 2
  • 19
  • 45
13
votes
2 answers

What is --pod-infra-container-image meant for?

What is purpose of pod-infra-container-image in kubernetes? Official documentation says only: The image whose network/ipc namespaces containers in each pod will use. (default "gcr.io/google_containers/pause-amd64:3.0") but I don't understand…
Sasa
  • 1,597
  • 4
  • 16
  • 33
13
votes
1 answer

Kubernetes (kubectl) get running pods

I am trying to get the first pod from within a deployment (filtered by labels) with status running - currently I could only achieve the following, which will just give me the first pod within a deployment (filtered by labels) - and not for sure a…
user3746259
  • 1,491
  • 2
  • 23
  • 46
13
votes
4 answers

kubernetes cluster master node not ready

i do not know why ,my master node in not ready status,all pods on cluster run normally, and i use cabernets v1.7.5 ,and network plugin use calico,and os version is "centos7.2.1511" # kubectl get nodes NAME STATUS AGE …
user1208081
  • 1,057
  • 4
  • 15
  • 29
13
votes
1 answer

How to configure a Persistent Volume Claim using AWS EFS and ReadWriteMany?

I have the following persistent volume and volume claim: kind: PersistentVolume apiVersion: v1 metadata: name: kloud spec: capacity: storage: 100Gi accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain nfs: server:…
oz123
  • 27,559
  • 27
  • 125
  • 187
13
votes
6 answers

Why minikube needs a VM

I guess that minikube needs VirtualBox because of dockers' dependencies, but my current docker version doesn't need it. So do I still need VirtualBox or another VM to start minikube?
learnercys
  • 302
  • 1
  • 3
  • 16
13
votes
3 answers

Is this necessary to have multiple processes / threads in a Kubernetes pod?

I'm using uwsgi in a container hosted in a Kubernetes cluster. UWSGI supports a traditional master / slave architecture to provide a better availability for the application but my question is, should I even use this feature? In other words, when I…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
13
votes
1 answer

Kubernetes Nginx: How to have zero-downtime deployments?

I am attempting to have a kubernetes nginx deployment with zero downtime. Part of that process has been to initiate a rollingUpdate, which ensures that at least one pod is running nginx at all times. This works perfectly well. I am running into…
Lindsay Landry
  • 4,657
  • 1
  • 15
  • 19
13
votes
1 answer

How to verify that a Kubernetes deployment update has been successful?

I have a simple Kubernetes deployment. It consists of a single, unreplicated container. There is no service exposing the container. The container has a health check which checks that it is correctly configured and can communicate with its external…
Ben Butler-Cole
  • 2,011
  • 1
  • 17
  • 23
13
votes
9 answers

Kubernetes pods are running but docker ps does not give any output

I have been trying to run tomcat container on port 5000 on cluster using kubernetes. But when i am using kubectl create -f tmocat_pod.yaml , it creates pod but docker ps does not give any output. Why is it so? Ideally, when it is running a pod, it…
Abhishek Somani
  • 473
  • 2
  • 6
  • 17
13
votes
2 answers

GKE + WebSocket + NodePort 30s dropped connections

I have a golang service that implements a WebSocket client using gorilla that is exposed to a Google Container Engine (GKE)/k8s cluster via a NodePort (30002 in this case). I've got a manually created load balancer (i.e. NOT at k8s ingress/load…
13
votes
7 answers

Horizontal pod autoscaling not working: `unable to get metrics for resource cpu: no metrics returned from heapster`

I'm trying to create an horizontal pod autoscaling after installing Kubernetes with kubeadm. The main symptom is that kubectl get hpa returns the CPU metric in the column TARGETS as "undefined": $ kubectl get hpa NAME REFERENCE …
Oghma
  • 131
  • 1
  • 1
  • 8
13
votes
1 answer

Singularity + Kubernetes

Does someone know if there is an attempt to integrate Singularity with Kubernetes? That would be awesome for everyone who wants to run an HPC program (e.g. in the cloud). My only other idea would be to use an Singularity run as entry point for…
PlagTag
  • 6,107
  • 6
  • 36
  • 48
1 2 3
99
100