opengist
by obeone
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.
- Application: github.com/thomiceli/opengist
- Container image:
ghcr.io/thomiceli/opengist - Chart source:
charts/opengist
Prerequisites
- Helm 3
- A Kubernetes cluster matching the chart's
kubeVersionconstraint (seeChart.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 upgradewill fail: the bjw-s common 5.1.0 migration changes the controller selector label fromapp.kubernetes.io/componenttoapp.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/opengistThis 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=orphanhere. It looks like the safe, zero-downtime option, but the new Deployment selects onapp.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
| Repository | Name | Version |
|---|---|---|
| https://bjw-s-labs.github.io/helm-charts | common | 5.1.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| controllers.main.containers.main.env.OG_LOG_LEVEL | string | "info" | |
| controllers.main.containers.main.env.OG_LOG_OUTPUT | string | "stdout" | |
| controllers.main.containers.main.envFrom[0].secretRef.name | string | "opengist-secrets" | |
| controllers.main.containers.main.envFrom[0].secretRef.optional | bool | true | |
| controllers.main.containers.main.image.pullPolicy | string | "IfNotPresent" | |
| controllers.main.containers.main.image.repository | string | "ghcr.io/thomiceli/opengist" | |
| controllers.main.containers.main.image.tag | string | "{{ .Chart.AppVersion }}" | |
| controllers.main.strategy | string | "Recreate" | |
| defaultPodOptions.automountServiceAccountToken | bool | false | |
| ingress.main.enabled | bool | false | |
| ingress.main.hosts[0].host | string | "gist.example.com" | |
| ingress.main.hosts[0].paths[0].path | string | "/" | |
| ingress.main.hosts[0].paths[0].pathType | string | "Prefix" | |
| ingress.main.hosts[0].paths[0].service.identifier | string | "main" | |
| ingress.main.hosts[0].paths[0].service.port | string | "http" | |
| ingress.main.tls[0].hosts[0] | string | "gist.example.com" | |
| ingress.main.tls[0].secretName | string | "gist-tls-cert" | |
| persistence | object | {} | |
| route.main.enabled | bool | false | |
| route.main.hostnames[0] | string | "gist.example.com" | |
| route.main.kind | string | "HTTPRoute" | |
| route.main.parentRefs[0].name | string | "gateway" | |
| route.main.parentRefs[0].namespace | string | "gateway-system" | |
| route.main.rules[0].backendRefs[0].name | string | "main" | |
| route.main.rules[0].matches[0].path.type | string | "PathPrefix" | |
| route.main.rules[0].matches[0].path.value | string | "/" | |
| service.main.controller | string | "main" | |
| service.main.ports.http.port | int | 80 | |
| service.main.ports.http.protocol | string | "TCP" | |
| service.main.ports.http.targetPort | int | 6157 | |
| service.main.ports.ssh.enabled | bool | true | |
| service.main.ports.ssh.port | int | 22 | |
| service.main.ports.ssh.targetPort | int | 2222 | |
| service.main.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopengist is pinned at v2.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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