Skip to content

Latest commit

 

History

History
20 lines (20 loc) · 572 Bytes

new-worker.md

File metadata and controls

20 lines (20 loc) · 572 Bytes

Add New Worker Node

  • Make sure deployer have root into deployer itself and new worker node
ssh-copy-id root@deployer
ssh-copy-id root@workerX
  • Change some variable
hosts/hosts.new.worker
  • Run ansible with inventory files spesific for adding worker
ansible-playbook add-worker.yml -i hosts/hosts-new-worker
  • After new node is deployed, dont forget to append worker section in hosts/hosts file with new worker IP Address
  • Tag the new worker manually
kubectl get nodes
kubectl label node NODE_NAME node-role.kubernetes.io/worker=""