A kubernetes operator for ghost blog Ghost
After installing edit examples/ghost.yml
to fit your requirements
apiVersion: apps.exnet.systems/v1alpha1
kind: Ghost
metadata:
name: ghost-sample # name used in resources
namespace: default
spec:
size: 1 # replica size you will have to choose a rwx storage class if you want replicas
hostname: example.com # url env and ingress hostname
container_tag: 3-alpine # ghost container tags
storageclass: local-path # pvc storage class
storageclass_accessmode: rwo # rwo or rwx
storagesize: 2Gi # storage class size for /var/lib/ghost/content mount
certmanager_issuer: letsencrypt-issuer # Clusterissuer for letsencrypt
This assumes you have a working ingress, a storage class avaialble for pvc and a working cert-manager install
Kubernetes version at least 1.17
Create the custom resource definitions:
kubectl apply -f examples/01-crd.yml
And deploy the ghost operator
kubectl apply -f examples/02-deploy.yml
The operator will create the following resources:
- deployment
- service
- pvc
- ingress
- Contributor Covenant - Used for the Code of Conduct
- Creative Commons - Used to choose the license
- Operator SDK Framework - Used to generate the operator via ansible
- Jack Cowey - HiJak
See also the list of contributors who participated in this project.
This project is licensed under the CC0 1.0 Universal Creative Commons License - see the LICENSE.md file for details