K8s cluster not deploying deployments across all the nodes
-
I am a beginner in kubernetes. I have a cluster running with 4 nodes. All the nodes are currently running fine. They are not tainted, or drained. Every time I deploy a deployment it will only deploy it across 2 nodes instead of 4 nodes. I am trying to look for kube-scheduler logs, but because I am using Oracle Cloud OKE service (kubernetes service for Oracle cloud). They don't make kube-scheduler logs available to customers. What tests or what verifications do I need to do?
-
If you want to place a pod on each node you can use DaemonSet. DaemonSets are configured to distribute the application to each node. For detailed information;
https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
You can find out if DaemonSet is what you need by looking specifically at this title;
https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#deployments