From 8ca6d5429ae446dfb72e6c9c1d8ba9de2651cb4a Mon Sep 17 00:00:00 2001 From: angudadevops Date: Mon, 2 Mar 2020 15:03:48 -0800 Subject: [PATCH] Kubernetes on AWS --- ansible/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/README.md b/ansible/README.md index fdce9cc..5c940c2 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -2,12 +2,14 @@ - Prerequisites - SSH trust setup from your local vm to remote hosts or use remote host private_key - - ssh-keygen -b 2048 -t rsa -f /root/.ssh/id_rsa -q -N "" + - + ``` + ssh-keygen -b 2048 -t rsa -f /root/.ssh/id_rsa -q -N "" ssh anguda@$host | sudo -S mkdir /root/.ssh ssh anguda@$host | sudo -S touch /root/.ssh/authorized_keys ssh anguda@$host | sudo -S apt install git ansible vim sshpass openssh-server -y cat /root/.ssh/id_rsa.pub | sshpass -p k8s123 ssh root@$host "cat >> /root/.ssh/authorized_keys" - + ``` This directory helps you to install kubernetes cluster with ansible playbooks. Please make sure to pass inventory file for each playbooks