Refactor master vs node kube-env and salt auth#8009
Refactor master vs node kube-env and salt auth#8009zmerlynn merged 2 commits intokubernetes:masterfrom mbforbes:refactorEnv
Conversation
|
Running e2es, so don't merge yet. |
cluster/gce/configure-vm.sh
Outdated
There was a problem hiding this comment.
For reboots, you should put a guard around this like we do for the master auth, e.g. if [[ ! -e "${kubelet_auth_file}" ]]; then ... fi
There was a problem hiding this comment.
Done. I figured I'd leave it because it seems idempotent, but I guess no reason to do it twice.
Actually, maybe that's a good question: do we actually want to re-do it every time, if it would be idempotent if it's the same, but allow it to be changed if the config does change?
Also, used single [ and ] to match what's been done in the master function, but happy to change them all to double if you'd prefer.
|
A few nits, otherwise LGTM. |
|
@mbforbes I have a few commits in flight that are touching this same bit of code (creating auth bits for the master and nodes). I think this one should go in first, so can you address comments and re-ping when it's ready for review? |
|
@roberthbailey should be ready for review again. Sorry for the delay—I was working on other stuff today as e2es were busted so I couldn't test this :-/ |
|
With that said, still haven't gotten to run e2es; I can do this tomorrow morning. |
|
LGTM assuming e2es pass. |
|
/cc @dchen1107 @bakins we probably need to replicate this in the CoreOS setup |
|
Found bugs and changed an |
|
This should be fine on CoreOS on GCE. Running through tests to confirm. |
There was a problem hiding this comment.
I think we need to change https://github.com/GoogleCloudPlatform/kubernetes/blob/2f2816368f667bb81e6f59f910b0353604a6ccda/cluster/gce/coreos/node.yaml#L20 to use KUBELET_TOKEN. testing.
|
Confirmed that we need to change to using KUBLET_TOKEN in node.xml. Tests run with CoreOS as minion with this: |
|
@bakins huge thanks for checking this and giving the fix! I've made the change you wrote to @roberthbailey I think this is good |
|
@mbforbes Yes, tests pass. Sorry for being unclear :) Thanks! |
|
LGTM |
Refactor master vs node kube-env and salt auth
Done for #7938 (as part of work on #6088)
+cc @roberthbailey