DeamonSet pod not scheduling on Master Node

0 votes

I'm trying to deploy daemon set for monitoring resources.

A DaemonSet ensures that all (or some) Nodes run a copy of a Pod.

I want it to run on each node including my master.

    spec:
      containers:
      - name: fluentd
        image: aerocloud.io/containers/fluentd:0.0.1
        volumeMounts:
        - name: varlog
          mountPath: /var/log
      volumes:
      - name: varlog
        hostPath:
          path: /var/log

But for some reason it is not being deployed on my master node. Am I missing something? How do I enforce the scheduler to schedule a pod on my master?

Sep 14, 2018 in Kubernetes by DragonLord999
• 8,450 points
2,575 views

1 answer to this question.

0 votes

Ever since kubernetes 1.6, DaemonSets are not scheduled on the master node. You'll have to add toleration in the spec of this daemon set:

tolerations:
- key: node-role.kubernetes.io/master
  effect: NoSchedule

Check out the docs for an example and more information.

answered Sep 14, 2018 by DareDev
• 6,890 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
0 answers

How to access the configmap created on a worker node, in the pod.yaml in Master?

1. Configmap is created on the node1. ...READ MORE

Apr 5, 2020 in Kubernetes by jayabmaguluri
• 140 points
777 views
0 votes
1 answer
0 votes
1 answer

Is it possible to force the pod to run on a specific node?

By default, anti-affinity is not attempted by ...READ MORE

answered Jul 15, 2019 in Kubernetes by Sirajul
• 59,230 points
818 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,360 points
933 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
14,587 views
0 votes
1 answer

Accessing private Docker Hub repository from Kubernetes on Vagrant

In order to pull private dockerhub hosted ...READ MORE

answered Sep 18, 2018 in Kubernetes by DareDev
• 6,890 points
1,223 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP