how to schedule pods in round robin fashion using nodeAffinity

731 views
Skip to first unread message

PRAKASH SINGH

unread,
Jun 13, 2016, 11:07:49 AM6/13/16
to kubernetes-dev
Hi All,

I am using kuberenetes for running NGINX.i have 10 nodes and one master. i want to schedule 4 NGINX pods in 3 selected machines in round-robin fashion.
1.is this possible?
2.nodeSelector is not useful
3.i tried below link


but it' not scheduling pods as expected.
i am using k81.2

for more clarification on quiestion please refer below link:



David Oppenheimer

unread,
Jun 14, 2016, 3:14:44 AM6/14/16
to PRAKASH SINGH, kubernetes-dev
I've responded on StackOverflow about the spreading question. (The answer is that if you specify resource request for your NGINX containers, the scheduler should spread the pods.)

Why do you say nodeSelector is not useful? That will ensure that your 4 pods can only run on the 3 selected machines.


--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/3e3419e6-8d33-4078-9f8d-6b7ab8697b7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

PRAKASH SINGH

unread,
Jun 14, 2016, 3:31:55 AM6/14/16
to kubernetes-dev, psingh....@gmail.com
I commented in below link.

i have not any concern about pod scheduling on the basis of resource avilable on the nodes.I just want to schedule pods on the specific nodes in the round robin fasion.if resource is not avilable for some node then i want to skip that node. 

PRAKASH SINGH

unread,
Jun 16, 2016, 1:40:24 PM6/16/16
to kubernetes-dev
can anyone reply on this? please

David Oppenheimer

unread,
Jun 16, 2016, 2:02:01 PM6/16/16
to PRAKASH SINGH, kubernetes-dev
Let's have the discussion on StackOverflo so other people can find it in the future.


--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

PRAKASH SINGH

unread,
Jun 16, 2016, 2:04:43 PM6/16/16
to kubernetes-dev
ok


On Monday, June 13, 2016 at 8:37:49 PM UTC+5:30, PRAKASH SINGH wrote:
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages