- By Paul Collins
|latest/stable||24||15 Feb 2023|
|latest/edge||18||14 Jun 2021|
juju deploy mattermost-k8s
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Images are built via an OCI Recipe on Launchpad and pushed to mattermostcharmers/mattermost on dockerhub. Each image is tagged with the version number of Mattermost that it was built with (e.g.
5.29.0 ). The images published there are built using this Dockerfile.
Plugins are also managed via the image build. The image builder does not enable any additional plugins by default, but examples of enabling prepackaged and downloaded plugins via the
image_flavour build argument can be found on line 32 of the Dockerfile.
To deploy changes to the Mattermost webapp itself (for example, we wrote a patch to add branded themes to our deployment) see line 39 onwards of the Dockerfile for details.
Local Image Builds
git clone https://git.launchpad.net/~mattermost-charmers/charm-k8s-mattermost/+git/image-build mattermost-image-build docker build -t localhost:32000/mattermost ./mattermost-image-build docker push localhost:32000/mattermost
Then, to use your new image, either replace the
deploy step above with
juju deploy ./charm-k8s-mattermost/mattermost.charm --config mattermost_image_path=localhost:32000/mattermost:latest mattermost
or, if you’ve already deployed mattermost:
juju config mattermost mattermost_image_path=localhost:32000/mattermost:latest
Help us improve this documentation
Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.