ghost
by [riftbit]
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
Ghost Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | Ghost image registry | docker.io |
image.repository | Ghost image repository | bitnami/ghost |
image.tag | Ghost image tag (immutable tags are recommended) | 4.16.0-debian-10-r0 |
image.pullPolicy | Ghost image pull policy | IfNotPresent |
image.pullSecrets | Ghost image pull secrets | [] |
image.debug | Enable image debug mode | false |
Ghost Configuration parameters
| Name | Description | Value |
|---|---|---|
ghostUsername | Ghost user name | user |
ghostPassword | Ghost user password | "" |
existingSecret | Name of existing secret containing Ghost credentials | "" |
ghostEmail | Ghost user email | [email protected] |
ghostBlogTitle | Ghost Blog title | User's Blog |
ghostHost | Ghost host to create application URLs | "" |
ghostPath | URL sub path where to server the Ghost application | / |
ghostEnableHttps | Configure Ghost to build application URLs using https | false |
smtpHost | SMTP server host | "" |
smtpPort | SMTP server port | "" |
smtpUser | SMTP username | "" |
smtpPassword | SMTP user password | "" |
smtpService | SMTP service | "" |
smtpExistingSecret | The name of an existing secret with SMTP credentials | "" |
allowEmptyPassword | Allow the container to be started with blank passwords | true |
ghostSkipInstall | Skip performing the initial bootstrapping for Ghost | false |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Array with extra environment variables to add to the Ghost container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
Ghost deployment parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Ghost replicas to deploy | 1 |
updateStrategy.type | Ghost deployment strategy type | RollingUpdate |
priorityClassName | Ghost pod priority class name | "" |
hostAliases | Ghost pod host aliases | [] |
extraVolumes | Optionally specify extra list of additional volumes for Ghost pods | [] |
extraVolumeMounts | Optionally specify extra list of additional volumeMounts for Ghost container(s) | [] |
sidecars | Add additional sidecar containers to the Ghost pod | [] |
initContainers | Add additional init containers to the Ghost pods | [] |
lifecycleHooks | Add lifecycle hooks to the Ghost deployment | {} |
podLabels | Extra labels for Ghost pods | {} |
podAnnotations | Annotations for Ghost pods | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | {} |
resources.limits | The resources limits for the Ghost container | {} |
resources.requests | The requested resources for the Ghost container | {} |
containerPorts.http | Ghost HTTP container port | 2368 |
containerPorts.https | Ghost HTTPS container port | 2368 |
podSecurityContext.enabled | Enabled Ghost pods' Security Context | true |
podSecurityContext.fsGroup | Set Ghost pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled Ghost containers' Security Context | true |
containerSecurityContext.runAsUser | Set Ghost container's Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set Ghost container's Security Context runAsNonRoot | true |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 120 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 30 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 6 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
Traffic Exposure Parameters
| Name | Description | Value |
|---|---|---|
service.type | Ghost 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartghost is pinned at v14.0.19 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