kubernetes-ansible-apt
ansible playbook to setup a kubernetes cluster with one control_plane node and worker_nodes using apt based nodes.
This is inspired by kubernetes-and-ansible (for centos) and Kubernetes Setup Using Ansible and Vagrant
There are many other similar projects, but with diffrent aproaches:
- This playbook only installs kubernetes, but no virtualization like Vagrant or KVM.
This was tested with plain ubuntu hosts on hetzner.com/cloud, but without proprietary hcloud.
usage
- create your local inventory:
cp inventories/cluster.ini.example inventories/cluster.ini
- add node host IP or Domain to inventories/cluster.ini
ansible-playbook playbooks/install_cluster.yaml -i inventories/cluster.ini
storage
https://github.com/hetznercloud/csi-driver/blob/main/docs/kubernetes/README.md#getting-started
kubectl apply -f https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.5.1/deploy/kubernetes/hcloud-csi.yml kubectl apply -f hcloud-csi-driver.md
kubectl -n kube-system rollout restart deployment coredns