kubespray/contrib/network-storage/heketi/README.md

19 lines
1013 B
Markdown
Raw Normal View History

2018-06-25 20:14:58 +08:00
# Deploy Heketi/Glusterfs into Kubespray/Kubernetes
2018-06-25 20:18:17 +08:00
This playbook aims to automate [this](https://github.com/heketi/heketi/blob/master/docs/admin/install-kubernetes.md) tutorial. It deploys heketi/glusterfs into kubernetes and sets up a storageclass.
2018-06-25 20:14:58 +08:00
2018-07-05 00:40:48 +08:00
## Client Setup
Heketi provides a CLI that provides users with a means to administer the deployment and configuration of GlusterFS in Kubernetes. [Download and install the heketi-cli](https://github.com/heketi/heketi/releases) on your client machine.
2018-06-25 20:14:58 +08:00
## Install
Copy the inventory.yml.sample over to inventory/sample/k8s_heketi_inventory.yml and change it according to your setup.
2018-06-25 20:16:12 +08:00
```
2018-06-25 20:17:13 +08:00
ansible-playbook --ask-become -i inventory/sample/k8s_heketi_inventory.yml contrib/network-storage/heketi/heketi.yml
2018-06-25 20:16:12 +08:00
```
2018-07-05 08:15:05 +08:00
## Tear down
```
ansible-playbook --ask-become -i inventory/sample/k8s_heketi_inventory.yml contrib/network-storage/heketi/heketi-tear-down.yml
```
Add `--extra-vars "heketi_remove_lvm=true"` to the command above to remove LVM packages from the system