Comments (4)
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
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.
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
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.
@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.
Hi @jlbutler thank you for your time
from aws-app-mesh-examples.
Related Issues (20)
- [BUG] Enoy Proxy container fails to initialize while trying to create an app mesh using the dj-app HOT 2
- [BUG] App Mesh Envoy version 1.17+ does not work with SPIRE for mTLS HOT 1
- Walkthrough examples to deploy on Graviton instances
- [BUG] Fix howto-k8s-alb walkthrough HOT 1
- [BUG] Have a public ECR repo from common images generated in walkthrough
- Samples using deprecated APPMESH_VIRTUAL_NODE_NAME HOT 1
- Provide mTLS walkthrough for east-west traffic
- [BUG] Custom Envoy image does not startup in mTLS example
- [BUG] TLS examples don't work with default bash IFS HOT 1
- [QUESTION] Why an Envoy Service infront of Services with Envoy Sidecar? Why an NLB?
- "/bin/sh: yum: command not found" while implementing "howto-mutual-tls-file-provided" in the walkthroughs HOT 1
- [BUG] Can not remove the ending / in k8s manifest HOT 2
- [BUG] INSTANCE_PROFILE_NAME is empty because no prefix matches
- [BUG] HOT 5
- Grpc Load Balancing is not working
- [BUG] Internal SMTP connection fails with App Mesh HOT 1
- [BUG] wrktool in Circuit Breaker doesn't work successfully
- [BUG] Metrics related to Outbound Traffic are not exported after enabling the appmesh metric extension HOT 1
- [BUG] aws-app-mesh-examples/walkthroughs/howto-k8s-mtls-sds-based/v1beta2/manifest.yaml.template has issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-app-mesh-examples.