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

Gateway-controller profile failed to connect gateway

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • OSSM 2.4.0
    • None
    • Maistra
    • None
    • False
    • None
    • False

      Steps:

      1. Deployed the Gateway-controller profile in the SMCP:

       

      apiVersion: maistra.io/v2
      kind: ServiceMeshControlPlane
      metadata:
        name: basic
      spec:
        version: v2.4
        profiles:
        - gateway-controller
      

      2. updated the SMMR :

      spec:
       members:
       - foo

      3. Deploy the httpbin APP in the foo Namespace:

      4. Deploy the gatewayAndRouteYAML: 

       

       

      apiVersion: gateway.networking.k8s.io/v1beta1
      kind: Gateway
      metadata:
        name: gateway
      spec:
        gatewayClassName: istio
        listeners:
        - name: default
          hostname: "*.example.com"
          port: 8080
          protocol: HTTP
          allowedRoutes:
            namespaces:
              from: All
      ---
      apiVersion: gateway.networking.k8s.io/v1beta1
      kind: HTTPRoute
      metadata:
        name: http
      spec:
        parentRefs:
        - name: gateway
          namespace: foo
        hostnames: ["httpbin.example.com"]
        rules:
        - matches:
          - path:
              type: PathPrefix
              value: /get
          backendRefs:
          - name: httpbin
            port: 8000
      

       

      5. Wait for Gateway to be ready

      kubectl wait -n foo --for=condition=ready gateways.gateway.networking.k8s.io gateway

       

      Error: Waiting for controller state

      Expected: gateway should be ready

      ----------------------------------------------------------------------------------------------------------------------------------
      Explanation about the issue:

      When I deploy the gateway controller profile in SMCP. It has the 

       

      techPreview:
       gatewayAPI:
       controllerMode: true
       enabled: true

       

      When I try in the gateway API with these settings, it is failing to connect

      techPreview:
      gatewayAPI:
      controllerMode: true
      enabled: true

      When I try without the controllerMode: true, it connected successfully in the gateway API.

      techPreview:
       gatewayAPI:
       enabled: true

              pbajjuri0204 Praneeth Bajjuri
              pbajjuri0204 Praneeth Bajjuri
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: