• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to schedule master node running pod/service as a worker node

by admin

Question: How can I schedule master node running pod/service as worker node?

By deafult, only worker node could run the pod, master only response for the scheduler/configuration.

$ kubectl get nodes -o json | jq .items[].spec.taints
[
  {
    "effect": "NoSchedule",
    "key": "node-role.kubernetes.io/master"
  }
]
$ kubectl get nodes -o json | grep master
                    "node-role.kubernetes.io/master": ""
                        "key": "node-role.kubernetes.io/master"

However, you could disable the “NoSchedule” property so master node could run pod as well.

$ kubectl taint nodes --all node-role.kubernetes.io/master-
node/k8s-all-in-one untainted
$ kubectl get nodes -o json | jq .items[].spec.taints
null
$ kubectl get nodes -o json | grep master
                    "node-role.kubernetes.io/master": ""

Filed Under: DevOps, Kubernetes

Some more articles you might also be interested in …

  1. How to schedule master node running pod/service as worker node
  2. How to Trace Python Scripts using trace.py
  3. “su: Authentication failure” – in Docker
  4. The Ultimate Beginner’s Guide to Static Website Hosting With Google Firebase (for FREE)
  5. How to List / Start / Stop / Delete docker Containers
  6. 10 Sed (Stream Editor) Command Examples
  7. How to use command redirection under Linux
  8. How to Access Docker Container’s Network Namespace from Host
  9. How to Write Ansible Playbook and run it using the ansible-playbook command
  10. Using Loops (while, for) in awk scripts

You May Also Like

Primary Sidebar

Recent Posts

  • What are /dev/zero and /dev/null files in Linux
  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright