-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat: Add nodes back to the host cluster without kubeadm #645
Conversation
kind: Config | ||
clusters: | ||
- cluster: | ||
certificate-authority: /apps/conf/kubernetes/pki/ca.crt |
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.
use env PATH_KUBERNETES_PKI
|
||
# copy the file to the /etc/kubernetes directory | ||
cp bootstrap-kubelet.conf /etc/kubernetes/ | ||
|
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.
PATH_KUBERNETES
echo "NONONO use kubeadm to join node to host" | ||
get_ca_certificate $JOIN_HOST | ||
create_kubelet_bootstrap_config $JOIN_HOST $JOIN_TOKEN | ||
cp $PATH_FILE_TMP/kubeadm-flags.env /var/lib/kubelet/ | ||
fi |
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.
- use env PATH_KUBELET_LIB
- This file
kubeadm-flags.env
has been modified.
@@ -128,6 +195,7 @@ function revert() { | |||
exit 1 | |||
fi | |||
|
|||
systemctl start kubelet | |||
afterRevert |
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.
add if [ "$USE_KUBEADM" = "true" ]; then
afebfcf
to
dfe4175
Compare
feat: Add nodes back to the host cluster without kubeadm Signed-off-by: qiuwei <[email protected]> feat: port_check.sh support ipv6 Signed-off-by: qiuwei <[email protected]>
87eddd8
to
81bc794
Compare
/lgtm |
What type of PR is this?
/kind feature
What does this PR do?
Add nodes back to the host cluster without kubeadm
Which issue(s) does this PR fix?
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?