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,380 points
290 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,810 points

Related Questions In Kubernetes

0 votes
1 answer
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 in Kubernetes by Sirajul
• 25,180 points
40 views
0 votes
2 answers

How do I force a pod to run on a specific node?

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

answered Aug 6 in Kubernetes by Sirajul
• 25,180 points
33 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
• 40,420 points
61 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
2,051 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,810 points
185 views
0 votes
1 answer