Requirement:
IngressRoute has multiple paths.
ex:
/test1/health
/test2/health
General process is to have Two services for each path as the Port is same.
/test1/health–>> service1
/test2/health–>> service2
Service1–>> Selctor PodS(pod1)
service2—>>Selctor PodS(pod2)
Question :
Can I have single service to call multiple selector pods for each different path?
Example:
IngressRoute has multiple paths.
ex:
/test1/health
/test2/health
General process is to have Two services for each path as the Port is same.
/test1/health–>> service1
/test2/health–>> service1
Service1–>> Selctor PodS(pod1)
service1—>>Selctor PodS(pod2)
Cluster information:
Kubernetes version:v1.20.11
Cloud being used: Azure
Installation method:
Host OS: Linux
CNI and version:
CRI and version:
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.