Create the ansible inventory file for kubernets 3 nodes cluster

sample inventory file.

Add the follow line in the hosts file.

localhost              ansible_connection=local

worker01     ansible_connection=ssh        ansible_user=root
worker02     ansible_connection=ssh        ansible_user=root

Generate the ssh key in the master server and copy the public key in the work node root user. Also enable the root user ssh access for the worker nodes.

Your website’s content

Find out how to create and organize your content quickly and intuitively.

Copyright © 2004, Software Groups