github.com/ferryproxy/api@v0.4.2/config/samples/traffic_v1alpha2_routepolicy.yaml (about)

     1  apiVersion: traffic.ferryproxy.io/v1alpha2
     2  kind: RoutePolicy
     3  metadata:
     4    name: route-policy-sample
     5    namespace: ferry-system
     6  spec:
     7    # This CRD will generate Route for the following services
     8  
     9    exports:
    10  
    11      # Export the service service-sample.default.svc to hub-0.
    12      - hubName: hub-1
    13        service:
    14          name: service-sample
    15          namespace: default
    16  
    17      # Export the service that match label app=service-sample in namespace default to hub-0.
    18      - hubName: hub-2
    19        service:
    20          labels:
    21            app: service-sample
    22          namespace: default
    23  
    24    imports:
    25      - hubName: hub-0