-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implement the --internal
flag for the export kubeconfig
command
#2217
Comments
xref: #1558, I wonder if perhaps we should do one flag to select between internal, internal-ip, host (default). Any thoughts? |
|
I choose I agree that |
my vote for
related to the kubeconfig field we want to get:
|
I think |
I'm bad at names 🙃 , address-type is good for me, |
What is the current status of the proposal? What is expected to be returned by the three options:
The |
current --internal returns the nodename that should be resolvable from any kind node, and docker container inside the kind network:
internal-ip can be useful for doing stuff from other network or from the host, if you are using linux,
a new flag can be always added later if there is more demand, but since we currently have users of --internal it makes sense to me to keep using it |
So you would implement |
if there is an use case for that 🤷 , let's wait for Ben, but as you said I think we are already tied by |
In my last message I meant for Personally I don’t get the point of Yes, let’s wait for Ben about this. |
I was wondering if we should perhaps deprecate
It would but we could do it gradually with a clear migration path (don't allow setting both, warn when internal is used, in the future drop internal). Sorry, I wrote this comment yesterday and missed the "send" click apparently. |
A clean migration path could be like:
What would we gain on implementing
If we want to do this, I would recommend don't use 'internal' at all, and "host" only if it's really the host, not anything in containers. My suggestion for --address-type would be:
The current default would be "host-port". I would use "container-ip" as the default on Linux, because the URL is resolvable on the host, and internally. The interesting question is if this is worth the effort. Just implement Implementing |
I will go with internal right now, can't see an immediate ROI right now with the complexity it requires to move from it as greatly explained in the previous comment |
ahh forgot about that sorry |
What would you like to be added:
The
kind get kubeconfig
command implements the--internal
flag, butkind export kubeconfig
doesn't.Why is this needed:
As outlined and discussed in #2205: To be able to test KubeFed with kind clusters, you need a kubeconfig containing all the clusters. These clusters talk to each other, so the
--internal
endpoints are needed.The text was updated successfully, but these errors were encountered: