Search code examples
dockerkuberneteskubernetes-pod

About deploying Pods to Master in Kubernetes


Im newbie with Kubernetes. And I have 3 nodes cluster (1 master). I realized when I deploy pods, Kubernetes deploy them on worker nodes and not on master.

Just a few pods on master node which are used by Kubernetes. Does it make sense to deploy pods on the master node? Or do I avoid it?


Solution

  • Deploying workload pods on master nodes is a way to put your whole cluster at risk

    Primary role of master is cluster management. Already many components of k8 are running on master.Suppose If pods scheduled on master without limit of resources and pods are consuming all the resources( cpu or memory), then master and in turn whole cluster will be at risk.

    So while designing Highly Available production cluster minimum 3 master, 3 etcd node are created and application pods are not scheduled on these nodes. Separate worker nodes added to assign workload