Questions tagged [kubernetes-pod]

Kubernetes-pod refers to Pods, the smallest deployable units of computing that can be created and managed in the cluster management software Kubernetes. Use this tag for questions related to this group of containers.

Kubernetes-pod refers to Pods, the smallest deployable units of computing that can be created and managed in the cluster management software Kubernetes. Use this tag for questions related to this group of containers.

2142 questions
13
votes
2 answers

Can we connect multiple pods to the same PVC?

I mean is there a one to one or many to one relationship between pod and PVC? Can I connect two or more pods to the same PVC(persistent volume claims) without deleting or disconnecting the earlier created pods?
Aniket
  • 153
  • 1
  • 2
  • 8
13
votes
8 answers

How to get list of pods which are "ready"?

I am using kubectl in order to retrieve a list of pods: kubectl get pods --selector=artifact=boot-example -n my-sandbox The results which I am getting are: NAME READY STATUS RESTARTS …
fascynacja
  • 1,625
  • 4
  • 17
  • 35
13
votes
1 answer

How to change running pods limits in Kubernetes?

I have a self made Kubernetes cluster consisting of VMs. My problem is, that the coredns pods are always go in CrashLoopBackOff state, and after a while they go back to Running as nothing happened.. One solution that I found and could not try yet,…
B.G.
  • 303
  • 2
  • 3
  • 8
12
votes
2 answers

Is probing of a Pod retried after a readiness probe fails

readinessProbe: Indicates whether the container is ready to respond to requests. If the readiness probe fails, the endpoints controller removes the Pod's IP address from the endpoints of all Services that match the Pod. The default state of…
12
votes
6 answers

How to identify static pods via kubectl command?

I have several pods in 2 nodes in my Kubernetes cluster. (Please see below). Is there a way I can tell which ones are static pods? (maybe a kubectl command of sort?) Thanks! controlplane $ k get pods -A -o wide NAMESPACE NAME …
Mamun
  • 2,322
  • 4
  • 27
  • 41
12
votes
2 answers

Kubernetes too old resource version

I'm working on a operator which create watch for different k8s resources. Every now and then I can see below exception in the logs and application just stop. What is causing this issue and how can I fix this…
BobCoder
  • 743
  • 2
  • 10
  • 27
12
votes
3 answers

Kubernetes Readiness probe failed: dial tcp 10.244.0.10:5000: connect: connection refused

I have a simple service and pod as described below but the readiness probe fails complaining for connection refused apiVersion: v1 kind: Service metadata: name: keystone-api spec: selector: app: keystone ports: - protocol: TCP …
12
votes
5 answers

Is it possible to assign a pod of StatefulSet to a specific node of a Kubernetes cluster?

I have a 5 node cluster(1-master/4-worker). Is it possible to configure a StatefulSet where I can make a pod(s) to run on a given node knowing it has sufficient capacity rather Kubernetes Scheduler making this decision? Lets say, my StatefulSet…
Jaraws
  • 581
  • 1
  • 7
  • 24
12
votes
1 answer

RBAC role to manage single pod with dynamic name

I need to grant access to one deployment and all pods of this deployment using RBAC. I've managed to configure Role and RoleBinding for the deploymet, and it's working fine: --- kind: Role apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: …
Kirill
  • 7,580
  • 6
  • 44
  • 95
12
votes
4 answers

AWS EKS 0/1 nodes are available. 1 insufficient pods

We are trying to deploy a dot net core API service to amazon EKS using ECR. The deployment was successful, but the pods are in pending status. Below are the detailed steps we followed. Steps followed. 1. Created a docker image 2. Pushed the image…
snehgin
  • 191
  • 1
  • 1
  • 8
12
votes
7 answers

How to Configure Pod initialization in a specific order in Kubernetes?

I want to know how I can start my deployments in a specific order. I am aware of initContainers but that is not working for me. I have a huge platform with around 20 deployments and 5 statefulsets that each of them has their own service, environment…
AVarf
  • 4,481
  • 9
  • 47
  • 74
12
votes
4 answers

How can I copy files between pods or between nodes in the kubernetes cluster?

Is this possible inside the kubernetes cluster? All examples I've found are copying from a local disk to a pod or vice versa, or is the only option to copy from node to node, for example over SSH, SCP or with other utilities?
JDev
  • 2,157
  • 3
  • 31
  • 57
11
votes
1 answer

kubectl - How to get the list of all pods that have been restarted at least once

kubectl get pods --all-namespaces provides the list of all pods. The column RESTARTS shows the number of restarts that a pod has had. How to get the list of all the pods that have had at least one restart? Thanks
imriss
  • 1,815
  • 4
  • 31
  • 46
11
votes
2 answers

Kubectl wait for one pod of a statefulset to be READY?

To wait for a certain pod to be completed the command is kubectl wait --for=condition=Ready pod/pod-name Similarly I want to wait for any one pod in the statefulset to be ready. I tried the command below which did not work, kubectl wait…
11
votes
5 answers

what are the kubernetes/elb time outs for http requests?

I have a java API (accepting HTTPS requests_ packaged into a docker image, and then it is deployed using k8s cluster on top of EC2s. The master EC2 has an ELB in front. I can make curl POST requests to the ELB in order to hit that java…
tooptoop4
  • 234
  • 3
  • 15
  • 45