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

Watch kubernetes pod status to be completed in client-go

I am creating a pod in k8 client go and making a watch to get notified for when the pod has completed so that i can read the logs of the pod. The watch interface doesnt seem to provide any events on the channel. Here is the code, how would I get…
mohd.gadi
  • 495
  • 1
  • 7
  • 15
9
votes
4 answers

can we mention more than one node label in single nodeSelector in kubernetes

i want to schedule 10 pods in two specific node(total 15 nodes in our kube cluster). so in replication-controller file i am mentioning two values in nodeSelector like below. nodeSelector: app: node1 app: node2 problem is that all the…
Prakash
  • 2,532
  • 6
  • 17
  • 21
8
votes
1 answer

Kubernetes spread pods across nodes using podAntiAffinity vs topologySpreadConstraints

I am currently using the following to attempt to spread Kubernetes pods in a given deployment across all Kubernetes nodes evenly: spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: …
Justin
  • 42,716
  • 77
  • 201
  • 296
8
votes
4 answers

Kubernetes - MountVolume.NewMounter initialization failed for volume "" : path does not exist

I am trying to setup a Local Persistent volume using local storage using WSL. But the pod STATUS stops at Pending. The kubectl describe pod gives below error. Warning FailedMount 21s (x7 over 53s) kubelet …
8
votes
2 answers

Proper use of Role.rules.resourceNames for creating pods with limited access to resources

I am trying to create a Pod that is able to create and update a specific configmap using Role.rules.resourceNames. I am able to perform a get request for the resource to the API from within the pod, but I'm not able to create the resource, instead…
littlebenlittle
  • 833
  • 2
  • 9
  • 18
8
votes
2 answers

K8s expose LoadBalancer service giving external-ip pending

I've created a Kubernetes cluster with AWS ec2 instances using kubeadm but when I try to create a service with type LoadBalancer I get an EXTERNAL-IP pending status NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) …
8
votes
2 answers

date and time synchronization among the pods and host in kubernetes

I am having issue with date and time in kubernetes cluster. Cluster is setup in the data center using the kubeadm. My host server time is sync using the NTP, though i have synced it after configuring the cluster. Now all the pods created within my…
Susanta Gautam
  • 149
  • 1
  • 1
  • 7
8
votes
4 answers

Communication between Pods in Kubernetes. Service object or Cluster Networking?

I'm a beginner in Kubernetes and I have a situation as following: I have two differents Pods: PodA and PodB. Firstly, I want to expose PodA to the outside world, so I create a Service (type NodePort or LoadBalancer) for PodA, which is not difficult…
8
votes
1 answer

How do I make sure my cronjob job does NOT retry on failure?

I have a Kubernetes Cronjob that runs on GKE and runs Cucumber JVM tests. In case a Step fails due to assertion failure, some resource being unavailable, etc., Cucumber rightly throws an exception which leads the Cronjob job to fail and the…
8
votes
3 answers

pods is forbidden: User "system:serviceaccount:kubernetes-dashboard:admin-user" cannot list resource "pods" in API group "" in the namespace "default"

I am trying to setup Kubernetes on Ubuntu 18.04 by following this article. Everything works fine but when I am trying to access local Kubernetes dashboard then it shows empty and nothing is visible like pods,services & deployments. However when I…
Kundan
  • 1,394
  • 1
  • 13
  • 26
8
votes
1 answer

Share storage/volume between worker nodes in Kubernetes?

Is it possible to have a centralized storage/volume that can be shared between two pods/instances of an application that exist in different worker nodes in Kubernetes? So to explain my case: I have a Kubernetes cluster with 2 worker nodes. In each…
danielo
  • 770
  • 2
  • 13
  • 32
8
votes
3 answers

Kubernetes service with clustered PODs in active/standby

Apologies for not keeping this short, as any such attempt would make me miss-out on some important details of my problem. I have a legacy Java application which works in a active/standby mode in a clustered environment to expose certain RESTful…
msbl3004
  • 177
  • 2
  • 2
  • 10
7
votes
1 answer

Kubernetes Dashboard Token Expired in One hour. How to create token for long time

We have created kubernetes dashboard using below command. kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.0/aio/deploy/recommended.yaml kubectl patch svc -n kubernetes-dashboard kubernetes-dashboard --type='json' -p…
7
votes
2 answers

helm rollback fails to identify the failed deployments when re-triggered

I have a scenario like below, Have two releases - Release-A and Release-B. Currently, I am on Release-A and need an upgrade of all the microservices to Release-B. I tried performing the helm upgrade of microservice - "mymicroservice" with the below…
7
votes
1 answer

Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http): missing required field "paths"

I am very new to using helm charts and not sure why I get this error when I try to install my helm chart. I am using --set with helm install command to set the hostname at ingress.hosts[0].host.I do not understand why it says missing paths where as…