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

How to create Pod from REST API

How can I create a Pod using REST API ? I checked the Kubernetes API documentation: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#-strong-write-operations-strong--54 They are writing that need to use POST request: POST…
E235
  • 11,560
  • 24
  • 91
  • 141
6
votes
3 answers

Can we have same kind of multiple containers in a Pod in Kubernetes?

For instance can I have following yaml to produce a pod with multiple containers: apiVersion: v1 kind: Pod metadata: name: lampapp labels: app: app spec: containers: - name: lampdb image: mysql_test - name: app image:…
Madhurima Mishra
  • 1,063
  • 3
  • 14
  • 27
6
votes
3 answers

Kubernetes Storage on bare-metal/private cloud

I'm just starting with Kubernetes on 2 node (master-minion) setup on 2 private cloud servers. I've installed it, did basic config and got it running some simple pods/services from the master to the minion. My question is: How can I use persistent…
plamer
  • 474
  • 1
  • 8
  • 17
5
votes
1 answer

Configure a LivenessProbe which simply runs true question; preparation to pass the CKA exams

I was passing one of the sample tests for CKA and one question says this: "Configure a LivenessProbe which simply runs true" This is while creating simple nginx pod(s) in the general question, then they ask that as one of the items. What does that…
wti
  • 494
  • 4
  • 19
5
votes
1 answer

How can I remove dependency of secrets from application pod in K3s cluster

I am having a k3s cluster with my application pods running. In all the pods when I login ( with kubectl exec -n -it /bin/bash command ) there is kubernetes.io directory which contain secret token that anyone can get if they do cat…
5
votes
1 answer

Kubernetes: run container as a root

I do understand drawbacks of doing this, however I have image that will work only with root user running cmd within it. Server kubernetes version is: v1.19.14. Inside my deployment.yaml I have: spec: containers: - name: myapp …
Rudziankoŭ
  • 10,681
  • 20
  • 92
  • 192
5
votes
0 answers

Airflow Kubernetes Pods Exception ERROR - (404) Reason: Not Found

I am looking for support to debug this Airflow KubernetesPodOperator Issue. We randomly get this error when the Airflow task executes. The job is almost finished and at the end of the job execution, the pods not found excception throw, (, In…
5
votes
1 answer

container_memory_rss relation with node memory used

I'm trying to make sense of container_memory_rss or container_memory_working_set_bytes with respect to node_memory_used i.e (node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) Here what I meant PROMQL 1: sum(container_memory_rss) by…
Noobie
  • 461
  • 1
  • 12
  • 34
5
votes
1 answer

Kubernetes Probes - What is the order in which they examine the pod?

looking to understand the order in which kubenetes examine the pods using the 3 type of probes- startup, readiness and live. How to understand or design these 3 probes correctly for normal applications? What is the chance of getting conflict or…
Vowneee
  • 956
  • 10
  • 33
5
votes
2 answers

Why the pods in Kubernetes are automounting the service accounts secret?

Need to understand why pods are automounting the service accounts secret. If we disable the automout of service account, will this affect any operation of our application which is already have service account specified in the pod spec part, but…
Vowneee
  • 956
  • 10
  • 33
5
votes
2 answers

K8s liveness probe behavior when the pod contains more than one container?

Scenario: A K8S pod has more than one container and liveness/readiness probes are configured for each of the containers. Now if the liveness probe is succeeding on some containers and failing on few containers, what will k8s do. will it restart…
samshers
  • 1
  • 6
  • 37
  • 84
5
votes
1 answer

Connection Refused between Kubernetes pods in the same cluster

I am new to Kubernetes and I'm working on deploying an application within a new Kubernetes cluster. Currently, the service running has multiple pods that need to communicate with each other. I'm looking for a general approach to go about debugging…
fuzzi
  • 1,967
  • 9
  • 46
  • 90
5
votes
1 answer

Internet connectivity inside the pod of Kubernetes is not Working

Not able to connect to internet from inside the pod My system Spec Include : I have created a Kubernetes cluster using 2 system one acts as master the other as worker node . Operating System : NAME="Red Hat Enterprise Linux" VERSION="8.3 (Ootpa)"…
5
votes
2 answers

Kubernetes : What is hostPort and hostIp used for?

I try to understand hostIP and hostPort in Kubernetes. Here is my cluster configuration : 3 vagrant nodes : nodes = [ { :hostname => 'k8s-master', :ip => '192.168.150.200', :ram => 4096 }, { :hostname => 'k8s-minion1', :ip => '192.168.150.201',…
Abdelghani
  • 455
  • 2
  • 9
  • 19
5
votes
1 answer

How to use the Pod conditions array returned from the client-go API?

I'm using the client-go API in Go to access the list of Pods under a given controller (Deployment). While querying the list of pods belonging to it using the selector labels, you get an array of PodConditions -…
Inian
  • 80,270
  • 14
  • 142
  • 161