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
5
votes
3 answers

Move Kubernetes statefulset pod to another node

My k8s cluster initially have 2node and 1master and I deployed statefulset with 3pods, so 3pods with PVC are running on 2 nodes. Now I increased nodes from 2 to 3. So now k8s is 3nodes and 1master. I would like to move one of the statefulset pod to…
5
votes
1 answer

dnsConfig is skipped in GKE

Faced the following issue: I need to add a search domain on some pods to be able to communicate with headless service. Kubernetes documentation recommends to set a dnsConfig and set everything in it.That's what I did. Also there is a limitation that…
5
votes
2 answers

How to make the pod CIDR range larger in kubernetes cluster deployed with kubeadm?

I deployed my cluster with the --pod-network-cidr added, and have created the new ip pool using calicoctl to change the pods to this range. The problem I am having is exactly what I need to change on the kubernetes side to make the pod cidr range…
mmiara
  • 305
  • 1
  • 4
  • 14
5
votes
1 answer

How to kill a multi-container pod if one container fails?

I'm using Jenkins Kubernetes Plugin which starts Pods in a Kubernetes Cluster which serve as Jenkins agents. The pods contain 3 containers in order to provide the slave logic, a Docker socket as well as the gcloud command line tool. The usual…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
5
votes
2 answers

Grafana dashboard not displaying pod name instead pod_name

I have deployed application on kubernetes cluster and for monitoring using prometheus and grafana. For kubernetes pods monitoring using Grafana dashboard: Kubernetes cluster monitoring (via Prometheus) https://grafana.com/grafana/dashboards/315 I…
muku
  • 91
  • 1
  • 7
5
votes
4 answers

Passing java_opts to spring boot applications in kubernetes

Currently, we are building Docker images with an entrypoint and passing this image to a Kubernetes deployment. Is there any way to pass the entrypoint directly to Kubernetes dynamically so that it starts spring boot applications? What are the…
5
votes
1 answer

Kubernetes get the full pod name as environment variable

I know that I can define something like this to get the pod name in my containers: env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name But when I run: $kubectl get pods I have a different result, something like:…
akuma8
  • 4,160
  • 5
  • 46
  • 82
5
votes
2 answers

Check pod resources consumption

I've got some deployment on a basic k8s cluster withouth defining requests and limits. Is there any way to check how much the pod is asking for memory and cpu?
Manuel Castro
  • 1,633
  • 3
  • 24
  • 38
5
votes
2 answers

How to access pod by it's hostname from within other pod of the same namespace?

Is there a way to access a pod by its hostname? I have a pod with hostname: my-pod-1 that need to connect to another pod with hostname: my-pod-2. What is the best way to achieve this without services?
5
votes
2 answers

Cannot create a deployment that requests more than 2Gi memory

My deployment pod was evicted due to memory consumption: Type Reason Age From Message ---- ------ ---- ---- ------- Warning Evicted 1h …
5
votes
5 answers

How to recycle pods in Kubernetes

I want my pods to be gracefully recycled from my deployments after certain period of time such as every week or month. I know I can add a cron job for that if I know the Kubernetes command. The question is what is the best approach to do this in…
rayhan
  • 636
  • 3
  • 9
  • 26
5
votes
1 answer

Kubernetes / Rancher 2, mongo-replicaset with Local Storage Volume deployment

I try, I try, but Rancher 2.1 fails to deploy the "mongo-replicaset" Catalog App, with Local Persistent Volumes configured. How to correctly deploy a mongo-replicaset with Local Storage Volume? Any debugging techniques appreciated since I am new to…
Slim
  • 1,256
  • 1
  • 13
  • 25
5
votes
2 answers

Kubernetes Deployments, Pod and Container concepts

I have started recently getting familiar with Kubernetes, however while I do get the concept I have some questions I am unable to answer clearly through Kubernete's Concept and Documentation, and some understandings that I'd wish to confirm. A…
Khaled
  • 8,255
  • 11
  • 35
  • 56
4
votes
0 answers

Is it okay to place frontend and backend of the application in same pod in kubernetes

I just want to know is there any performance wise issue, if I place Angular part of my application in one container and Nodejs part of application in another container in same pod? Is it okay to create structure like this or will it create problems.
Aary
  • 67
  • 1
  • 5
4
votes
1 answer

Why doesn't command line echo in Kubernetes Pod container show in logs

Consider this Kubernetes Pod: # pod.yaml apiVersion: v1 kind: Pod metadata: name: testing123 spec: containers: - name: testing123 image: busybox:latest command: ['sh', '-c', 'echo "Hello, Kubernetes!" && sleep 3600'] If I deploy this…
rlandster
  • 7,294
  • 14
  • 58
  • 96