• 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 List / Start / Stop / Delete docker Containers
  2. Strings and Variables in Python
  3. How to install Docker on Mac
  4. A Beginner’s Guide To Create Files & Folders Inside Windows Subsystem For Linux
  5. How to schedule master node running pod/service as worker node
  6. How to Configure Btrfs as the Storage Engine in Docker
  7. Bash for loop Examples
  8. How to add new host entry in /etc/hosts when a docker container is run
  9. The Ultimate Beginner’s Guide to Static Website Hosting With Google Firebase (for FREE)
  10. How to Find and Delete Empty Directories and Files in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright