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
6
votes
1 answer

Duplicated env variable names in pod definition, what is the precedence rule to determine the final value?

Using Kubernetes 1.19.3, I initialize env variable values using 3 different ways: env field with explicit key/value in the pod definition envFrom using configMapRef and secretRef When a key name is duplicated, as shown in the example below,…
Polymerase
  • 6,311
  • 11
  • 47
  • 65
6
votes
1 answer

Why kubernetes does not work directly with containers

Somebody, please, explain me (or direct to a detailed resource) why kubernetes uses this wrapper (pod) to work with containers. Every resource I go across just quotes same words - "it is the smallest unit in k8s". What I am looking for is the reason…
wise-Kaa
  • 63
  • 5
6
votes
2 answers

Why cant I mount the same PVC twice with different subpaths to single pod?

Why cant I have a setup like below. I want to map vol1 to a pod with different subpath has xyz and vol2 to the same pod with subpath abc. volumes: - name:vol1 persistentVolumeClaim: claimName: testclaim - name: vol2 …
6
votes
1 answer

error: one of src or dest must be a remote file specification

I'm trying to move local folder into kubernetes volume by following command: kubectl cp /* mynamespace/mypod-xxxx-xxxx:/var/www/my-content Unfortunately, I got following error message: error: one of src or dest must be a remote file…
PPShein
  • 13,309
  • 42
  • 142
  • 227
6
votes
1 answer

How to merge multiple deployment yaml files in k8s into one yaml file without using the separator '---'?

As mentioned above, I want to merge multiple deployment yaml files in k8s into one yaml file, but because of the project, I can't use the separator "---".
6
votes
1 answer

How to set node ip as nameserver in dnsConfig?

Im overriding the the dns policy of a pod since I'm facing a issue with default /etc/resolv.conf of the pod. Another issue is that the pod is not able to connect to smtp server server due to default /etc/resolv.conf of the pod Hence the dnspolicy…
6
votes
1 answer

Why does PodDisruptionBudget have both minAvailable and maxUnavailable options?

While I understand the use of minAvailable and maxUnavailable to an extent, I wonder why are these two options exposed when one appears to be the complement of the other. Given that PDBs are immutable, changes to these parameters are rarely made (by…
Ela
  • 313
  • 3
  • 14
6
votes
2 answers

Does Kubernetes POD have namespace and cgroup associated with it?

Docker Containers have cgroups and namespaces associated with them, whether they are running in a pod or vm or host machine. Similarly, does a Kubernetes Pod's have namespaces and cgroups associated with them, or it's just the containers within the…
6
votes
2 answers

How to list all the pods running in a particular worker node by executing a command from master?

I need to get the list of pods running in a worker node by executing a command from master node. I can achieve if i moved into the worker node and execute kubectl get pods -n ns. But i need to execute this from the master node and get pods in…
AkshayBadri
  • 504
  • 1
  • 10
  • 18
6
votes
0 answers

Kubernetes - Error from server no preferred addresses found known addresses - AWS EKS

I've AWS EKS cluster in my organization for internal practice purpose. Currently installed applications on this cluster are - Jenkins, Nexus, Spinnaker, Grafana, Prometheus Now in order to save the cost and optimal usage, I used to scale up to 8…
Jaydeep Soni
  • 488
  • 1
  • 8
  • 19
6
votes
2 answers

Using docker socket in Kubernetes pod

I want to prune docker images, I wrote a small Docker image using node-docker-api and I was able to test it locally with success. As I've deployed the DaemonSet to Kubernetes, the pod fails to access the Docker socket: Error: connect EACCES…
SagiLow
  • 5,721
  • 9
  • 60
  • 115
6
votes
2 answers

Is it possible to run gcsfuse without privileged mode inside GCP kubernetes?

Following this guide,I am trying to run gcsfuse inside a pod in GKE. Below is the deployment manifest that I am using: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gcsfuse-test spec: replicas: 1 template: metadata: …
Amit Yadav
  • 4,422
  • 5
  • 34
  • 79
6
votes
2 answers

Some requests fails during autoscaling in kubernetes

I set up a k8s cluster on microk8s and I ported my application to it. I also added a horizontal auto-scaler which adds pods based on the cpu load. The auto-scaler works fine and it adds pods when there is load beyond the target and when I remove the…
AVarf
  • 4,481
  • 9
  • 47
  • 74
6
votes
5 answers

How pod replicas sync with each other - Kubernetes?

I have a MySQL database pod with 3 replicas.Now I'm making some changes in one pod(pod data,not pod configuration), say I'm adding a table.How will the change reflect on the other replicas of the pod? I'm using kubernetes v1.13 with 3 worker nodes.
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
6
votes
1 answer

Kubernetes Docker Containers behind proxy

we do have deployed a Kubernetes Cluster behind a proxy and successfully configured docker daemon to use our proxy for puling images as described at the following page: https://docs.docker.com/config/daemon/systemd/#httphttps-proxy We do have…
mbecker
  • 1,663
  • 3
  • 19
  • 24