Multinode Kubernetes Cluster on AWS with the help of Ansible

Pre-requisites:

  • Ansible configured on your Base OS.
  • pre configured dynamic inventory on your Base OS.
  • A new user having Administrator Access. Note: Ansible requires administrator access user access key and secret key so that ansible can used for configuration.
  • Private key in .pem extension.

lets start with playbook for whole setup …..

  1. master node= https://galaxy.ansible.com/deepakad903/k8s_master
  2. worker node= https://galaxy.ansible.com/deepakad903/k8s_worker

now we will run this playbook with the help of this command:

#ansible-playbook k8s.yml — ask-vault-pass

one master and two worker nodes

Thank you

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store