Created
June 6, 2021 13:58
-
-
Save yogesh174/59c105577b1df829cb797917af9e92bc to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: aws-k8s-master | |
become: yes | |
gather_facts: no | |
tasks: | |
- name: "Drain the node" | |
shell: "kubectl drain {{ node }} --delete-local-data --force --ignore-daemonsets" | |
- name: "Delete the node" | |
shell: "kubectl delete node {{ node }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment