-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use the correct hostname in kubelet's kubeconfig #23
Use the correct hostname in kubelet's kubeconfig #23
Conversation
The I suggest adding the |
Yeah, that sounds like a better idea, indeed! Could feel a bit redundant to have |
That means that installing |
Yes it does. I will change that :) |
@anton-johansson Have you had the chance to test the latest commit? |
No, I can do that now. |
Other than my issue in #25 (which isn't really related to this PR), this works as expected. I really dig the change where we got rid of One thing though. Is the |
Not really, but it's necessary on localhost until i figure out how to replace it and update the README with instructions since your default |
Ah of course. But it might not be a bad idea to keep it on localhost then? Quite nice to get a ready |
Closes #22
There was a mix of
hostvars[item].inventory_hostname
andinventory_hostname
in a task that hadrun_once: True
, causing it to give all nodes the hostname of the first node in the credentials part of kubeconfig.Here's an example kubeconfig of my
k8s-worker-02
before this fix: