Skip to content

Deploy Discourse to Kubernetes cluster. In Discourse and Kubernetes way.

Notifications You must be signed in to change notification settings

fr0der1c/discourse_kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse deployment in Kubernetes

Prerequisite:

  • Have a Postgres and a Redis instance running. Using helm to deploy is strongly recommended. It's really easy to use.

Steps:

  1. Create discourse user and database in PostgreSQL. Ensure that discourse is a superuser unless it will cause cannot create extension hstore error when building Discourse container.
  2. Copy web_only.yml to discourse_docker/containers and edit it to meet your need
  3. Build Docker image using ./launcher bootstrap web_only. If you want to upload image to your private hub, you can do so.
  4. Edit k8s_deploy/01pvc.yaml. Typically you would like to change storage class. I use nfs here.
  5. Edit 02discourse.yaml and 03service.yaml if you need to. This is entirly optional.
  6. kubectl apply -f k8s_deploy and you will see your app running. Use [ClusterIP]:80 to see your app now.

References:

About

Deploy Discourse to Kubernetes cluster. In Discourse and Kubernetes way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published