commento

by groundhog2k

Helm chartv0.1.36App v1.8.0

A Helm chart for Commento on Kubernetes

About this chart

Commento

Changelog

see RELEASENOTES.md

A Helm chart for Commento on Kubernetes

TL;DR

helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
helm install my-release groundhog2k/commento

Introduction

This chart uses the original Commmento from Gitlab to deploy Commento in Kubernetes.

Limitations

The Commento image only supports amd64 architecture!

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.x
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

helm install my-release groundhog2k/commento

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm uninstall my-release

Requirements

RepositoryNameVersion
@groundhog2kpostgres0.2.26

Common parameters

KeyTypeDefaultDescription
fullnameOverridestring""Fully override the deployment name
nameOverridestring""Partially override the deployment name

Deployment parameters

KeyTypeDefaultDescription
image.pullPolicystring"IfNotPresent"Image pull policy
image.registrystring"registry.gitlab.com"Image registry
image.repositorystring"commento/commento"Image name
image.tagstring""Image tag
imagePullSecretslist[]Image pull secrets
strategyobject{}Pod deployment strategy
startupProbeobjectsee values.yamlStartup probe configuration
livenessProbeobjectsee values.yamlLiveness probe configuration
readinessProbeobjectsee values.yamlReadiness probe configuration
customStartupProbeobject{}Custom startup probe (overwrites default startup probe configuration)
customLivenessProbeobject{}Custom liveness probe (overwrites default liveness probe configuration)
customReadinessProbeobject{}Custom readiness probe (overwrites default readiness probe configuration)
resourcesobject{}Resource limits and requests
nodeSelector."kubernetes.io/arch"string"amd64"Deployment node selector
podAnnotationsobject{}Additional pod annotations
podSecurityContextobjectsee values.yamlPod security context
securityContextobjectsee values.yamlContainer security context
envlist[]Additional container environmment variables
serviceAccount.createboolfalseEnable service account creation
serviceAccount.namestring""Optional name of the service account
serviceAccount.annotationsobject{}Additional service account annotations
affinityobject{}Affinity for pod assignment
tolerationslist[]Tolerations for pod assignment
containerPortint8080Internal http container port
replicaCountint1Number of replicas
revisionHistoryLimitintnilMaximum number of revisions maintained in revision history
podDisruptionBudgetobject{}Pod disruption budget
podDisruptionBudget.minAvailableintnilMinimum number of pods that must be available after eviction
podDisruptionBudget.maxUnavailableintnilMaximum number of pods that can be unavailable after eviction

Service paramters

KeyTypeDefaultDescription
service.portint80Commento HTTP service port
service.typestring"ClusterIP"Service type
service.nodePortintnilThe node port (only relevant for type LoadBalancer or NodePort)
service.clusterIPstringnilThe cluster ip address (only relevant for type LoadBalancer or NodePort)
service.loadBalancerIPstringnilThe load balancer ip address (only relevant for type LoadBalancer)
service.annotationsobject{}Additional service annotations

Ingress parameters

KeyTypeDefaultDescription
ingress.enabledboolfalseEnable ingress for Commento service
ingress.classNamestringnilOptional ingress class name
ingress.annotationsstringnilAdditional annotations for ingress
ingress.hoststringnilHostname for the ingress endpoint
ingress.tlsobject{}Ingress TLS parameters

Commento parameters

KeyTypeDefaultDescription
postgres.enabledboolfalseEnables PostgreSQL deployment (and switches off externalDatabase section)
postgres.settings.superuserPasswordstringnilPostgreSQL superuser password
postgres.userDatabase.namestringnilName of the Commento database
postgres.userDatabase.passwordstringnilUser name of the commento database
postgres.userDatabase.userstringnilPassword of the commento database user
postgres.storagestringnilPostegreSQL storage parameter (see storage parameters)
externalDatabase.hoststringnilExternal PostgreSQL database host
externalDatabase.portint5432External PostgreSQL database port
externalDatabase.namestring"commento"External PostgreSQL database name
externalDatabase.userstringnilExternal database user
externalDatabase.passwordstringnilExternal database password
settings.akismetKeystringnilOptional Akismet key
settings.forbidNewOwnersboolfalseForbid new user self registrations
settings.gzipStaticContentboolfalseEnable serve static content GZIP compressed to client
settings.protocolstring"https"Protocol for generated origin URL (when ingress is enabled)
settings.originstringnilAlternative Commento origin URL which is prefered over generated URL
settings.oauth.github.enabledboolfalseEnable Github OAuth
settings.oauth.github.keystringnilGithub OAuth key
settings.oauth.github.secretstringnilGithub OAuth secret
settings.oauth.gitlab.enabledboolfalseEnable Gitlab OAuth
settings.oauth.gitlab.keystringnilGitlab OAuth key
settings.oauth.gitlab.secretstringnilGitlab OAuth secret
settings.oauth.google.enabledboolfalseEnable Google OAuth
settings.oauth.google.keystringnilGoogle OAuth key
settings.oauth.google.secretstringnilGoogle OAuth secret
settings.oauth.twitter.enabledboolfalseEnable Twitter OAuth
settings.oauth.twitter.keystringnilTwitter OAuth key
settings.oauth.twitter.secretstringnilTwitter OAuth secret
settings.smtp.enabledboolfalseEnable SMTP
settings.smtp.fromstringnilSMTP from address
settings.smtp.hoststringnilSMTP host
settings.smtp.portint465SMTP port
settings.smtp.namestringnilSMTP user name
settings.smtp.passwordstringnilSMTP password

Deploy commento with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has commento 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 chartcommento is pinned at v0.1.36 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