-
Notifications
You must be signed in to change notification settings - Fork 6.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
Document node adding/removing/restoring #1122
Comments
This can be turned into some work items, but in words, the answers are: |
@rutsky would you mind add a doc to describe those actions once your confortable with them ? |
@mattymo i added a node using --limit nodename, but i have two problems.
no respone |
the second issue, i fixed by #1137 |
@hellwen when adding a node using --limit nodename, if we need to cache info about all existing nodes in ansible.cfg. Because i add a node using --limit, there are errors show the parameter was undefined. |
Please be a little more specific on how to add a new node and IF that's still working.
I'm seeing this kind of error here too: #788 (comment) |
when removed node, did not we need to remove the config of k8s agent such as kubelet, kube-proxy,etc.? |
I have related question: is it possible to add master/etcd node to existing cluster via kargo ?
and then want to scale master/etcd components:
Have no success adding new master node to inventory and run |
I'm gonna answer to my own question.
then we add one more master node2:
run playbook, notice limiting to node2 only.
at node2:
check etcd cluster health:
run playbook again to finish node2 setup:
check that node2 successfully added to cluster:
Additionally there's a short howto delete one of master nodes
I didn't find docs on this operations, so decided to share this. |
There is a blocker issue when adding new node to a cluster by latest ansible-playbook --limit option, see #1330 (comment). Can anybody help? |
@mattymo Does not work for me =/
|
@dabealu that's great docs for adding nodes. it work for me. Thank you :) the current host
Then I add new node 'node3'
Its successful added in the current cluster
|
Thanks @dabealu for the info.
before running
again. And usually it fixes my errors. Keep in mind that when you use
as per @hellwen`s example |
I was able to add etcd into the existing cluster at an existing node. For this, I added a node to the etcd group in inventory.cfg. Current:
Added node3 to group etcd:
Then I deleted the certificate files and keys from the first node (for the task: "Check_certs | Set 'gen_certs' to true"):
Then I started the script and it was executed successfully. |
Thanks to @tetramin for the tip. It appears the gen_cert should be checking for member-* in addition to node-*, for adding existing node to etcd group to work properly. |
two problems about adding master
workaround:
workaround:
|
I think this should also cover admin-* (for being able to add master nodes). |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Repurposing an existing node to different role (worker to etcd or etcd to master..) by Kubespray is very painful. Best approach would be to scale down the cluster by remove-node.yml playbook, delete node-* cert of that particular node from /etc/ssl/etcd/ssl dir of etcd[0] and re-ran cluster.yml playbook to convert an old worker node to etcd node. |
I tried to scale first Master and Etcd nodes. I then tried to scale just the master nodes and I didn't have any success in either cases. I ran cluster.yaml after adding new master nodes and it fails at this task. In the kibe-api server logs for new master nodes, it has following error: Is there anything specific that needs to be done to scale master nodes? Other than updating inventory and running cluster.yaml? |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Is there any feasibility of adding worker node without kubespray instead manually installing services of kubelet, kube-proxy, docker, flannel on node. Please suggest. |
Are you looking for running kubeadm manually? Refer the kubeadm documentation for details.. |
No
No not kubeadm, it can be easily done with joining of nodes. Interested in cluster having multiple etcd/apiserver, can we add node manually there without using kube spray. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. 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. |
How the following operations can be done with Kargo?
The text was updated successfully, but these errors were encountered: