I need to redirect all the traffic meant for a specific URL, to a specific ServiceEntry. In order to do it, I thought of using:
originating pod trying to reach for a fake pod URL (pod-1.domain) -> ServiceEntry matching the fake URL (pod-1.domain) -> VirtualService matching the fake URL rewriting the destination with .global (pod-1.domain rewritten to pod-1.domain.global) -> ServiceEntry for the .global URL senging it to another k8s cluster.
My initial ServiceEntry is not working as I expected it will work, as the originating pod returns a “host not found”. I now understand that a ServiceEntry won’t create a DNS entry “just like that”, but now I wonder…how could this be accomplished?