privatebin

by 0hlov3

Helm chartv0.1.17App 2.1.0

PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data.

About this chart

PrivateBin Helm Chart

This Helm chart deploys PrivateBin, a minimalist, open-source online pastebin where the server has zero knowledge of pasted data.

Features

  • Deploy PrivateBin as a Kubernetes application
  • Supports Ingress configuration
  • Configurable resource limits and security contexts
  • Persistent storage support
  • Customizable PrivateBin configuration

Installation

Prerequisites

  • Kubernetes 1.14+
  • Helm 3+
  • A running Ingress controller (if using Ingress)

Add Helm Repository

helm repo add schoenwald https://charts.schoenwald.aero
helm repo update

Install the Chart

helm install privatebin schoenwald/privatebin

or specify custom values:

helm install privatebin schoenwald/privatebin -f values.yaml

Uninstall

To uninstall the chart and delete all associated resources:

helm uninstall privatebin

Parameters

PrivateBin parameters

NameDescriptionValue
image.registryPrivateBin image registrydocker.io
image.repositoryPrivateBin image repositoryprivatebin/nginx-fpm-alpine
image.pullPolicyPrivateBin image pullPolicyIfNotPresent
image.tagPrivateBin image tag (immutable tags are recommended)""

PrivateBin config parameters

NameDescriptionValue
config.name(optional) set a project name to be displayed on the websitePrivateBin
config.basepathThe full URL, with the domain name and directories that point to the PrivateBin files, including an ending slash (/). This URL is essential to allow Opengraph images to be displayed on social networks.https://privatebin.example.com/
config.discussionenable or disable the discussion feature, defaults to truetrue
config.opendiscussionpreselect the discussion feature, defaults to falsefalse
config.passwordenable or disable the password feature, defaults to truetrue
config.fileuploadenable or disable the file upload feature, defaults to falsefalse
config.burnafterreadingselectedpreselect the burn-after-reading feature, defaults to falsefalse
config.defaultformatterwhich display mode to preselect by default, defaults to "plaintext"plaintext
config.syntaxhighlightingtheme(optional) set a syntax highlighting theme, as found in css/prettify/sons-of-obsidian
config.sizelimitsize limit per paste or comment in bytes, defaults to 10 Mebibytes10485760
config.templatetemplate to include, default is "bootstrap" (tpl/bootstrap.php), also available are "page" (tpl/page.php), the classic ZeroBin style and several bootstrap variants: "bootstrap-dark", "bootstrap-compact", "bootstrap-page", which can be combined with "-dark" and "-compact" for "bootstrap-dark-page" and finally "bootstrap-compact-page" - previews at: https://privatebin.info/screenshots.htmlbootstrap
config.languageselectionby default PrivateBin will guess the visitors language based on the browsers settings. Optionally you can enable the language selection menu, which uses a session cookie to store the choice until the browser is closed.false
config.expire.defaultexpire value that is selected per default1week
config.formatter_options.plaintextSet available formatters, their order and their labelsPlain Text
config.formatter_options.syntaxhighlightingSet available formatters, their order and their labelsSource Code
config.formatter_options.markdownSet available formatters, their order and their labelsMarkdown
config.traffic.limittime limit between calls from the same IP address in seconds Set this to 0 to disable rate limiting.10
config.traffic.exempted(optional) Set IPs addresses (v4 or v6) or subnets (CIDR) which are exempted from the rate-limit. Invalid IPs will be ignored. If multiple values are to be exempted, the list needs to be comma separated. Leave unset to disable172,10.10.10/24
persistence.enabledEnable persistence using a PersistentVolumeClaimfalse
persistence.capacityPersistent Volume Size1Gi

Additional Config

NameDescriptionValue
imagePullSecretsimage pull secrets[]
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
serviceAccount.createwhether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use, if not set and create is true, a name is generated using the fullname template""
podAnnotationsPod annotations{}
podSecurityContext.fsGroupSecurity Context fsGro

Deploy privatebin with OpenTenant

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