kube-scheduler

Kubernetes: kube-scheduler is not correctly scoring nodes for pod assignment

半世苍凉 提交于 2020-01-24 21:30:17
问题 I am running Kubernetes with Rancher, and I am seeing weird behavior with the kube-scheduler. After adding a third node, I expect to see pods start to get scheduled & assigned to it. However, the kube-scheduler scores this new third node node3 with the lowest score, even though it has almost no pods running in it, and I expect it to receive the highest score. Here are the logs from the Kube-scheduler: scheduling_queue.go:815] About to try and schedule pod namespace1/pod1 scheduler.go:456]

Kubernetes: Evenly distribute the replicas across the cluster

南楼画角 提交于 2020-01-05 06:56:29
问题 We can use DaemonSet object to deploy one replica on each node. How can we deploy say 2 replicas or 3 replicas per node? How can we achieve that. please let us know 回答1: There is no way to force x pods per node the way a Daemonset does. However, with some planning, you can force a fairly even pod distribution across your nodes using pod anti affinity. Let's say we have 10 nodes. The first thing is we need to have a ReplicaSet (deployment) with 30 pods (3 per node). Next, we want to set the