Questions tagged [daemonset]

75 questions
2
votes
0 answers

kubernetes : High memory usage by daemonset-pod when using hostPath volume

I've consumer-applications which reads (no-write) the database of size ~4GiB and performs some tasks. To make sure same database is not duplicated across applications, I've stored it on all node machines of k8s-cluster. daemonset I've used one…
2
votes
0 answers

Containerized apps logs are not persistent enough when launched as a DaemonSet component in Kubernetes

I've containerized server app running as a DaemonSet component in k8s cluster. And there is a containerized client running as a deploy component in the same cluster. I'm using same logging mechanism for both client and server. client code. err :=…
imaheshwaran s
  • 167
  • 1
  • 11
2
votes
1 answer

What is "/usr/bin/nsenter -m/proc/1/ns/mnt" in Kubernetes Daemonset?

I have read some tutorials of how to mount a volume in container and run the script on host/node directly. These are the examples given. DeamonSet pod spec hostPID: true nodeSelector: cloud.google.com/gke-local-ssd: "true" …
Steve
  • 175
  • 1
  • 3
  • 14
2
votes
1 answer

how to run a job in each node of kubernetes instead of daemonset

There is a kubernetes cluster with 100 nodes, I have to clean the specific images manually, I know the kubelet garbage collect may help, but it isn't applied in my case. After browsing the internet , I found a solution - docker in docker, to solve…
Marco Mei
  • 97
  • 2
  • 10
2
votes
1 answer

Why k8s rolling update didn't stop update when CrashLoopBackOff pods more than maxUnavailable

I’m trying to make use of k8s daemonset's rolling update to do the automatic rolling update when daemonset's spec.template field is changed. I intentionally put an invalid image for pods so that pods couldn't be started correctly. I suppose the…
Tim Deng
  • 21
  • 2
2
votes
1 answer

Kubernetes one pod per node, one persistent volume per pod

I was curious if it is possible to move completely off hostpaths and use local volumes (persistent volumes) instead. However, there doesn't seem to be a way to include volumeClaimTemplates into a daemonset. Statefulsets provide volumeClaimTemplates,…
2
votes
1 answer

Missing required field in DaemonSet

I'm trying to run Cadvisor on a Kubernetes cluster following this doc https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ Contents of the yaml file below: apiVersion: v1 kind: Namespace metadata: name: kube-system --- apiVersion:…
Thür
  • 75
  • 1
  • 8
2
votes
2 answers

Is it possible to know if the node where a Kubernetes Pod is being scheduled is master or worker?

I'm currently using Kubernetes to schedule a DaemonSet on both master and worker nodes. The DaemonSet definition is the same for both node types (same image, same volumes, etc), the only difference is that when the entrypoint is executed, I need to…
Skazza
  • 43
  • 8
2
votes
1 answer

How to copy an S3 bucket onto Kubernetes nodes

I wanted to copy an S3 bucket on Kubernetes nodes as a DaemonSet, as the new node will also get the s3 bucket copy as soon it gets launched, I prefer an S3 copy to the Kubernetes node because copying S3 to directly to the pod as an AWS API would…
Rajaneesh
  • 33
  • 5
2
votes
1 answer

How to check a particular script execution is completed by a Kubernetes pod

I have a daemonset which deploys containers to check status of few mount points. This daemonset deployment is done from a python script and soon after the deployment command I am collecting the logs which will be created by above daemonset pods. I…
ambikanair
  • 4,004
  • 11
  • 43
  • 83
2
votes
0 answers

Deploy traefik as DaemonSet with NET_BIND_SERVICE capability

Since I need the real ip of the requester in my (bare metal) k8s cluster, I want to deploy traefik-ingress-controller as a DaemonSet with the NET_BIND_SERVICE capability and bind it to ports 80 and 443 on the host machines directly. I followed the…
Max N.
  • 993
  • 1
  • 12
  • 31
1
vote
1 answer

How to detect the current node where a pod is running in python

So I am not a good coder in python or an kubernetes expert but I have a project that need to do this: In python, I want to connect to the BMC (ilo interface of of a baremetal node) to get some hardware info. My goal is to create a daemonset so the…
1
vote
2 answers

K8s Daemonset Pod Placement

We have 4 nodes EKS cluster. We have some pods (part of Daemonset) in pending status as the Node is full and there is no capacity in the node to run the pod. The question is do we need to manually reshuffle the workloads to make Daemonset pods…
Bhaumik Patel
  • 15,176
  • 5
  • 30
  • 33
1
vote
1 answer

how to run host command in DaemonSet in kubernetes with golang?

Now,I want to monitor the status of the node(such as docker,kubelet,cri...) in cluster. So I wrote a golang program and deployed it as DaemonSet in kubernetes. But as you know, when the golang program runs the commands in the DaemonSet to get the…
Worlder_Mo
  • 83
  • 1
  • 9
1
vote
0 answers

Setup custom default backend for nginx ingress controller in Kubernetes

I am stuck with custom default backend for error page from Nginx Ingress Controller. By default, Nginx Ingress Controller pods return Nginx's default page with errors such as 404, 50x and I want to modify them. I have installed a DaemonSet of Nginx…