Skip to content

Commit

Permalink
Kubernetes on AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
angudadevops authored Mar 2, 2020
1 parent 62ce5f6 commit 8ca6d54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ca6d54

Please sign in to comment.