opengist

by obeone

Helm chartv2.0.3App 1.16.0Verified publisher

Opengist is a self-hosted Pastebin powered by Git. All snippets are stored in a Git repository and can be read and/or modified using standard Git commands, or with the web interface. It is similar to GitHub Gist, but open-source and self-hosted.

About this chart

opengist

Warning: breaking change in 2.0.0. Upgrading from a chart version older than 2.0.0 will fail unless you delete the Deployment first. See Upgrading for the exact commands.

Opengist is a self-hosted Pastebin powered by Git. All snippets are stored in a Git repository and can be read and/or modified using standard Git commands, or with the web interface. It is similar to GitHub Gist, but open-source and self-hosted.

TL;DR

helm repo add obeone https://charts.obeone.cloud
helm repo update
helm install opengist obeone/opengist

About

OpenGist is a self-hosted pastebin powered by Git. All snippets are stored in a Git repository and can be read and/or modified using standard Git commands, or with the web interface. It is similar to GitHub Gist, but open-source and self-hosted.

Prerequisites

  • Helm 3
  • A Kubernetes cluster matching the chart's kubeVersion constraint (see Chart.yaml)

Configuration

This chart is built on the bjw-s-labs common library. Most configuration keys (controllers, service, ingress, persistence, ...) follow its schema; see the common library documentation for everything it supports beyond what is spelled out in values.yaml.

Defaults are meant to work out of the box on any cluster. The full list of options lives in values.yaml, is validated by values.schema.json at install time, and is documented in the Values section below. Override it with your own values file:

helm install opengist obeone/opengist -f my-values.yaml

Upgrading

Warning If you are upgrading from a chart version older than 2.0.0, helm upgrade will fail: the bjw-s common 5.1.0 migration changes the controller selector label from app.kubernetes.io/component to app.kubernetes.io/controller, and selector labels are immutable on a Kubernetes Deployment. Delete the Deployment first, then upgrade:

kubectl delete deployment <release-name>-opengist
helm upgrade <release-name> obeone/opengist

This is a plain cascading delete, the default for kubectl delete deployment: the pods go down with it, so expect a short outage while the upgrade recreates them. Do not add --cascade=orphan here. It looks like the safe, zero-downtime option, but the new Deployment selects on app.kubernetes.io/controller, a label the old pods never had, so it can never adopt them. The orphaned pods would keep running unmanaged forever alongside the new ones. Any PersistentVolumeClaims are not affected by the Deployment delete and must not be deleted separately.

Fresh installs are unaffected; this only applies to upgrades from a pre-2.0.0 release.

helm repo update
helm upgrade opengist obeone/opengist

Each release lists its changes in the Artifact Hub changelog; give it a look before jumping across several chart versions.

Uninstalling

helm uninstall opengist

PersistentVolumeClaims created by the chart are kept around: delete them manually if you also want the data gone.

Requirements

Kubernetes: >=1.31.0-0

RepositoryNameVersion
https://bjw-s-labs.github.io/helm-chartscommon5.1.0

Values

KeyTypeDefaultDescription
controllers.main.containers.main.env.OG_LOG_LEVELstring"info"
controllers.main.containers.main.env.OG_LOG_OUTPUTstring"stdout"
controllers.main.containers.main.envFrom[0].secretRef.namestring"opengist-secrets"
controllers.main.containers.main.envFrom[0].secretRef.optionalbooltrue
controllers.main.containers.main.image.pullPolicystring"IfNotPresent"
controllers.main.containers.main.image.repositorystring"ghcr.io/thomiceli/opengist"
controllers.main.containers.main.image.tagstring"{{ .Chart.AppVersion }}"
controllers.main.strategystring"Recreate"
defaultPodOptions.automountServiceAccountTokenboolfalse
ingress.main.enabledboolfalse
ingress.main.hosts[0].hoststring"gist.example.com"
ingress.main.hosts[0].paths[0].pathstring"/"
ingress.main.hosts[0].paths[0].pathTypestring"Prefix"
ingress.main.hosts[0].paths[0].service.identifierstring"main"
ingress.main.hosts[0].paths[0].service.portstring"http"
ingress.main.tls[0].hosts[0]string"gist.example.com"
ingress.main.tls[0].secretNamestring"gist-tls-cert"
persistenceobject{}
route.main.enabledboolfalse
route.main.hostnames[0]string"gist.example.com"
route.main.kindstring"HTTPRoute"
route.main.parentRefs[0].namestring"gateway"
route.main.parentRefs[0].namespacestring"gateway-system"
route.main.rules[0].backendRefs[0].namestring"main"
route.main.rules[0].matches[0].path.typestring"PathPrefix"
route.main.rules[0].matches[0].path.valuestring"/"
service.main.controllerstring"main"
service.main.ports.http.portint80
service.main.ports.http.protocolstring"TCP"
service.main.ports.http.targetPortint6157
service.main.ports.ssh.enabledbooltrue
service.main.ports.ssh.portint22
service.main.ports.ssh.targetPortint2222
service.main.typestring"ClusterIP"

Verifying the chart signature

Charts in this repository are signed with GPG and every release ships a provenance file. The public key is available at charts.obeone.cloud/public_key.gpg, fingerprint B9FE852F28888D27F8C9A11CD33E04CD22E335CE.

# Import the signing key into a legacy keyring (helm verifies with GnuPG v1 keyrings)
curl -fsSL https://charts.obeone.cloud/public_key.gpg | gpg --import
gpg --export > ~/.gnupg/pubring.gpg

# Pull the chart and check it against its provenance file
helm pull --verify obeone/opengist

Support

This is a personal chart repository, maintained on a best-effort basis. Bug reports and contributions are welcome on GitHub.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy opengist with OpenTenant

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