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
172
votes
7 answers

Kubernetes: list all pods and its nodes

I have 3 nodes, running all kinds of pods. I would like to have a list of nodes and pods, for an example: NODE1 POD1 NODE1 POD2 NODE2 POD3 NODE3 POD4 How can this please be achieved? Thanks.
testTester
  • 2,371
  • 3
  • 18
  • 22
168
votes
12 answers

Atleast one invalid signature was encountered

I am trying to build and deploy microservices images to a single-node Kubernetes cluster running on my development machine using minikube. I am using the cloud-native microservices demo application Online Boutique by Google to understand the use of…
Saranya Gupta
  • 1,945
  • 2
  • 10
  • 14
167
votes
6 answers

pod has unbound PersistentVolumeClaims

When I push my deployments, for some reason, I'm getting the error on my pods: pod has unbound PersistentVolumeClaims Here are my YAML below: This is running locally, not on any cloud solution. apiVersion: extensions/v1beta1 kind:…
soniccool
  • 5,790
  • 22
  • 60
  • 98
165
votes
8 answers

kubectl get events only for a pod

When I run kubectl -n abc-namespace describe pod my-pod-zl6m6, I get a lot of information about the pod along with the Events in the end. Is there a way to output just the Events of the pod either using kubectl describe or kubectl get commands?
Rakesh N
  • 2,450
  • 3
  • 25
  • 32
164
votes
13 answers

Listing all resources in a namespace

I would like to see all resources in a namespace. Doing kubectl get all will, despite of the name, not list things like services and ingresses. If I know the the type I can explicitly ask for that particular type, but it seems there is also no…
michas
  • 25,361
  • 15
  • 76
  • 121
164
votes
17 answers

What will happen to evicted pods in kubernetes?

I just saw some of my pods got evicted by kubernetes. What will happen to them? just hanging around like that or I have to delete them manually?
reachlin
  • 4,516
  • 7
  • 18
  • 23
163
votes
4 answers

how to stop/pause a pod in kubernetes

I have a MySQL pod running in my cluster. I need to temporarily pause the pod from working without deleting it, something similar to docker where the docker stop container-id cmd will stop the container not delete the container. Are there any…
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
163
votes
10 answers

How do I ssh into the VM for Minikube?

What is the username/password/keys to ssh into the Minikube VM?
soupybionics
  • 4,200
  • 6
  • 31
  • 43
162
votes
9 answers

How to automatically remove completed Kubernetes Jobs created by a CronJob?

Is there a way to automatically remove completed Jobs besides making a CronJob to clean up completed Jobs? The K8s Job Documentation states that the intended behavior of completed Jobs is for them to remain in a completed state until manually…
Josh Newman
  • 1,645
  • 2
  • 11
  • 6
160
votes
3 answers

What does Kubernetes actually do?

Kubernetes is billed as a container cluster "scheduler/orchestrator", but I have no idea what this means. After reading the Kubernetes site and (vague) GitHub wiki, the best I can tell is that its somehow figures out what VMs are available/capable…
smeeb
  • 27,777
  • 57
  • 250
  • 447
159
votes
4 answers

Docker-Swarm, Kubernetes, Mesos & Core-OS Fleet

I am relatively new to all these, but I'm having troubles getting a clear picture among the listed technologies. Though, all of these try to solve different problems, but do have things in common too. I would like to understand what are the things…
B_B
  • 2,013
  • 3
  • 14
  • 13
158
votes
26 answers

kubectl error You must be logged in to the server (Unauthorized) when accessing EKS cluster

I have been trying to follow the getting started guide to EKS. When I tried to call kubectl get service I got the message: error: You must be logged in to the server (Unauthorized) Here is what I did: 1. Created the EKS cluster. 2. Created the…
Itay k
  • 4,163
  • 4
  • 31
  • 39
157
votes
8 answers

Clean up "Replica Sets" when updating deployments?

Every time a deployment gets updated, a new replica set is added to a long list. Should the old rs be cleaned?
yuval
  • 1,680
  • 2
  • 12
  • 8
155
votes
7 answers

Kubernetes sort pods by age

I can sort my Kubernetes pods by name using: kubectl get pods --sort-by=.metadata.name How can I sort them (or other resoures) by age using kubectl?
Eugene Platonov
  • 3,145
  • 3
  • 26
  • 20
150
votes
15 answers

kubernetes list all running pods name

I looking for the option to list all pods name How to do without awk (or cut). Now i'm using this command kubectl get --no-headers=true pods -o name | awk -F "/" '{print $2}'
Ali SAID OMAR
  • 6,404
  • 8
  • 39
  • 56