Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to define the place (node) of an additional replica (pod) on OpenShift?

$
0
0

I have a master-node configuration of OpenShift. I have created an application. I have a pod of the app running on node1. Now I want to create an additional pod (on node2). I know you can create additional pods with the following command:

oc scale rc rcname --replicas=2

But now your kubernetes master will decide on which node your new pod will take place (the best place, so maybe also on node1). But I want to make this decision by myself (place it on node2). I know you can use a --selector for defining your node when you're creating a container.

But I don't know if you can use this for replicas.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>