Hi Lorenz

it seems that inter-pod anti-affinity has been introduced in Kubernetes 1.4
(alpha) [1]. For your scenario you may however rely on setting appropriate
resource requests for your pods. The scheduler takes them per default in
consideration and won't schedule app2/pod2 on the same node as app1/pod1 if
there is not enough resources left. The scheduler looks at the sum of the
resources that have been requested by all the pods running on the node.

[1] https://github.com/kubernetes/kubernetes.github.io/pull/1148

Best Regards,

Frédéric

On Thu, Nov 17, 2016 at 10:27 AM, Lorenz Vanthillo <
[email protected]> wrote:

> We're using OpenShift Origin v1.2.0.
>
> We have a cluster with 5 nodes. 2 of them are infra nodes. 3 of them are
> "primary" nodes.
>
> Our own applications are deployed on the nodes with the label "primary".
>
> Now we have 2 applications/pods which are consuming a lot of resources.
> When we run our process through our pipeline (multiple pods) it works when
> those 2 pods aren't on the same node. We are not able to increase the
> resources on our nodes.
>
>
> Is there a way to tell OpenShift:
>
> Deploy pod X only on nodes where pod Y isn't present (and vice versa)?
>
> We know we can assign labels to nodes and use node-selector's to prevent
> they are'nt on the same node but so we're limitting the power of scheduling.
>
>
> Thanks
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 
*Frédéric Giloux*
Senior Middleware Consultant

Red Hat GmbH
MesseTurm, Friedrich-Ebert-Anlage 49, 60308 Frankfurt am Main

Mobile: +49 (0) 174 1724661 <callto:00491741724661>
E-Mail: [email protected], http://www.redhat.de/

Delivering value year after year
Red Hat ranks # 1 in value among software vendors
http://www.redhat.com/promo/vendor/

Freedom...Courage...Commitment...Accountability
________________________________________________________________________
Red Hat GmbH, http://www.de.redhat.com/ Sitz: Grasbrunn,
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Paul Argiry, Charles Cachera, Michael Cunningham, Michael
O'Neill
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to