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

How do I modify the OpenShift image-registry Deployment?

When I edit the image-registry Deployment (in the openshift-image-registry Namespace/Project), the modified fields are automatically reverted/rolled-back on Save. My understanding is that Deployments control/manage some resources (i.e.,…
0
votes
0 answers

AKS: omsagent-win pods restarts again and again

omsagent-win is the pod in the kube-system namespace that is supplied with aks included if you have azure insights enabled. I use a hybrid environment here. Win & Linux are used. output: kubectl get nodes NAME STATUS …
0
votes
1 answer

Extending a service-per-pod to multiple ports in metacontroller (kubernetes)

I have created a service-per-pod for statefulset, and it's working for a single port (80/tcp). However, I need to use it for multiple ports (e.g., 80/tcp, 30000/udp, etc.). How can I extend this to multiple ports in…
0
votes
2 answers

why does the pod remain in pending state despite having toleration set

I applied the following taint, and label to a node but the pod never reaches a running status and I cannot seem to figure out why kubectl taint node k8s-worker-2 dedicated=devs:NoSchedule kubectl label node k8s-worker-2 dedicated=devs and here is a…
Mekky_Mayata
  • 197
  • 2
  • 11
0
votes
0 answers

Use existing service in Kubernetes via Jenkins

I have a Jenkins pipeline which runs an application in cloud using Kubernetes plugin. So far, I have a simple yaml file which configures a pod. The Jenkins pipeline creates a pod and it does some operations (It's parsing some data). I've created a…
0
votes
2 answers

How to list Kubernetes in different namespaces by its kind?

I've a task list to Kubernetes pods by its kind. For Eg List kubernetes pods that are in different namespace using Jsonpath. I'm using the below command which is not working. kubectl get pods -o jsonpath='{.items[?(@.items.kind=="Elasticsearch")]}'
0
votes
1 answer

Disabling preemption for one node

My question is pretty straightforward: since you can force a job to run on a specific node, is it possible to disable preemption on a given node ? Like, if I force a pod to execute on that node I know for sure that it won't get preempted ?
Gaëtan
  • 779
  • 1
  • 8
  • 26
0
votes
1 answer

GCP - Scale GKE pods based on custom logging metric using HPA

I want to use the Custom log metrics on GKE HPA. Metrics are able to view on metrics explorer but unable to use it on HPA . We have installed Custom metrics adapter and We are able to use other custom metrics like…
0
votes
1 answer

Is "service" type kubernetes object a Pod container?

Service abstract Pod IP address from consumers, load balances between pods, relies on labels to associate a service with a Pod, holds virtual IP provided by Node's kube-proxy, non-ephemeral Given below services: $ kubectl -n mynamespace get services…
overexchange
  • 15,768
  • 30
  • 152
  • 347
0
votes
1 answer

Kubernetes - when to use HorizontalPodAutoscaler resource type?

As mentioned in this answer: allow for easy updating of a Replica Set as well as the ability to roll back to a previous deployment. So, kind: Deployment scales replicasets, which scales Pods, supports zero-downtime updates by creating and destroying…
overexchange
  • 15,768
  • 30
  • 152
  • 347
0
votes
0 answers

Copy files within the pod filesystem after start

I am trying to copy files from one folder to another folder after start: containers: - image: my-image name: app volumeMounts: - name: shared-files mountPath: /var/folder1 lifecycle: postStart: …
rholdberh
  • 475
  • 1
  • 5
  • 19
0
votes
1 answer

Edit file in k8s Pod in run time

I have a k8s cluster (using OKD) with a deployment "X", with 1 pod "X_1", and a file "config.yaml" in a volume for this deployment that configure some aspects of the application running. This file is set in a ConfigMap as data: x.config.file: |- …
0
votes
0 answers

Pod env var isn't available during /etc/init.d script

I have a solr container that needs to be started with a parameter, either master or slave. I'm trying to put the env var into the container so that the init script can read it, and start as a master or slave. env: - name: ROLE …
0
votes
1 answer

Increasing predefine 4 Core CPUs of a node pool cluster in Google Kubernetes Engine(GKE)

I have a cluster which has 3 nodes and each node has been allocated 4 core CPUs(3.92 to be precise). I have a nexus repository in one of my nodes which requires a minimum of 4 Core CPUs and this node is unable to allocate 4CPUs. Hence, I am only…
0
votes
1 answer

Aks Error Failed to drain the node, aborting scale down

I am using Kured to perform safe reboots of our nodes to upgrade the OS and kernel versions. In my understanding, it works by cordoning and draining the node, and the pods are scheduled on a new node with the older version. After the reboot, the…