remark42

by groundhog2k

Helm chartv0.11.6App v1.18.0

A Helm chart for Remark42 comment system

About this chart

Remark42

A Helm chart for Remark42 on Kubernetes

TL;DR

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

Introduction

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

Limitations

The Remark42 image supports amd64 architecture only!

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/remark42

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm uninstall my-release

Requirements

RepositoryNameVersion
@groundhog2kredis2.3.3

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"docker.io"Image registry
image.repositorystring"umputun/remark42"Image name
image.tagstring""Image tag
initCommandlist["/bin/sh"]Init container command
initArgslist["-c","find /srvtmp -maxdepth 1 -type f -delete && rm -rf /srvtmp/web && cp -R /srv/* /srvtmp && mkdir -p /srvtmp/var"]Init container command args
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
priorityClassNamestring""Deployment priority class name
nodeSelector."kubernetes.io/arch"string"amd64"Deployment node selector
customLabelsobject{}Additional labels for Deployment or StatefulSet
customAnnotationsobject{}Additional annotations for Deployment or StatefulSet
podAnnotationsobject{}Additional pod annotations
podLabelsobject{}Additional pod labels
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
topologySpreadConstraintsobject{}Topology spread constraints for pods
containerPortint8080Internal http container port
revisionHistoryLimitintnilMaximum number of revisions maintained in revision history

Service paramters

KeyTypeDefaultDescription
service.portint80Remark42 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.loadBalancerSourceRangeslist[]The list of IP CIDR ranges that are allowed to access the load balancer (only relevent for type LoadBalancer)
service.annotationsobject{}Additional service annotations
service.labelsobject{}Additional service labels

Ingress parameters

KeyTypeDefaultDescription
ingress.enabledboolfalseEnable ingress for Remark42 service
ingress.classNamestringnilOptional ingress class name
ingress.annotationsobject{}Additional annotations for ingress
ingress.labelsobject{}Additional ingress lables
ingress.hosts[0].hoststring""Hostname for the ingress endpoint
ingress.hosts[0].host.paths[0].pathstring"/"Path of the Ghost UI
ingress.hosts[0].host.paths[0].pathTypestring"ImplementationSpecific"Ingress path type (ImplementationSpecific, Prefix, Exact)

| ingress.host | string | nil | Hostname for the ingress endpoint | | ingress.path | string | / | Ingress endpoint path

| ingress.tls | object | {} | Ingress TLS parameters | | ingress.tls.secretName | string | nil | Ingress TLS secret name |

HTTPRoute parameters

KeyTypeDefaultDescription
httpRoute.enabledboolfalseEnable HTTPRoute for the Remark42 service
httpRoute.annotationsobject{}Additional HTTPRoute annotations
httpRoute.labelsobject{}Additional HTTPRoute labels
httpRoute.parentRefslist[]Gateway parent references (required when httpRoute is enabled and listenerSet is disabled)
httpRoute.hostnameslist[]Hostnames for the HTTPRoute
httpRoute.ruleslistsee values.yamlHTTPRoute rules for the Remark42 service

ListenerSet parameters

KeyTypeDefaultDescription
listenerSet.enabledboolfalseEnable ListenerSet for Gateway API
listenerSet.annotationsobject{}Additional ListenerSet annotations
listenerSet.labelsobject{}Additional ListenerSet labels
listenerSet.parentRefobject{}Gateway parent reference (required)
listenerSet.listenerslist[]Listeners to attach to the parent Gateway

Network policies

Allows to define optional network policies for ingress and egress The policyTypes will be automatically set

KeyTypeDefaultDescription
networkPolicy.ingressobject{}Ingress network policies
networkPolicy.egressobject{}Egress network policies

Redis cache

KeyTypeDefaultDescription
externalCache.enabledboolfalseEnable external Redis cache
externalCache.hoststringnilExternal Redis host
externalCache.portint6379External Redis port
redis.enabledboolfalseEnable Redis cache deployment (will disable external cache settings)
redis.storagestringnilRedis storage settings

Remark42 parameters

KeyTypeDefaultDescription
settings.urlstringnilURL to this Remark42 site
settings.sitestring"remark"Site Id
settings.secretKeystringnilSecret key
settings.timeZonestring"GTC"Time zone (f.e. Europe/Berlin)
settings.maxBackupFilesint10Maximum number of nightly backup files to keep
settings.maxCommentSizeint2048Comment size limit
settings.maxVotesint-1Vote limits per comment (-1 for unlimited)
settings.votesIpboolfalseRestrict votes from same IP address
settings.anonymousVoteboolfalseAllow votes from anonymous users
settings.votesIpTimestring"5m"Restriction time for votes from same IP address
settings.lowScoreThresholdint-5Low score threshold
settings.criticalScoreThresoldint-10Critical score threshold
settings.positiveScoreboolfalseRestrict comments score to be only positive
settings.restrictedWordsstringnilWords banned in comments
settings.restrictedNamesstringnilNames prohibited to use by a user
settings.editTimestring5mEdit time window
settings.readonlyAgeintnilRead-only age of comments in days
settings.imageProxyhttp2httpsboolfalseEnable http to https proxy for images
settings.proxyExternalCacheboolfalseEnable caching of external images
settings.emojiboolfalseEnable emoji support
settings.simpleViewboolfalseMinimized UI with basic information
settings.proxyCorsboolfalseDisable internal CORS and delegate it to proxy
settings.allowedHostsstringnilLimit hosts allowed to embed comments
settings.updateLimitstring0.5Updates/sec limit
KeyTypeDefaultDescription
settings.smtp.enabledboolfalseEnable SMTP
settings.smtp.fromstringnilSMTP from address
settings.smtp.hoststringnilSMTP host
settings.smtp.portint465SMTP port
settings.smtp.tlsbooltrueUse TLS
settings.smtp.namestringnilSMTP user name
settings.smtp.passwordstringnilSMTP password
settings.smtp.timeoutstring10sSMTP timeout
KeyTypeDefaultDescription
settings.admin.sharedIdstringnilAdmin Ids
settings.admin.sharedEmailstring"admin@${REMARK_URL}"Admin Email addresses
settings.admin.passwordstringnilPassword for admin (Basic auth)
KeyTypeDefaultDescription
settings.cache.maxItemsint1000Maximum number of cached items
settings.cache.maxValueint65536Maximum size of cached value
settings.cache.maxSizeint"50000000"Maximum size of all caches values
KeyTypeDefaultDescription
settings.avatar.typestring"fs"Avatar storage type (fs, bolt, uri)
settings.avatar.resizeLimitint0Maximum image size for resizing avatars (0 = disabled)
KeyTypeDefaultDescription
settings.image.typestring"fs"Image storage type (fs, bolt, uri)
settings.image.maxSizeint"5000000"Maximum image size
settings.image.partitionsint10Number of image partitions
settings.image.resize.widthint2400Width of resized image
settings.image.resize.heightint900Height of resized image
KeyTypeDefaultDescription
settings.auth.ttl.jwtstring"5m"JWT TTL
settings.auth.ttl.cookiestring"200h"Cookie TTL
settings.auth.sentJwtHeaderboolfalseSend JWT as header instead of cookie
settings.auth.sameSitestring"default"Set same site policy for cookies (default, none, lax, strict)
settings.auth.anonymousboolfalseEnable anonymous login
settings.auth.email.enableboolfalseEnable authentication via email
settings.auth.email.fromstringnilEmail from
settings.auth.email.subjectstring"remark42 confirmation"Email subject
settings.auth.email.contentTypestring"text/html"Email content type
settings.auth.email.templatestringnilCustom email message template file
KeyTypeDefaultDescription
settings.notify.type.userstring"none"User notification type (none, telegram, slack, email)
settings.notify.type.adminstring"none"Admin notification type (none, telegram, slack, email, webhook)
settings.notify.queueint100Size of notification queue
settings.notify.telegram.tokenstringnilTelegram token
settings.notify.telegram.channelstringnilTelegram channel
settings.notify.telegram.timeoutstring"5s"Telegram timeout
settings.notify.slack.tokenstringnilSlack token
settings.notify.slack.channelstring"general"Slack channel
settings.notify.email.fromAddressstringnilEmail from address
settings.notify.email.verificationSubjectstring"Email verification"Verification message subject
settings.notify.email.emailAdminboolfalseNotify admin on new comments via admin.sharedEmail (DEPRECATED OPTION - use settings.notify.type.admin = "email" instead) - This setting will overwrite settings.notify.type.admin
settings.notify.webhook.urlstringnilWebhook notification URL for admin notifications
settings.notify.webhook.templatestring{"text": ""}Webhook payload template
settings.notify.webhook.headersstringnilHTTP header in format Header1:Value1,Header2:Value2,...
settings.notify.webhook.timeoutstring5sWebhook request timeout
KeyTypeDefaultDescription
settings.oauth.github.enabledboolfalseEnable Github OAuth
settings.oauth.github.keystringnilGithub OAuth key
settings.oauth.github.secretstringnilGithub

Deploy remark42 with OpenTenant

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