ghost

by joaquinito2051

Helm chartv19.1.24App 5.20.0

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.

About this chart

Ghost packaged by Bitnami

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.

Overview of Ghost

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

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

Introduction

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

It also packages the Bitnami MySQL chart which is required for bootstrapping a MySQL 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.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.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 my-repo/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)5.20.0-debian-11-r0
image.digestGhost image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
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""
smtpProtocolSMTP protocol (ssl or tls)""
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""
schedulerNameName of the k8s scheduler (other than default)""
topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
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
startupProbe.enabledEnable startupProbefalse
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe120
startupProbe.periodSecondsPeriod seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe5
startupProbe.failureThresholdFailure threshold for startupProbe6
startupProbe.successThresholdSuccess threshold for startupProbe1
livenessProbe.enabledEnable livenessProbetrue
`livenessProbe.initialDela

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 v19.1.24 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