-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.yaml
90 lines (78 loc) · 2.49 KB
/
release.yaml
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
{{- define "trilium.hardcodedValues" -}}
controllers:
main:
initContainers:
fixperms:
image:
repository: busybox
tag: latest
args: ["sh", "-c", "chown -R 1000:1000 /home/node/trilium-data"]
securityContext:
runAsUser: 0
runAsGroup: 0
containers:
trilium:
image:
repository: triliumnext/notes
tag: v0.90.4
pullPolicy: IfNotPresent
probes:
startup:
enabled: true
custom: true
type: TCP
spec:
initialDelaySeconds: 45 # Time to wait before starting the probe
periodSeconds: 10 # How often to perform the probe
timeoutSeconds: 5 # Number of seconds after which the probe times out
failureThreshold: 10 # Number of times to try the probe before giving up
httpGet: &probesPath
path: /login
port: 8080
readiness: &probes
enabled: true
custom: true
spec:
initialDelaySeconds: 5 # Time to wait before starting the probe after startup probe succeeds
periodSeconds: 20 # How often to perform the probe
timeoutSeconds: 10 # Number of seconds after which the probe times out
failureThreshold: 3 # Number of times to try the probe before considering the container not ready
httpGet: *probesPath
liveness: *probes
persistence:
data:
enabled: true
type: persistentVolumeClaim
size: 20Gi
retain: true
# Since it's SQLite, the PVC should only be RWO
accessMode: ReadWriteOnce
globalMounts:
- path: /home/node/trilium-data
readOnly: false
config:
enabled: true
type: configMap
name: {{ .Release.Name }}-config
readOnly: true
advancedMounts:
main:
trilium:
- path: /home/node/trilium-data/config.ini
subPath: config.ini
service:
main:
controller: main
enabled: true
ports:
http:
# What port the cluster is listening on
port: 8080
# What port the container is listening on
targetPort: 8080
{{ end }}
{{- $ctx := deepCopy . -}}
# Merge with ALL the values in `values.yaml`
{{- $_ := mergeOverwrite .Values $ctx.Values -}}
{{- $_ = include "trilium.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
{{- include "bjw-s.common.loader.all" $ctx }}