Submariner can be used to connect multiple smaller k8s clusters and then export (serviceexport CRD) or import (serviceimport CRD) in the connected clusters.
When testing code it would be nice to be able to port-forward these services no matter which of the k8s clusters the current context is attached to, so port-forwarding the ServiceImport
objects or potentially manually resolving them and port-forwarding based on cluster ips or similar would be great.
How can this be accomplished? I.e. you have 10 services on 5 clusters, all available on all clusters using ServiceImport
objects and submariner. The current context is pointing to one of these 5 clusters. You want the 10 services available at localhost:1000...1010
– how can this be accomplished?