This repository was archived by the owner on Jan 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path50_ghost_ada.yml
68 lines (68 loc) · 1.5 KB
/
50_ghost_ada.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
apiVersion: v1
kind: Service
metadata:
name: ghost-ada
spec:
ports:
- port: 80
targetPort: http
selector:
app: ghost-ada
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ghost-ada-ingress
spec:
rules:
- host: textkrieg.de
http:
paths:
- backend:
serviceName: ghost-ada
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ghost-ada
labels:
app: ghost-ada
spec:
replicas: 1
template:
metadata:
labels:
app: ghost-ada
spec:
containers:
- image: quay.io/fivepi/ghost-ada@sha256:45139303895d6f9c8d8fc6bf8f0a7d4029789f841835f8738e5fc16630ff8780
name: ghost-ada
resources:
limits:
memory: 80Mi
requests:
cpu: 400m
memory: 50Mi
ports:
- name: http
containerPort: 8080
volumeMounts:
- name: data
mountPath: /var/lib/ghost
command: [ "sh", "-c", "DATABASE_URL=\"pg://ghost_ada:$DB_PASSWORD@$POSTGRES_SERVICE_HOST:$POSTGRES_SERVICE_PORT/ghost_ada\" exec node index" ]
env:
- name: URL
value: "http://textkrieg.de"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: default
key: pg-ghost-ada-password
volumes:
- name: data
flexVolume:
driver: "5pi.de/do-volume"
fsType: "ext4"
options:
volume: "ghost-ada"