hedgedoc

by RobertoBochet

Helm chartv1.4.0App 1.12.0MITVerified publisher

HedgeDoc (formerly known as CodiMD) is an open-source, web-based, self-hosted, collaborative markdown editor

About this chart

HedgeDoc (unofficial) Helm Chart

HedgeDoc (formerly known as CodiMD) is an open-source, web-based, self-hosted, collaborative markdown editor.

Deploy

  1. Add the repository to helm
    helm repo add robertobochet https://robertobochet.github.io/charts
    helm repo update
    
  2. Retrieve the default values file
    helm show values robertobochet/hedgedoc > values.yaml
    
  3. Customize the values.yaml
  4. Install hedgedoc
    helm install hedgedoc robertobochet/hedgedoc -f values.yaml
    

Parameters

Global

NameDescriptionValue
global.imageRegistryglobal image registry override""
global.imagePullSecretsglobal image pull secrets override; can be extended by imagePullSecrets[]
global.storageClassglobal storage class override""
global.hostAliasesglobal hostAliases which will be added to the pod's hosts files[]
namespaceAn explicit namespace to deploy hedgedoc into. Defaults to the release namespace if not specified""
replicaCountnumber of replicas for the deployment1

strategy

NameDescriptionValue
strategy.typestrategy typeRollingUpdate
strategy.rollingUpdate.maxSurgemaxSurge100%
strategy.rollingUpdate.maxUnavailablemaxUnavailable0
clusterDomaincluster domaincluster.local

Image

NameDescriptionValue
image.registryimage registry, e.g. quay.io,gcr.io,docker.ioquay.io
image.repositoryImage to start for this podhedgedoc/hedgedoc
image.tagVisit: Image tag. Defaults to appVersion within Chart.yaml.""
image.variantImage variant, e.g. alpine, debian""
image.digestImage digest. Allows to pin the given image tag. Useful for having control over mutable tags like latest""
image.pullPolicyImage pull policyIfNotPresent
image.fullOverrideCompletely overrides the image registry, path/image, tag and digest""
imagePullSecretsSecret to use for pulling the image[]

Security

NameDescriptionValue
podSecurityContext.fsGroupSet the shared file system group for all containers in the pod.1000
containerSecurityContextSecurity context{}
podDisruptionBudgetPod disruption budget{}

Service

NameDescriptionValue
service.http.typeKubernetes service type for web trafficClusterIP
service.http.portPort number for web traffic3000
service.http.clusterIPClusterIP setting for http autosetup for deployment is NoneNone
service.http.nodePortNodePort for http service""
service.http.externalTrafficPolicyIf service.http.type is NodePort or LoadBalancer, set this to Local to enable source IP preservation""
service.http.externalIPsExternal IPs for service[]
service.http.ipFamilyPolicyHTTP service dual-stack policy""
service.http.ipFamiliesHTTP service dual-stack familiy selection,for dual-stack parameters see official kubernetes dual-stack concept documentation.[]
service.http.loadBalancerSourceRangesSource range filter for http loadbalancer[]
service.http.annotationsHTTP service annotations{}
service.http.labelsHTTP service additional labels{}
service.http.loadBalancerClassLoadbalancer class""

Ingress

NameDescriptionValue
ingress.enabledEnable ingresstrue
ingress.classNameIngress class name""
ingress.annotationsIngress annotations{}
ingress.hosts[0].hostDefault Ingress hosthedgedoc.example.com
ingress.hosts[0].paths[0].pathDefault Ingress path/
ingress.hosts[0].paths[0].pathTypeIngress path typePrefix
ingress.tlsIngress tls settings[]
ingress.apiVersionSpecify APIVersion of ingress object. Mostly would only be used for argocd.

deployment

NameDescriptionValue
resourcesKubernetes resources{}
schedulerNameUse an alternate scheduler, e.g. "stork"""
nodeSelectorNodeSelector for the deployment{}
tolerationsTolerations for the deployment[]
affinityAffinity for the deployment{}
topologySpreadConstraintsTopologySpreadConstraints for the deployment[]
dnsConfigdnsConfig for the deployment{}
priorityClassNamepriorityClassName for the deployment""
deployment.terminationGracePeriodSecondsHow long to wait until forcefully kill the pod60
deployment.labelsLabels for the deployment{}
deployment.annotationsAnnotations for the Gitea deployment to be created{}

ServiceAccount

NameDescriptionValue
serviceAccount.createEnable the creation of a ServiceAccountfalse
serviceAccount.nameName of the created ServiceAccount, defaults to release name. Can also link to an externally provided ServiceAccount that should be used.""
serviceAccount.automountServiceAccountTokenEnable/disable auto mounting of the service account tokenfalse
serviceAccount.imagePullSecretsImage pull secrets, available to the ServiceAccount[]
serviceAccount.annotationsCustom annotations for the ServiceAccount{}
serviceAccount.labelsCustom labels for the ServiceAccount{}

Persistence

NameDescriptionValue
persistence.enabledEnable persistent storagetrue
persistence.createWhether to create the per

Deploy hedgedoc with OpenTenant

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