Skip to content

escardin/mattermost-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mattermost Kubernetes

Getting started using minikube

Install minikube and kubectl

See: https://kubernetes.io/docs/tasks/tools/install-minikube/

Launch minikube

The helm charts start a lot of containers, and it will work better if you launch minikube with additional memory and CPU. You also need to enable persistent volume mapping. This only needs to be done the first time you launch minikube. The settings will persist across restarts. If you need to modify the values try minikube delete and minikube stop

minikube start --memory 4096 --cpus 4 --mount

Install and start Helm

See: https://docs.helm.sh/using_helm/#quickstart

Once helm is installed, run helm init to get it loaded onto minikube

You may need to add some additional repos for helm

helm repo add mattermost https://releases.mattermost.com/helm
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/

Launch Mattermost

The helm charts have external dependencies, fetch them with:

helm dependency update

Once dependencies have been loaded, you can launch the charts directly with:

helm install ./mattermost-helm

If you have a custom config you would like to use (say a license key), create a config.yaml

To list options for mattermost-helm:

helm inspect values mattermost-helm

Create a yaml file config.yaml to overide any defaults you want to change and install using:

helm install -f config.yaml ./mattermost-helm

Tearing down your Mattermost deployment

If you are done with your deployment and want to delete it, you can use helm delete <NAME> where is the name of your deployment. If you don't know the name of your deployment, you can use helm ls to find it.

You may also want/need to delete the persistent volumes from minikube. To do that use kubectl get pv,pvc to get a list of persistent volumes and claims, and use kubectl delete to delete them.

Developing the helm charts

If you are going to modify the helm charts, it is helpful to use --dry-run (doesn't do an actual deployment) and --debug (print the generated config files) when running helm install.

Helm has partial support for pulling values out of a subchart via the requirements.yaml. It also has limited support for pushing values into subcharts. It does not support using templating inside a values.yaml file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Smarty 78.7%
  • Makefile 11.9%
  • Nginx 9.4%