-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
kubeadm: override node registration options from command line #71270
kubeadm: override node registration options from command line #71270
Conversation
'kubeadm join' silently ignores --node-name and --cri-socket command line options if --config option is specified. In some cases it's much easier for users to override these parameters from the command line instead of updating config, especially for multi-node automatic deployments where only node name should be changed. Implemented setting 'name' and 'criSocket' options from the command line even if --config command line option is used.
/cc @neolit123 @seh |
@bart0sh: GitHub didn't allow me to request PR reviews from the following users: seh. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
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.
thanks @bart0sh
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bart0sh, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest |
/test pull-kubernetes-integration |
@bart0sh, by my reading of With your fix, I no longer need to patch my JoinConfiguration file on each worker node, but I do still need to patch my InitConfiguration file on the masters. |
we should probably add that too @bart0sh what you think? |
@seh, @neolit123 I'll try to fix it. Thanks for pointing this out! |
@bart0sh thank you! ping me on slack if you have any questions. |
sorry for not fixing it in 'kubeadm init'. I somehow assumed from this post that it's 'kubeadm join' issue. |
That's my fault for complaining profusely about the problem in front of my face, but not complaining enough about the next problem I'd run into once the first problem was solved. |
@bart0sh |
@neolit123 yep, working on it. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
'kubeadm join' silently ignores --node-name and --cri-socket
command line options if --config option is specified.
In some cases it's much easier for users to override these parameters
from the command line instead of updating config, especially for
multi-node automatic deployments where only node name should be changed.
Implemented setting 'name' and 'criSocket' options from the command
line even if --config command line option is used.
Special notes for your reviewer:
You can see more details in [this comment](url
kubernetes/kubeadm#857 (comment))
Does this PR introduce a user-facing change?: