Giter Site home page Giter Site logo

Comments (4)

msaustral avatar msaustral commented on June 12, 2024 2

Hi @jlbutler we just hangup with support and finally made it.

For anybody having this issue, it was the application that was causing the redirecting loop, this was because the envoy gateway by default change the request hostname to the namespace's hostname once the traffic gets inside the namespace.

To get to this issue we started by using a plain index.html, then php info and then the full app.

We manage to solve the issue using a new virtual gateway route option that goes on the action:

apiVersion: appmesh.k8s.aws/v1beta2
kind: GatewayRoute
metadata:
  name: desuper-cl-nginx-gr
  namespace: desuper-cl
spec:
  httpRoute:
    match:
      prefix: "/"
    action:
      rewrite: #****THIS LINE****
        hostname: #****THIS LINE****
          defaultTargetHostname: DISABLED #****THIS LINE****
      target:
        virtualService:
          virtualServiceRef: 
            name: nginx-srv

here is the documentation

https://aws.github.io/aws-app-mesh-controller-for-k8s/reference/api_spec/#appmesh.k8s.aws/v1beta2.GatewayRouteHostnameRewrite

IMPORTANT: the documentation has an error the value must be DISABLED with D at the end

It was difficult, it took a while, but it worth it, all that we have learn these months is priceless.

We are really thank you for all the help, I forgot to get the AWS team (5) names to thank them here, great team!

Have all a good weekend!!

from aws-app-mesh-examples.

cgchinmay avatar cgchinmay commented on June 12, 2024 2

Hi @jlbutler we just hangup with support and finally made it.

For anybody having this issue, it was the application that was causing the redirecting loop, this was because the envoy gateway by default change the request hostname to the namespace's hostname once the traffic gets inside the namespace.

To get to this issue we started by using a plain index.html, then php info and then the full app.

We manage to solve the issue using a new virtual gateway route option that goes on the action:

apiVersion: appmesh.k8s.aws/v1beta2
kind: GatewayRoute
metadata:
  name: desuper-cl-nginx-gr
  namespace: desuper-cl
spec:
  httpRoute:
    match:
      prefix: "/"
    action:
      rewrite: #****THIS LINE****
        hostname: #****THIS LINE****
          defaultTargetHostname: DISABLED #****THIS LINE****
      target:
        virtualService:
          virtualServiceRef: 
            name: nginx-srv

here is the documentation

https://aws.github.io/aws-app-mesh-controller-for-k8s/reference/api_spec/#appmesh.k8s.aws/v1beta2.GatewayRouteHostnameRewrite

IMPORTANT: the documentation has an error the value must be DISABLED with D at the end

It was difficult, it took a while, but it worth it, all that we have learn these months is priceless.

We are really thank you for all the help, I forgot to get the AWS team (5) names to thank them here, great team!

Have all a good weekend!!

Updated the documentation with Correct ENUMs

(Appears on: GrpcGatewayRouteRewrite, HTTPGatewayRouteRewrite)

GatewayRouteHostnameRewrite refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_GatewayRouteHostnameRewrite.html Accepted values: ENABLED or DISABLED for default behavior of Hostname rewrite

Glad to see that new feature for Hostname came to use in a timely manner. Closing this issue now.

from aws-app-mesh-examples.

jlbutler avatar jlbutler commented on June 12, 2024

@msaustral I apologize for your experience so far in getting resolution on this issue. I'll follow up internally and see if I can help drive things.

from aws-app-mesh-examples.

msaustral avatar msaustral commented on June 12, 2024

Hi @jlbutler thank you for your time

from aws-app-mesh-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.