https://github.com/klml/kubernetes-ansible-apt
ansible playbook to setup a kubernetes cluster with one master and worker nodes using apt based nodes
https://github.com/klml/kubernetes-ansible-apt
Last synced: 2 months ago
JSON representation
ansible playbook to setup a kubernetes cluster with one master and worker nodes using apt based nodes
- Host: GitHub
- URL: https://github.com/klml/kubernetes-ansible-apt
- Owner: klml
- License: mit
- Created: 2021-01-07T20:23:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T16:56:53.000Z (over 1 year ago)
- Last Synced: 2025-02-12T08:40:54.374Z (4 months ago)
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/learnitguide/kubernetes-and-ansible) (for centos) and [Kubernetes Setup Using Ansible and Vagrant](https://kubernetes.io/blog/2019/03/15/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](https://www.hetzner.com/cloud), but without proprietary [hcloud](https://github.com/hetznercloud/cli).
## 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.mdkubectl -n kube-system rollout restart deployment coredns