-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added TCP route support #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
spec: | ||
containers: | ||
- name: tcpecho | ||
image: cjimti/go-echo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never seen, thanks for the tip.
protocol: tcp | ||
routes: | ||
- name: tcpecho-route | ||
tcp: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you mix http
and tcp
routes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, AppMesh API will throw error.
apiVersion: appmesh.k8s.aws/v1beta1 | ||
kind: VirtualNode | ||
metadata: | ||
name: tcpecho |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long term, I think we should have multiple examples that each show off a subset of related features. This will help users determine what configuration is necessary for each feature. I think tcpecho is a good candidate for the first stand-alone example, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe examples should go to https://github.com/aws/aws-app-mesh-examples under walkthroughs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I'll create an issue. We can leave it as one example for now, then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add tcp routes to the virtualservice definition? https://github.com/aws/aws-app-mesh-controller-for-k8s/blob/master/deploy/virtual-service-definition.yaml#L39
Added tcp to virtual-service CRD spec. Please take a look. Thanks |
Issue #, if available:
#42
Description of changes:
Add TCP route support to match https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_RouteSpec.html
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.