Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-2617

OSSM Federation failover Doc Update Example yaml contents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • OSSM 2.3.0
    • OSSM 2.1.0
    • Documentation
    • None

    Description

      Readiness criteria

      OSSM-1211 is closed
      ----------------------------

      OSSM Federation failover Doc Update Example yaml contents

      After reviewing our failover doc section [1], we found some contents need to be update.

      [1] https://deploy-preview-41725--osdocs.netlify.app/openshift-enterprise/latest/service_mesh/v2x/ossm-federation#ossm-federation-config-failover-overview_federation

      Suggested example updates:

      • Example ImportServiceSet resource
      kind: ImportedServiceSet
      apiVersion: federation.maistra.io/v1
      metadata:
        name: red-mesh #name of mesh that exported the service
        namespace: green-mesh-system #mesh namespace that service is being imported into
      spec:
        importRules: # first matching rule is used
        # import ratings.bookinfo as ratings.bookinfo
        - type: NameSelector
          importAsLocal: true
          nameSelector:
            namespace: bookinfo
            name: ratings
            alias:
              # service will be imported as ratings.bookinfo.svc.cluster.local
              namespace: bookinfo
              name: ratings
        #Locality within which imported services should be associated.
        locality:
          region: us-west
      
      • Example DestinationRule.
        There is a typo in apiVersion (missing '1')
        namespace need an update.
        host need an update.
        outlierDetection values need an update.
      apiVersion: networking.istio.io/v1beta1
      kind: DestinationRule
      metadata:
        name: default-failover
        namespace: bookinfo
      spec:
        host: "ratings.bookinfo.svc.cluster.local"
        trafficPolicy:
          loadBalancer:
            localityLbSetting:
              enabled: true
              failover:
                - from: us-east
                  to: us-west
          outlierDetection:
            consecutive5xxErrors: 3
            interval: 10s
            baseEjectionTime: 1m
      
      • Step 4 need an update
        $  oc create -n <application namespace> -f <DestinationRule.yaml>
        

        and the following "For example:"

        $ oc create -n bookinfo -f green-mesh-us-west-DestinationRule.yaml
        

      Attachments

        Activity

          People

            jstickler Julie Stickler (Inactive)
            yuaxu@redhat.com Yuanlin Xu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: