https://github.com/pschiffe/kube-gluster-demo
Demo with kube deployment, gluster, cockpit and wordpress example
https://github.com/pschiffe/kube-gluster-demo
Last synced: 28 days ago
JSON representation
Demo with kube deployment, gluster, cockpit and wordpress example
- Host: GitHub
- URL: https://github.com/pschiffe/kube-gluster-demo
- Owner: pschiffe
- License: mit
- Created: 2016-11-02T12:29:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-08T13:54:52.000Z (over 9 years ago)
- Last Synced: 2026-01-16T05:23:54.869Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubernetes with gluster demo
Demo with Kubernetes deployed by ansible scripts from [kubernetes-contrib](https://github.com/kubernetes/contrib/tree/master/ansible) repository (packaged as RPM in Fedora), with [gluster](https://www.gluster.org/) used for persistent volumes, where gluster itself is running as a service in kubernetes, with [cockpit](http://cockpit-project.org/) as a web management interface and a [wordpress](https://wordpress.org/) example application.
## Requirements
You will need at least 2 virtual machines running recent Fedora (24+) with python 2 installed (`dnf install python`). You should also have proper DNS resolution working between the instances (`/etc/hosts` file should be enough).
## Usage
The deployment is intended to by run from the master instance.
```
dnf install git
git clone https://github.com/pschiffe/kube-gluster-demo.git
cd kube-gluster-demo
vi inventory # Edit inventory file to suit your needs
./deploy.sh
```
After the deployment is done, cockpit should be listening on port `9090` on the master instance. Log in to the cockpit interface and register 2 gluster volumes (Cluster -> Volumes -> Register new volume; type gluster, name vol1 and vol2 endpoint gluster-service-vol1 and gluster-service-vol2). Now you can just deploy wordpress app with `kubectl create -f wp-demo.yml`.