basic deployment of ghost
This commit is contained in:
43
deployment/deployment.yaml
Normal file
43
deployment/deployment.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user