ghost

by [riftbit]

Helm chartv14.0.19App 4.16.0Verified publisher

A simple, powerful publishing platform that allows you to share your stories with the world

About this chart

Ghost

Ghost is an open source publishing platform designed to create blogs, magazines, and news sites. It includes a simple markdown editor with preview, theming, and SEO built-in to simplify editing.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/ghost

Introduction

This chart bootstraps a Ghost deployment on a Kubernetes cluster using the Helm package manager.

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the Ghost application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release bitnami/ghost

The command deploys Ghost on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]

Ghost Image parameters

NameDescriptionValue
image.registryGhost image registrydocker.io
image.repositoryGhost image repositorybitnami/ghost
image.tagGhost image tag (immutable tags are recommended)4.16.0-debian-10-r0
image.pullPolicyGhost image pull policyIfNotPresent
image.pullSecretsGhost image pull secrets[]
image.debugEnable image debug modefalse

Ghost Configuration parameters

NameDescriptionValue
ghostUsernameGhost user nameuser
ghostPasswordGhost user password""
existingSecretName of existing secret containing Ghost credentials""
ghostEmailGhost user email[email protected]
ghostBlogTitleGhost Blog titleUser's Blog
ghostHostGhost host to create application URLs""
ghostPathURL sub path where to server the Ghost application/
ghostEnableHttpsConfigure Ghost to build application URLs using httpsfalse
smtpHostSMTP server host""
smtpPortSMTP server port""
smtpUserSMTP username""
smtpPasswordSMTP user password""
smtpServiceSMTP service""
smtpExistingSecretThe name of an existing secret with SMTP credentials""
allowEmptyPasswordAllow the container to be started with blank passwordstrue
ghostSkipInstallSkip performing the initial bootstrapping for Ghostfalse
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsArray with extra environment variables to add to the Ghost container[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""

Ghost deployment parameters

NameDescriptionValue
replicaCountNumber of Ghost replicas to deploy1
updateStrategy.typeGhost deployment strategy typeRollingUpdate
priorityClassNameGhost pod priority class name""
hostAliasesGhost pod host aliases[]
extraVolumesOptionally specify extra list of additional volumes for Ghost pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for Ghost container(s)[]
sidecarsAdd additional sidecar containers to the Ghost pod[]
initContainersAdd additional init containers to the Ghost pods[]
lifecycleHooksAdd lifecycle hooks to the Ghost deployment{}
podLabelsExtra labels for Ghost pods{}
podAnnotationsAnnotations for Ghost pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment{}
resources.limitsThe resources limits for the Ghost container{}
resources.requestsThe requested resources for the Ghost container{}
containerPorts.httpGhost HTTP container port2368
containerPorts.httpsGhost HTTPS container port2368
podSecurityContext.enabledEnabled Ghost pods' Security Contexttrue
podSecurityContext.fsGroupSet Ghost pod's Security Context fsGroup1001
containerSecurityContext.enabledEnabled Ghost containers' Security Contexttrue
containerSecurityContext.runAsUserSet Ghost container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet Ghost container's Security Context runAsNonRoottrue
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe3
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customLivenessProbeCustom livenessProbe that overrides the default one{}
customReadinessProbeCustom readinessProbe that overrides the default one{}

Traffic Exposure Parameters

NameDescriptionValue
service.typeGhost service type

Deploy ghost with OpenTenant

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