Ghost is a popular blogging engine with a clean UI, built on JS.
(Once you have all the files in ~/infra)
- Ghost is configured using a JS file (infra/ghost-config.js) which we will store as a ConfigMap.
kubectl create cm --from-file infra/ghost-config.js ghost-config-yaml
- Create your mysql database:
kubectl apply infra/mysql/mysql-configmap.ymlkubectl apply infra/mysql/mysql-services.ymlkubectl apply infra/mysql/mysql-statefulset.yml
- Then, exec into the mysql master container to create the db table we want to use:
kubectl exec -it mysql-0 -- mysql -u root -pcreate database ghost_dbexit
kubectl apply infra/ghost.ymlTo create your deployment.- Then, to expose and test it locally:
kubectl expose deployments ghost --port=2368kubectl proxy- Navigate to
http://localhost:8001/api/v1/namespaces/default/services/ghost/proxy/in your browser.