From 9f2c121f6a08193921d78554739147c6fe16839b Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Sat, 19 Aug 2017 22:05:21 -0700 Subject: [PATCH] Create 14-4-ghost.yaml --- 14-4-ghost.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 14-4-ghost.yaml diff --git a/14-4-ghost.yaml b/14-4-ghost.yaml new file mode 100644 index 0000000..6e534ce --- /dev/null +++ b/14-4-ghost.yaml @@ -0,0 +1,30 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: ghost +spec: + replicas: 1 + selector: + matchLabels: + run: ghost + template: + metadata: + labels: + run: ghost + spec: + containers: + - image: ghost + name: ghost + command: + - sh + - -c + - cp /ghost-config/config.js /var/lib/ghost/config.js + && /entrypoint.sh npm start + volumeMounts: + - mountPath: /ghost-config + name: config + volumes: + - name: config + configMap: + defaultMode: 420 + name: ghost-config