discourse

by joaquinito2051

Helm chartv8.1.8App 2.8.9

Discourse is an open source discussion platform with built-in moderation and governance systems that let discussion communities protect themselves from bad actors even without official moderators.

About this chart

Discourse(R) packaged by Bitnami

Discourse is an open source discussion platform with built-in moderation and governance systems that let discussion communities protect themselves from bad actors even without official moderators.

Overview of DiscourseĀ®

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/discourse

Introduction

This chart bootstraps a Discourse deployment on a Kubernetes cluster using the Helm package manager.

It also packages Bitnami Postgresql and Bitnami RedisĀ® which are required as databases for the Discourse application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release my-repo/discourse

The command deploys Discourse on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override discourse.fullname template (will maintain the release name)""
fullnameOverrideString to fully override discourse.fullname template""
clusterDomainKubernetes Cluster Domaincluster.local
commonLabelsLabels to be added to all deployed resources{}
commonAnnotationsAnnotations to be added to all deployed resources{}
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the the deployment(s)/statefulset(s)["sleep"]
diagnosticMode.argsArgs to override all containers in the the deployment(s)/statefulset(s)["infinity"]

Discourse Common parameters

NameDescriptionValue
image.registryDiscourse image registrydocker.io
image.repositoryDiscourse image repositorybitnami/discourse
image.tagDiscourse image tag2.8.9-debian-11-r3
image.digestDiscourse image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyDiscourse image pull policyIfNotPresent
image.pullSecretsDiscourse image pull secrets[]
image.debugEnable image debug modefalse
auth.emailDiscourse admin user email[email protected]
auth.usernameDiscourse admin useruser
auth.passwordDiscourse admin password. WARNING: Minimum length of 10 characters""
auth.existingSecretName of an existing secret to use for Discourse credentials""
hostHostname to create application URLs (include the port if =/= 80)""
siteNameDiscourse site nameMy Site!
smtp.enabledEnable/disable SMTPfalse
smtp.hostSMTP host name""
smtp.portSMTP port number""
smtp.userSMTP account user name""
smtp.passwordSMTP account password""
smtp.protocolSMTP protocol (Allowed values: tls, ssl)""
smtp.authSMTP authentication method""
smtp.existingSecretName of an existing Kubernetes secret. The secret must have the following key configured: smtp-password""
replicaCountNumber of Discourse & Sidekiq replicas1
podSecurityContext.enabledEnabled Discourse pods' Security Contextfalse
podSecurityContext.fsGroupSet Discourse pod's Security Context fsGroup0
hostAliasesAdd deployment host aliases[]
podAnnotationsAdditional pod annotations{}
podLabelsAdditional pod labels{}
podAffinityPresetPod affinity preset. Allowed values: soft, hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment.{}
tolerationsTolerations for pod assignment.[]
topologySpreadConstraintsTopology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template[]
priorityClassNamePriority Class Name""
schedulerNameUse an alternate scheduler, e.g. "stork".""
terminationGracePeriodSecondsSeconds Discourse pod needs to terminate gracefully""
updateStrategy.typeDiscourse deployment strategy typeRollingUpdate
updateStrategy.rollingUpdateDiscourse deployment rolling update configuration parameters{}
sidecarsAdd additional sidecar containers to the Discourse pods[]
initContainersAdd additional init containers to the Discourse pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for the Discourse pods[]
extraVolumesOptionally specify extra list of additional volumes for the Discourse pods[]

Discourse container parameters

NameDescriptionValue
discourse.skipInstallDo not run the Discourse installation wizardfalse
discourse.commandCustom command to override image cmd[]
discourse.argsCustom args for the custom command[]
`discour

Deploy discourse with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has discourse on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdiscourse is pinned at v8.1.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply