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
4
votes
2 answers

Kubernetes - Multiple pods per node vs one pod per node

What is usually preferred in Kubernetes - having a one pod per node configuration, or multiple pods per node? From a performance standpoint, what are the benefits of having multiple pods per node, if there is an overhead in having multiple pods…
user2871354
  • 530
  • 1
  • 5
  • 15
4
votes
1 answer

In Kubernetes, what is the real purpose of replicasets?

I am aware about the hierarchical order of k8s resources. In brief, service: a service is what exposes the application to outer world (or with in cluster). (The service types like, CluserIp, NodePort, Ingress are not so much relevant to this…
samshers
  • 1
  • 6
  • 37
  • 84
4
votes
2 answers

What's the best practice to expose ENV vars in a React JS app deployed on K8S?

I have a question regarding what are the best practices in managing environment variables for a React application deployed on K8S, like third-party service apiKeys from example. Usually one could put environment variables inside the .env files, so…
4
votes
1 answer

Using pod Anti Affinity to force only 1 pod per node

I am trying to get my deployment to only deploy replicas to nodes that aren't running rabbitmq (this is working) and also doesn't already have the pod I am deploying (not working). I can't seem to get this to work. For example, if I have 3 nodes (2…
J Kent
  • 43
  • 4
4
votes
1 answer

CrashLoopBackOff : Back-off restarting failed container

I am trying to debug my pod throwing CrashLoopBackOff error. When I run decribe command, I found that Back-off restarting failed container is the error. I excuted the logs for the failing pod and I got the below data. vagrant@master:~> kubectl logs…
codeX
  • 4,842
  • 2
  • 31
  • 36
4
votes
1 answer

How to Restart Kubernetes deployment using API Server

We can restart kubernetes deployment using kubectl rollout restart. I want to perform same action using kubernetes api server.
Akshay Gopani
  • 473
  • 4
  • 16
4
votes
1 answer

What happens when kubernetes liveness-probe return false?

What happens when Kubernetes liveness-probe returns false? Does Kubernetes restart that pod immediately?
J.J. Beam
  • 2,612
  • 2
  • 26
  • 55
4
votes
1 answer

Unschedulable Kubernetes pods on GCP using Autoscaler

I have a Kubernetes Cluster with pods autoscalables using Autopilot. Suddenly they stop to autoscale, I'm new at Kubernetes and I don't know exactly what to do or what is supposed to put in the console to show for help. The pods automatically are…
4
votes
1 answer

Kubernetes multi-container pod termination process

I have a multi-container pod in k8s, let's call them A and B. When stopping the pod, A must stop before B because A needs B until it's off. To do that, I registered a preStop hook on A so A can gracefully stop before B. However I'm not sure this is…
Benjamin Barrois
  • 2,566
  • 13
  • 30
4
votes
1 answer

Advantage of multiple pod on same node

I'm new with Kubernetes, i'm testing with Minikube locally. I need some advice with Kubernetes's horizontal scaling. In the following scenario : Cluster composed of only 1 node There is only 1 pod on this node Only one application running on this…
ShooShoo
  • 43
  • 3
4
votes
1 answer

Is there a way to enable shareProcessNamespace for helm post-install hook?

I'm running a pod with 3 containers (telegraf, fluentd and an in-house agent) that makes use of shareProcessNamespace: true. I've written a python script to fetch the initial config for telegraf and fluentd from a central controller API endpoint.…
4
votes
1 answer

Shell script should wait until kubernetes pod is running

In a simple bash script I want to run multiple kubectl and helm commands, like: helm install \ cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --version v1.5.4 \ --set installCRDs=true kubectl apply -f…
user3142695
  • 15,844
  • 47
  • 176
  • 332
4
votes
3 answers

container initialization order in pod on K8s

I want to run two containers on a single pod. container1 is a test that tries to connect to a SQL Server Database that runs on container2. How can I make sure that the sql container (container2) will run and be ready before container1…
Gal I.
  • 201
  • 3
  • 12
4
votes
2 answers

what is the default allocation when resources are not specified in kubernetes?

Below is kubernetes POD definition apiVersion: v1 kind: Pod metadata: name: static-web labels: role: myrole spec: containers: - name: web image: nginx ports: - name: web containerPort: 80 …
One Developer
  • 99
  • 5
  • 43
  • 103
4
votes
1 answer

Horizontal Pod Autoscaling (HPA) with an initContainer that requires a Job

I have a specific scenario where I'd like to have a deployment controlled by horizontal pod autoscaling. To handle database migrations in pods when pushing a new deployment, I followed this excellent tutorial by Andrew Lock here. In short, you must…