2017-11-26 20:25:57 +00:00
|
|
|
# Zammad kubernetes example deployment
|
|
|
|
|
|
|
|
This is a proof of concept of a Kubernetes deployment, which should be considered
|
|
|
|
beta and not ready for production.
|
2017-10-24 13:57:42 +00:00
|
|
|
|
2017-10-31 09:33:58 +00:00
|
|
|
## Prerequisites
|
2017-10-24 13:57:42 +00:00
|
|
|
|
2017-12-08 07:26:50 +00:00
|
|
|
- Kubernetes 1.8.x Cluster with at least 1 worker node, 2 CPUs and 6 GB of RAM
|
2017-11-26 20:25:57 +00:00
|
|
|
- Change the ingress to your needs
|
2017-10-24 20:42:40 +00:00
|
|
|
|
|
|
|
|
2017-11-26 20:25:57 +00:00
|
|
|
## Deploy Zammad
|
2017-10-24 20:42:40 +00:00
|
|
|
|
2017-11-26 20:25:57 +00:00
|
|
|
### Install on Minikube
|
2017-10-31 09:29:41 +00:00
|
|
|
|
|
|
|
* Install kubectl
|
|
|
|
* https://kubernetes.io/docs/tasks/tools/install-kubectl/
|
|
|
|
* Install Minkube
|
|
|
|
* https://github.com/kubernetes/minikube
|
2017-12-08 13:52:02 +00:00
|
|
|
* minikube start --memory=6144 --cpus=2
|
2017-10-31 09:59:42 +00:00
|
|
|
* minikube addons enable ingress
|
|
|
|
* echo "$(minikube ip) zammad.example.com" | sudo tee -a /etc/hosts
|
2017-10-31 09:29:41 +00:00
|
|
|
* kubectl apply -f .
|
|
|
|
* minikube dashboard
|
|
|
|
* switch to namespace "zammad"
|
|
|
|
* open "Overview" and wait until all pods are green
|
2017-10-31 09:59:42 +00:00
|
|
|
* access zammad on:
|
|
|
|
* http://zammad.example.com
|
2017-11-26 20:25:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Install on Google Kubernetes Engine
|
|
|
|
* connect to cluster via gcloud command
|
2017-12-02 11:58:46 +00:00
|
|
|
* kubectl proxy
|
2017-11-26 20:25:57 +00:00
|
|
|
* kubectl apply -f .
|
2017-12-02 11:58:46 +00:00
|
|
|
* open dashboard in browser
|
|
|
|
* http://127.0.0.1:8001/ui
|
2017-12-03 18:44:57 +00:00
|
|
|
* if everything is green add backends / ingress rules to create external endpoint
|
2017-11-26 20:25:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
## If you want to help to improve the Kuberntes deployments here are some todos:
|
|
|
|
* add cpu & mem limits
|
|
|
|
* add rolling upgrade strategy to deployments
|
2017-11-30 09:53:52 +00:00
|
|
|
* add RBAC
|