diff --git a/stable/ghost/Chart.yaml b/stable/ghost/Chart.yaml index 18af31bf048b..6101bc169451 100644 --- a/stable/ghost/Chart.yaml +++ b/stable/ghost/Chart.yaml @@ -1,5 +1,5 @@ name: ghost -version: 4.0.12 +version: 4.0.13 appVersion: 1.25.3 description: A simple, powerful publishing platform that allows you to share your stories with the world diff --git a/stable/ghost/README.md b/stable/ghost/README.md index 4fc286d05c72..369de25405c7 100644 --- a/stable/ghost/README.md +++ b/stable/ghost/README.md @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the Ghost chart and the | `ghostBlogTitle` | Ghost Blog name | `User's Blog` | | `allowEmptyPassword` | Allow DB blank passwords | `yes` | | `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.port` | Port of the external database | `nil` | | `externalDatabase.user` | Existing username in the external db | `bn_ghost` | | `externalDatabase.password` | Password for the above username | `nil` | | `externalDatabase.database` | Name of the existing database | `bitnami_ghost` | diff --git a/stable/ghost/templates/deployment.yaml b/stable/ghost/templates/deployment.yaml index 0c3f8d8f4ca4..f263a7897b1c 100644 --- a/stable/ghost/templates/deployment.yaml +++ b/stable/ghost/templates/deployment.yaml @@ -48,8 +48,10 @@ spec: {{- else }} value: {{ .Values.externalDatabase.host | quote }} {{- end }} + {{- if and (not .Values.mariadb.enabled) .Values.externalDatabase.port }} - name: MARIADB_PORT_NUMBER - value: "3306" + value: {{ .Values.externalDatabase.port | quote }} + {{- end }} - name: GHOST_DATABASE_NAME {{- if .Values.mariadb.enabled }} value: {{ .Values.mariadb.db.name | quote }} diff --git a/stable/ghost/values.yaml b/stable/ghost/values.yaml index bbfdd160b2bb..7ba1cd67e929 100644 --- a/stable/ghost/values.yaml +++ b/stable/ghost/values.yaml @@ -82,6 +82,9 @@ externalDatabase: ## Database host # host: + ## Database port + # port: + ## Database user # user: bn_ghost