Skip to content

Instantly share code, notes, and snippets.

@yogesh174
Created June 6, 2021 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogesh174/59c105577b1df829cb797917af9e92bc to your computer and use it in GitHub Desktop.
Save yogesh174/59c105577b1df829cb797917af9e92bc to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
- 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