Discourse

  • By Discourse Charm Maintainers
juju deploy discourse-charmers-discourse-k8s
Show information
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Channel Version Revision Published Base
latest/stable 28 28 08 Apr 2021
20.04

Platform:

For any problems with this charm, please report bugs here.

The code for this charm can be downloaded as follows:

git clone https://git.launchpad.net/charm-k8s-discourse

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

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-discourse
make -C charm-k8s-discourse discourse.charm

# Deploy Redis into an IaaS model
juju deploy cs:~redis-charmers/redis  # Note the IP as ${REDIS_IP}

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 discourse-test
juju deploy cs:~postgresql-charmers/postgresql-k8s postgresql
juju deploy ./charm-k8s-discourse/discourse.charm discourse --config redis_host=${REDIS_IP}
juju wait
juju status
juju relate discourse postgresql:db

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.

Last updated 8 months ago. Help improve this document in the forum.