We want to spinup 5 pods for an application deployed in Openshift cluster. We want to configure 2 routes for the same application.
For e.g. Pod1, Pod2 & Pod3 can be reached using route1
Pod4 & Pod5 can be reached using route2..
Is it possible to configure two different routes for multiple pods
Is this DeploymentConfig consist of 5 replicas. Then it is not possible to create separate routes for different pods. You have to create separate DeploymentConfigs to be able to create separate routes for different pods.
yes, it is possible but you need to do little hack.
It is not a recommended approach but it should work.
the limitation of this approach is that if a pod gets terminated a new one gets spinned up, you need to manually patch the pod with correct label.
to avoid manual intervention , suggest you to go with two separate deployments