Ho Kim
4bc5e8d912
Skip removing nodes if cluster is not set ( #9430 )
2 years ago
Calin Cristian Andrei
5bc35002ba
[remove-etcd-node] fix json path query
2 years ago
Florian Ruynat
4f1499bd23
Fixup remaining etcd_kubeadm_enabled variables ( #8576 )
3 years ago
Ilya Margolin
f9b5e448c1
Prevent removing etcd member when running in check mode ( #8570 )
3 years ago
Sander Klein
9af719bf99
This fixes the etcd node removal. ( #8526 )
Since we are already on an etcd node while executing the commands, there
is no need to find out an etcd IP because it is on localhost.
3 years ago
forselli-stratio
df425ac143
Fix etcd certificates reference to support etcd_kubeadm_enabled:true ( #7766 )
* Fix etcd certificates reference to support etcd_kubeadm_enabled:true
* Add retries to ETCD Join Member task
* Fix etcd certificates reference when etcd_kubeadm_enabled:true
* Fix conflicts
3 years ago
Max Gautier
cb54eb40ce
Use a variable for standardizing kubectl invocation ( #8329 )
* Add kubectl variable
* Replace kubectl usage by kubectl variable in roles
* Remove redundant --kubeconfig on kubectl usage
* Replace unecessary shell usage with command
3 years ago
Florian Ruynat
5a25de37ef
Revert "remove no longer present etcd nodes from APIEndpoints list in kubeadm-config configmap ( #8244 )" ( #8287 )
This reverts commit dc767c14b9
.
3 years ago
Alvaro Campesino
dc767c14b9
remove no longer present etcd nodes from APIEndpoints list in kubeadm-config configmap ( #8244 )
3 years ago
Cristian Calin
7516fe142f
Move to Ansible 3.4.0 ( #7672 )
* Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10
* Docs: add a note about ansible upgrade post 2.9.x
* CI: ensure ansible is removed before ansible 3.x is installed to avoid pip failures
* Ansible: use newer ansible-lint
* Fix ansible-lint 5.0.11 found issues
* syntax issues
* risky-file-permissions
* var-naming
* role-name
* molecule tests
* Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+
* Pin ansible-base to 2.10.11 to get package fix on RHEL8
3 years ago
forselli-stratio
1069b05e68
Improve scale flow and documentation ( #7610 )
* Improve scale flow
* Add confirmation prompt again
3 years ago
Florent Monbillard
5989680967
Make sure node_ip is set if node is in etcd group ( #6719 )
4 years ago
Florian Ruynat
2faf53b039
Check node_ip is defined when removing etcd node ( #6603 )
4 years ago
Maxime Guyot
214e08f8c9
Fix ansible-lint E305 ( #6459 )
4 years ago
Maxime Guyot
e70f27dd79
Add noqa and disable .ansible-lint global exclusions ( #6410 )
4 years ago
Florian Ruynat
d8a197ca51
Fix remove etcd broken with etcdctl_api 3 ( #6448 )
4 years ago
Florent Monbillard
bf8c8976dd
Upgrade etcd to 3.4.3 ( #5998 )
4 years ago
Sam Lin
6bb47d8adb
Fix can't remove etcd node ( #6363 )
* add remove_node_ip
* move remove_node_ip to remove etcd part
* fix: remove tail space
* fix: handle ubuntu: focal
4 years ago
Maxime Guyot
00fe3d5094
Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS ( #6327 )
4 years ago
Alexander Petermann
7712bd0c76
remove ectd node in pre step, instead of post step ( #6099 )
4 years ago
Nakahara, Kohei
57bb7aa5f6
Fix delete nodes task ( #5747 )
5 years ago
BenoitBOULANGER
e01118d36d
Fix issue in remove-node/post-remove task ( #5185 ) ( #5186 )
5 years ago
Matthew Mosesohn
75d1be8272
Fix check for removing etcd member ( #5051 )
Change-Id: Ib27d051ff111f813097a9b33a86465a2a30a6db0
5 years ago
Matthew Mosesohn
a44235d11b
Refactor remove node to allow removing dead nodes and etcd members ( #5009 )
Change-Id: I1c59249f08f16d0f6fd60df6ab61f17a0a7df189
5 years ago
MarkusTeufelberger
e67f848abc
ansible-lint: add spaces around variables [E206] ( #4699 )
5 years ago
mauromedda
9cef20187c
Add the path to kubectl binary
The post-remove action fails during the kubectl delete node action because with rc: 2, command not found. The kubectl is not in the system PATH and the full path to the binary is required
6 years ago
Mark Eisenblaetter
b548f6f320
move node selection from --limit to --extra-vars=node<nodename>"
6 years ago
rongzhang
94aa062d51
Add run_once to remove-node
6 years ago
rong.zhang
12c78e622b
Remove nodes
Drain node except daemonsets resource
Use reset cluser for delete deploy data
Then delete node
7 years ago