44 lines
981 B
YAML
44 lines
981 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ghost
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ghost
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ghost
|
|
spec:
|
|
containers:
|
|
- name: ghost
|
|
image: ghost
|
|
ports:
|
|
- containerPort: 2368
|
|
env:
|
|
- name: TZ
|
|
value: Europe/Berlin
|
|
- name: NODE_ENV
|
|
value: development
|
|
- name: database__connection__filename
|
|
value: /var/lib/ghost/content/data/ghost.db
|
|
# - name: url
|
|
# value: https://anydev.info
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /var/lib/ghost/content/
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "200Mi"
|
|
limits:
|
|
cpu: "1"
|
|
memory: "500Mi"
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: ghost-data
|
|
|