Questions tagged [daemonset]

75 questions
13
votes
2 answers

how to communicate with daemonset pod from another pod in the same node?

i want a daemonset-redis where every node will have it's own caching and each deployment pod will communicate with it's local daemonset-redis how to achieve it? how to reference daemonset pod in the same node from within docker-container? UPDATE: i…
Oren Lalezari
  • 185
  • 2
  • 8
12
votes
9 answers

Create Daemonset using kubectl?

I took the CKA exam and I needed to work with Daemonsets for quite a while there. Since it is much faster to do everything with kubectl instead of creating yaml manifests for k8s resources, I was wondering if it is possible to create Daemonset…
Adilet Maratov
  • 1,312
  • 2
  • 14
  • 24
11
votes
1 answer

Scheduler is not scheduling Pod for DaemonSet in Master node

I want to deploy a DaemonSet for monitoring purpose. So these Pods need to be deployed in all Nodes. A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. I am using a DaemonSet so that all nodes get a copy. spec: …
Shahriar
  • 13,460
  • 8
  • 78
  • 95
6
votes
1 answer

unable to recognize "filebeat-kubernetes.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"

I'm trying to run FileBeat on minikube following this doc with k8s 1.16 https://www.elastic.co/guide/en/beats/filebeat/7.4/running-on-kubernetes.html I downloaded the manifest file as instructed curl -L -O…
phamjamstudio
  • 93
  • 1
  • 5
5
votes
2 answers

Is the kubernetes kubelet a DaemonSet?

DaemonSets ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. The kubernetes kubelet runs on each node and keeps the other pods on the node running. In ch 4.4 of Kubernetes In Action by…
mikeLundquist
  • 769
  • 1
  • 12
  • 26
5
votes
2 answers

Is there an imperative command to create daemonsets in kubernetes?

I was wondering if there is an easier way to create daemonsets in k8s other than yaml files. For eg, for pods we have kubectl run --generator=run-pod/v1 command. I was wondering if there is something similar for DS. Thanks in advance.
Naxi
  • 1,504
  • 5
  • 33
  • 72
4
votes
2 answers

Kubernetes DaemonSets in the presence of tolerations

I am thinking about paritioning my Kubernetes cluster into zones of dedicated nodes for exclusive use by dedicated sets of users as discussed here. I am wondering how tainting nodes would affect DaemonSets, including those that are vital to cluster…
rookie099
  • 2,201
  • 2
  • 26
  • 52
4
votes
1 answer

StatefulSet, ReplicaSet or DaemonSet. What is the best for a single Pod?

I want to deploy a single Pod on a Node to host my service (like GitLab for the example). The problem is : a Pod will not be re-created after the Node failure (like a reboot). The solution(s) : Use a StatefulSet, ReplicaSet or DaemonSet to ensure…
Nurza
  • 201
  • 2
  • 10
3
votes
0 answers

Cannot install NVIDIA GPU driver 470.82.01 on the on Google Kubernetes Engine 1.21

I would like to run GPU nodes in a GKE cluster, that requires an installation DaemonSet. According to https://cloud.google.com/kubernetes-engine/docs/how-to/gpus#installing_drivers, NVIDIA driver 470 is supported for the latest GKE version 1.21. The…
3
votes
1 answer

GPU's not showing up on GKE Node even though they show up in GKE NodePool

I'm trying to setup a Google Kubernetes Engine cluster with GPU's in the nodes loosely following these instructions, because I'm programmatically deploying using the Python client. For some reason I can create a cluster with a NodePool that contains…
Jed
  • 1,823
  • 4
  • 20
  • 52
3
votes
1 answer

From a container that is part of a DaemonSet, how can I look up the labels on "the node on which I am running"?

I have a service running as a DaemonSet across a number of kubernetes nodes. I would like to make some policy decisions based on the labels of the node on which each DaemonSet pod is running. From within a container, how do I know on which node this…
larsks
  • 277,717
  • 41
  • 399
  • 399
3
votes
1 answer

Will a daemonset always be deployed to all nodes?

I'm wondering if a daemonset in kubernetes will always be deployed to all nodes. My confusion comes from the following description of a daemonset A DaemonSet makes sure that all or some kubernetes Nodes run a copy of a Pod. The "or some" part,…
3
votes
2 answers

Kubernetes is faling to schedule Daemonset pods on nodes in an auto scaling GKE node pool

We are seeing an issue with the GKE kubernetes scheduler being unable or unwilling to schedule Daemonset pods on nodes in an auto scaling node pool. We have three node pools in the cluster, however the pool-x pool is used to exclusively schedule a…
bschaeffer
  • 2,824
  • 1
  • 29
  • 59
3
votes
1 answer

How to use the instance ID in Daemonset config file in Kubernetes?

I'd like to get the instance ID (e.g. AWS EC2 instance ID like i-19a9fa9s8df9a8, not the private dns node name) of where my pod is running from within my k8s config file, but couldn't find any documentation on how to do that. Anybody know how to use…
user3226932
  • 2,042
  • 6
  • 39
  • 76
3
votes
2 answers

Specify scheduling order of a Kubernetes DaemonSet

I have Consul running in my cluster and each node runs a consul-agent as a DaemonSet. I also have other DaemonSets that interact with Consul and therefore require a consul-agent to be running in order to communicate with the Consul servers. My…
syscll
  • 991
  • 1
  • 9
  • 25
1
2 3 4 5