-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-deployment.yml
97 lines (95 loc) · 2.6 KB
/
1-deployment.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghost
namespace: default
labels:
app: ghost
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: ghost
template:
metadata:
labels:
app: ghost
spec:
containers:
- name: website
image: ghost:5.48-alpine
imagePullPolicy: Always
ports:
- name: http
containerPort: 2368
protocol: TCP
readinessProbe:
httpGet:
path: /ghost/api/admin/site/
port: http
httpHeaders:
- name: X-Forwarded-Proto
value: https
livenessProbe:
initialDelaySeconds: 60
httpGet:
path: /ghost/api/admin/site/
port: http
httpHeaders:
- name: X-Forwarded-Proto
value: https
resources:
requests:
memory: '128Mi'
cpu: '100m'
limits:
memory: '256Mi'
cpu: '150m'
env:
- name: NODE_ENV
value: production
- name: database__client
value: mysql
- name: database__connection__host
value: your-mysql.host.com
- name: database__connection__user
valueFrom:
secretKeyRef:
name: ghost
key: mysql_username
- name: database__connection__password
valueFrom:
secretKeyRef:
name: ghost
key: mysql_password
- name: database__connection__database
value: <your-database-name>
- name: logging__transports
value: '["stdout"]'
- name: logging__level
value: info
- name: url
value: <https://your-host-name.domain.com>
- name: mail__transport
value: SMTP
- name: mail__options__service
value: Mailgun
- name: mail__options__auth__user
valueFrom:
secretKeyRef:
name: ghost
key: smtp_username
- name: mail__options__auth__pass
valueFrom:
secretKeyRef:
name: ghost
key: smtp_password
volumeMounts:
- name: ghost
mountPath: /var/lib/ghost/content
volumes:
- name: ghost
persistentVolumeClaim:
claimName: ghost