Route to a given replica of a statefulset in Openshift/Kubernetes -
do know if there way statefulset feature in kubernetes/openshift create 1 route per replica (ie 1 route allow me access outside 1 specific replica of statefulset).
the context following.
trying deploy spark masters in ha mode in openshift through statefulsets.
statefulset "spark" "linked" headless service "spark".
everything working fine when staying @ service levels inter-cluster communication.
i mean:
- i have n pods named "spark-0", "spark-1", ...., "spark-n"
- all pods accessible within openshift cluster through dns names "spark-0.spark", "spar-1.spark", ...., "spark-n.spark"
the issue have when start creating routes make them accessible outside.
can create route "spark-route" "linked" "spark" service on port 8080 example.
doing so, have 1 route load balance "n" pods.
have rather have n routes (spark-route-1, ..., spark-route-n), each of route redirecting specific replica within statefulsets.
indeed, outside, need explicity see web ui of spark-1, spark-2, ..., spark-n.
don't want have request load-balanced in such case.
Comments
Post a Comment