blob: 3810e9d984958b43ad27e9bc08b5dcf51c5c15e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghost
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: ghost
template:
metadata:
labels:
app: ghost
spec:
securityContext:
fsGroup: 2000
runAsUser: 1000
runAsNonRoot: true
containers:
- name: ghost
image: ghost:5.38-alpine
imagePullPolicy: Always
ports:
- containerPort: 2368
env:
- name: url
value: https://blog.pythondiscord.com
- name: database__client
value: sqlite3
- name: database__connection__filename
value: /var/lib/ghost/content/data/ghost.db
volumeMounts:
- mountPath: /var/lib/ghost/content
name: ghost-data
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: ghost-data
persistentVolumeClaim:
claimName: ghost-storage
|