Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.07 KB

8. Blog-Exercise.md

File metadata and controls

32 lines (20 loc) · 1.07 KB

Ghost Blog

Ghost is a free and open source blogging platform written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications.

Docker Image: https://hub.docker.com/_/ghost/ (note it runs on port 2368)

Useful information

  1. To persist data you need to make following directory persistant /var/lib/ghost/content

  2. Pass following environment variable

        env:
          - name: NODE_ENV
            value: production
          - name: url
            value: https://<Public IP Address of your service>/

Exercise

  1. Create Deployment for running your ghost blog apps (using the latest tag)

    • Make sure data persist even after deleting pod and recreating it
    • pass the correct environment variables ( stretch goal use configMap)
  2. Expose Service externally and update URL environment variable

  3. Register by going to /admin on the website and add some content

  4. Delete deployment and recreate, your content should not be lost