Skip to content

arrrght/installing-kuber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-the-hard-way

  1. Make a clean debian installation on 3 controllers and 3 workers

  2. Copy ssh keys to root

ssh-copy-id user@[host]
ssh user@[host]
cp /home/user/.ssh /root/
^D
  1. Edit inventories/office/hosts

  2. Check it

ansible -i inventories/office all -m ping
  1. Get tool, generate certs
pushd roles/etcd/files
./00-get-etcd.sh
popd && pushd roles/initial/files
mkdir tools && ./get_tools.sh
  1. Copy tools/{cfssl,cfssljson,kubectl} to your /usr/local/bin, chmod +x to it

  2. Generate certs and configs

cd certs
./00-gen-all-certs.sh
cd ../configs
./00-gen-all-configs.sh
popd
  1. Play some
ansible-playbook -i inventories/office all.yml
  1. Play with it
cd configs
kubectl --kubeconfig admin.kubeconfig get componentstatuses
kubectl --kubeconfig admin.kubeconfig apply -f rbac-role.yaml
kubectl --kubeconfig admin.kubeconfig apply -f rbac-role-bind.yaml
kubectl --kubeconfig admin.kubeconfig apply -f dashboard.yaml

About

Install kubernetes from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages