• 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 worker node

by admin

Question: How to Schedule Master Node to Run Pod Workloads Like the Worker Node?

By default, only the worker node can run the pod workloads and the master is only responsible for the scheduling and 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, it is possible disable the “NoSchedule” property so that the master node can run pod workloads 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. Backtick (`) symbol in Linux Shell Scripting
  2. gradle: command not found
  3. How to Make a Variable read-only (constant) in Bash and Korn Shell
  4. The Ultimate Guide To Use VS Code With Windows Subsystem for Linux (WSL)
  5. How to Use user-defined Functions in awk
  6. How to Start, Stop and Restart Zimbra Service
  7. How to Use External Python modules in MySQL Shell
  8. How to find docker storage device and its size (device mapper storage driver)
  9. Kubernetes Command Line Reference (Cheatsheet)
  10. ValueError: Masked arrays must be 1-D

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright