We are deploying Ghost using the bitnami/ghost Helm chart.
Note that we currently do not have a storage class for provisioning PVs. The setup described below requires a manual creation and binding of PVCs. This setup will most probably change.
Prerequisites:
- Have a storage class
rook-ceph-block
configured.
The settings for the Helm chart can be found in ghost.values.yaml
.
Changing the values of the Helm chart will not update the settings for an already configured Ghost instance. To do that a different approach is required.
- Copy the
config.production.json
file from the running container to your local machine. For example:
kubectl cp ghost/ghost-597d75fbf-p7qwr:/bitnami/ghost/config.production.json config.production.json
- Edit the file as you wish.
- Copy the file back into the running container. For example:
kubectl cp config.production.json ghost/ghost-597d75fbf-p7qwr:/bitnami/ghost/config.production.json
- Scale down the deployment of ghost to 0.
kubectl scale -n ghost deployment ghost --replicas=0
- Scale the deployment of ghost to 1 again.
kubectl scale -n ghost deployment ghost --replicas=1