Create 14-4-ghost.yaml
This commit is contained in:
parent
7d05f38f68
commit
9f2c121f6a
30
14-4-ghost.yaml
Normal file
30
14-4-ghost.yaml
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user