-
Make a clean debian installation on 3 controllers and 3 workers
-
Copy ssh keys to root
ssh-copy-id user@[host]
ssh user@[host]
cp /home/user/.ssh /root/
^D
-
Edit inventories/office/hosts
-
Check it
ansible -i inventories/office all -m ping
- Get tool, generate certs
pushd roles/etcd/files
./00-get-etcd.sh
popd && pushd roles/initial/files
mkdir tools && ./get_tools.sh
-
Copy tools/{cfssl,cfssljson,kubectl} to your /usr/local/bin, chmod +x to it
-
Generate certs and configs
cd certs
./00-gen-all-certs.sh
cd ../configs
./00-gen-all-configs.sh
popd
- Play some
ansible-playbook -i inventories/office all.yml
- 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