---
title: Charmhub | Deploy Mattermost using Charmhub - The Open Operator Collection
description: Deploy the latest version of Mattermost as a Kubernetes Operator on any
  cloud.
url: https://charmhub.io/mattermost-k8s/docs/contribute
---

# Mattermost

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 18

```
juju deploy mattermost-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Launchpad Team](https://launchpad.net/~canonical-is-sre)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to contribute

For any problems with this charm, please [report bugs here](https://bugs.launchpad.net/charm-k8s-mattermost).

The code for this charm can be downloaded as follows:

```
git clone https://git.launchpad.net/charm-k8s-mattermost
```

To run tests, simply run `make test` from within the charm code directory.

## [Local Deployment](https://charmhub.io/mattermost-k8s/docs/contribute#p-10115-local-deployment)

To deploy a test setup locally using microk8s, with PostgreSQL deployed into the same model:

```
sudo snap install juju --classic
sudo snap install juju-wait --classic
sudo snap install microk8s --classic
sudo snap alias microk8s.kubectl kubectl
sudo snap install charmcraft
git clone https://git.launchpad.net/charm-k8s-mattermost
make -C charm-k8s-mattermost mattermost.charm

microk8s.reset  # Warning! Clean slate!
microk8s.enable dns dashboard registry storage
microk8s.status --wait-ready
microk8s.config | juju add-k8s myk8s --client

juju bootstrap myk8s
juju add-model mattermost-test
juju deploy cs:~postgresql-charmers/postgresql-k8s postgresql
juju deploy ./charm-k8s-mattermost/mattermost.charm mattermost
juju wait
juju status
juju relate mattermost postgresql:db
```

---
