kubernetes-up-and-running/14-4-ghost.yaml
Yuya Takeyama a6f45d9a7d Align the path of config file with the book
In the book, the config file is registered like below:

    $ kubectl create cm --from-file ghost-config.js ghost-config
2018-04-08 17:58:21 +09:00

31 lines
606 B
YAML

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/ghost-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