-
Notifications
You must be signed in to change notification settings - Fork 101
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
Expose CoreDNS over tcp + make Dig in terratests go via tcp #845
Conversation
090d939
to
67f99de
Compare
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.
Aren't we making here a strong assumption that k8gb contributor should use mac+lima?
@ytsarev it is more about to use tcp as it also works on |
ports: | ||
- name: tcp-5353 | ||
port: 53 | ||
protocol: 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.
Was it tested outside of the local scenario? Main concern is overall TCP support/expectation in the DNS environment
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, only in with terratests. There is a conditional at the very top of this file that doesn't deploy this svc for aws environment. btw. this doesn't make the switch from udp to tcp, this adds tcp protocol as the other option and instruct the tests that run in the local environment to go via 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.
cool if udp is not getting disable then we are safe I guess
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.
@jkremser could you please move this service definition out of helm and deploy it during test setup creation (around we deploy edgeDNS)
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.
it should be there
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
ports: | ||
- name: tcp-5353 | ||
port: 53 | ||
protocol: 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.
@jkremser could you please move this service definition out of helm and deploy it during test setup creation (around we deploy edgeDNS)
a2ab77b
to
5acb831
Compare
This way it will be deployed into default namespace
…On Thu, Mar 24, 2022, 18:39 Jirka Kremser ***@***.***> wrote:
@jkremser <https://github.com/jkremser> requested your review on: #845
<#845> Expose CoreDNS over tcp + make
Dig in terratests go via tcp.
—
Reply to this email directly, view it on GitHub
<#845 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIM5FHBQGLM53X6CW7Z5Y3VBSSF7ANCNFSM5NPMMEDA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Signed-off-by: Jirka Kremser <[email protected]>
Signed-off-by: Jirka Kremser <[email protected]>
Signed-off-by: Jirka Kremser <[email protected]>
5acb831
to
1fb222f
Compare
good point, added |
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
Signed-off-by: Jirka Kremser <[email protected]>
1fb222f
to
d18abb6
Compare
why: When we get rid of Docker Desktop and use for instance Lima, it doesn't have support for UDP port forwarding from host to containers running in the VM - lima-vm/lima#366
So as a workaround, we can run the Dig in our tests using the tcp protocol, where the redirect works fine (it uses ssh tunnel).
tests will fail, it assumes a new release onAbsaOSS/gopkg
with this AbsaOSS/gopkg#11 merged inIt adds a new service for coredns that uses NodePort (30053) and then adds this redirect in k3d manifests so that
both work
todo: update docs for local playgroundthat
AbsaOSS/gopkg
library contains a module called strings, that was renamed to string like a year ago, but only now it's failing because of the newly released version. Hence thestrings -> string
thing.btw:
Signed-off-by: Jirka Kremser [email protected]