Discourse

  • By Discourse Charm Maintainers
Channel Version Revision Published Runs on
latest/stable 28 28 08 Apr 2021
Ubuntu 20.04
juju deploy discourse-charmers-discourse-k8s
Show information

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 and Redis 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
cd charm-k8s-discourse
charmcraft pack

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 postgresql-k8s
juju deploy redis-k8s
juju deploy ./discourse-k8s_ubuntu-20.04-amd64.charm discourse-k8s
juju wait
juju status
juju relate discourse-k8s postgresql-k8s:db-admin
juju relate discourse-k8s redis-k8s

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 1 year, 18 days ago. Help improve this document in the forum.