generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 13
/
helmrelease.yaml
153 lines (153 loc) · 4.04 KB
/
helmrelease.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
# yaml-language-server: $schema=https://github.com/fluxcd-community/flux2-schemas/raw/main/helmrelease-helm-v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app vikunja
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
initContainers:
01-init-db:
image: ghcr.io/haraldkoch/postgres-init:15.4
imagePullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: *app
controller:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
image:
repository: caddy
tag: 2.7.4-alpine
pullPolicy: IfNotPresent
sidecars:
frontend:
image: vikunja/frontend:0.21.0@sha256:fdd4582979beee4a6bef2d4d8e3744809b82ab2e198d708a829d7189a0ad9882
resources:
requests:
cpu: 10m
memory: 26Mi
limits:
memory: 28Mi
api:
image: vikunja/api:0.21.0@sha256:e541ef5599d08f50a24e8de1fd8136f9d0a7ef514916fac6d6bf8ac6c7c16712
env:
- name: VIKUNJA_SERVICE_TIMEZONE
value: ${TIMEZONE}
- name: VIKUNJA_DATABASE_TYPE
value: "postgres"
- name: VIKUNJA_SERVICE_FRONTENDURL
value: https://tasks.${CLUSTER_DOMAIN}
- name: VIKUNJA_MAILER_FROMEMAIL
value: tasks@${CLUSTER_DOMAIN}
- name: VIKUNJA_MAILER_ENABLED
value: "true"
- name: VIKUNJA_MAILER_HOST
value: smtp-relay.networking.svc.cluster.local
- name: VIKUNJA_MAILER_PORT
value: "25"
- name: &envjwt VIKUNJA_SERVICE_JWT
valueFrom:
secretKeyRef:
name: *app
key: *envjwt
- name: &envdbuser VIKUNJA_DATABASE_USER
valueFrom:
secretKeyRef:
name: *app
key: *envdbuser
- name: &envdbpass VIKUNJA_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: *app
key: *envdbpass
- name: &envdbhost VIKUNJA_DATABASE_HOST
valueFrom:
secretKeyRef:
name: *app
key: *envdbhost
- name: &envdbdb VIKUNJA_DATABASE_DATABASE
valueFrom:
secretKeyRef:
name: *app
key: *envdbdb
resources:
requests:
cpu: 15m
memory: 24Mi
limits:
memory: 300Mi
volumeMounts:
- name: files
mountPath: /app/vikunja/files
- name: config
mountPath: /app/vikunja/config.yml
subPath: config.yml
readOnly: true
service:
main:
ports:
http:
port: 8080
ingress:
main:
enabled: true
ingressClassName: nginx
annotations:
hajimari.io/icon: mdi:format-list-checks
hosts:
- host: &host "tasks.${CLUSTER_DOMAIN}"
paths:
- path: /
tls:
- hosts:
- *host
volumeClaimTemplates:
- name: files
mountPath: /app/vikunja/files
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ceph-block
persistence:
config:
enabled: true
type: custom
readOnly: true
mountPath: "-"
volumeSpec:
configMap:
name: vikunja
caddy-config:
enabled: "true"
mountPath: /etc/caddy/Caddyfile
subPath: Caddyfile
type: "custom"
volumeSpec:
configMap:
name: vikunja
resources:
requests:
cpu: 15m
memory: 22Mi
limits:
memory: 60Mi