-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeployment.yaml
More file actions
82 lines (82 loc) · 2.4 KB
/
deployment.yaml
File metadata and controls
82 lines (82 loc) · 2.4 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nodebb
name: nodebb
annotations:
reloader.stakater.com/auto: "true"
keel.sh/trigger: poll
keel.sh/policy: force
keel.sh/pollSchedule: "@hourly"
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: nodebb
template:
metadata:
labels:
app: nodebb
spec:
initContainers:
- name: permission-init
image: alpine/git
command:
- sh
- -c
{{/* FOR SSO PLUGIN DEVELOPMENT ONLY: (afterwards still needs rebuild&restart from admin panel) */}}
{{/* - git clone https://github.com/FAForever/nodebb-plugin-sso-oauth-faforever /data/plugins/sso-faforever && chown -R 1001:1001 /data/* && chmod 775 /data/* && ls -lah /data*/}}
- chown -R 1001:1001 /data/* && chmod 775 /data/* && ls -lah /data
volumeMounts:
- mountPath: /data/node_modules
name: nodebb
subPath: node_modules
- mountPath: /data/build
name: nodebb
subPath: build
- mountPath: /data/uploads
name: nodebb
subPath: uploads
- mountPath: /data/plugins
name: plugins
containers:
- image: ghcr.io/nodebb/nodebb:4.10
imagePullPolicy: Always
name: nodebb
volumeMounts:
- mountPath: /opt/config/config.json
name: config
subPath: config.json
- mountPath: /usr/src/app/node_modules
name: nodebb
subPath: node_modules
- mountPath: /usr/src/app/build
name: nodebb
subPath: build
- mountPath: /usr/src/app/public/uploads
name: nodebb
subPath: uploads
env:
- name: FORCE_BUILD_BEFORE_START
value: "true"
command:
- /bin/sh
args:
- -c
- |
npm install nodebb-plugin-sso-oauth-faforever && \
exec tini -- entrypoint.sh
restartPolicy: Always
volumes:
- name: config
secret:
secretName: nodebb
- name: nodebb
persistentVolumeClaim:
claimName: nodebb-pvc
- name: plugins
emptyDir: {}
securityContext:
fsGroup: 1001