Skip to content

Instantly share code, notes, and snippets.

@just1689
Last active November 25, 2019 08:23
Show Gist options
  • Save just1689/74f594e71830ce21fa609a7b2432ab2e to your computer and use it in GitHub Desktop.
Save just1689/74f594e71830ce21fa609a7b2432ab2e to your computer and use it in GitHub Desktop.
K8s Setup

On every vm

sudo su
passwd
# some root password
nano /etc/ssh/sshd_config
# Append line
PermitRootLogin yes
service sshd restart
exit
ssh root@192.,...
# Then ssh login for root -> check ok

On every worker node

swapoff -v /swap.img 
nano /etc/fstab
- Delete the second line (ends with 0     0 )
rm /swap.img
reboot

On bastion

ssh-keygen

ssh-copy-id root@192....
ssh-copy-id [email protected]
ssh-copy-id [email protected]

sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository ppa:ansible/ansible [press enter]
sudo apt update
sudo apt install ansible

Install K8s

https://www.digitalocean.com/community/tutorials/how-to-create-a-kubernetes-cluster-using-kubeadm-on-ubuntu-18-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment