-
Notifications
You must be signed in to change notification settings - Fork 3
/
ghost.yml
61 lines (60 loc) · 1.2 KB
/
ghost.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
kind: Deployment
apiVersion: apps/v1
metadata:
name: ghost
spec:
replicas: 1
selector:
matchLabels:
app: ghost
template:
metadata:
labels:
app: ghost
spec:
containers:
- name: ghost
image: ghost:latest
volumeMounts:
- mountPath: /var/lib/ghost/content/
name: ghost-data
- mountPath: /var/lib/ghost/config.production.json
name: ghost-config
volumes:
- name: ghost-data
hostPath:
path: /mnt/data/ghost/content
type: Directory
- name: ghost-config
hostPath:
path: /mnt/data/ghost/config.production.json
type: File
---
apiVersion: v1
kind: Service
metadata:
name: ghost
labels:
app: ghost
spec:
ports:
- port: 2368
name: ghost
selector:
app: ghost
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: ghost-tls
spec:
entryPoints:
- websecure
routes:
- match: Host(`your-domain.com`)
kind: Rule
services:
- name: ghost
port: 2368
tls:
certResolver: myresolver