Using Ribbon-Kubernetes discovery with Zuul Using Ribbon-Kubernetes discovery with Zuul kubernetes kubernetes

Using Ribbon-Kubernetes discovery with Zuul


That was actually quite easy. You only need to specify the NIWSServerListClassName, the k8s namespace and the k8s port name in the Ribbon configuration:

service-name:    ribbon:        NIWSServerListClassName: io.fabric8.kubeflix.ribbon.KubernetesServerList        KubernetesNamespace: uat        PortName: tcp80 #make sure you this matches the port name in the k8s service (kubectl describe svc service-name)

Then the Zuul route can refer to the service:

zuul:    routes:        rm-data-store:            path: /foo/**            retryable: true            service-id: service-name