-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathvalues.yaml
More file actions
3257 lines (2776 loc) · 135 KB
/
values.yaml
File metadata and controls
3257 lines (2776 loc) · 135 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
## Default values for Mailu.
## @section Global parameters
## Global common parameters (see Bitnamis common chart)
## @param global.imageRegistry Global container image registry
## @param global.imagePullSecrets Global container image pull secret
## @param global.storageClass Global storageClass to use for persistent volumes
global:
imageRegistry: ""
imagePullSecrets: []
storageClass: ""
database:
## @param global.database.roundcube.database Name of the Roundcube database
## @param global.database.roundcube.username Username to use for the Roundcube database
## @param global.database.roundcube.password Password to use for the Roundcube database
## @param global.database.roundcube.existingSecret Name of an existing secret to use for the Roundcube database
## @param global.database.roundcube.existingSecretPasswordKey Name of the key in the existing secret to use for the Roundcube database password
roundcube:
database: roundcube
username: roundcube
password: ""
existingSecret: ""
existingSecretPasswordKey: ""
## @section Common parameters
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
kubeVersion: ""
## @param nameOverride String to partially override `mailu.fullname` include (will maintain the release name)
nameOverride: ""
## @param fullnameOverride String to fully override `mailu.fullname` template
fullnameOverride: ""
## @param commonLabels Add labels to all the deployed resources
commonLabels: {}
## @param commonAnnotations Add annotations to all the deployed resources
commonAnnotations: {}
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
## @param tolerations Tolerations for pod assignment
tolerations: []
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
## @param affinity Affinity for pod assignment
affinity: {}
## @param imageRegistry Container registry to use for all Mailu images
imageRegistry: ghcr.io
## @section Mailu parameters
## e.g.:
## hostnames:
## - mail.example.com
## - imap.example.com
## @param hostnames List of hostnames to generate certificates and ingresses for. The first will be used as primary mail hostname.
hostnames: []
## e.g.:
## domain: example.com
## @param domain Mail domain name. See https://github.com/Mailu/Mailu/blob/master/docs/faq.rst#what-is-the-difference-between-domain-and-hostnames
domain: ""
## e.g.:
## secretKey: chang3m3!
## @param secretKey The secret key is required for protecting authentication cookies and must be set individually for each deployment
## If empty, a random secret key will be generated and saved in a secret
secretKey: ""
## e.g.:
## existingSecret: mailu-secret
## @param existingSecret Name of the existing secret to retrieve the secretKey.
## The secret has to contain the secretKey value under the `secret-key` key.
existingSecret: ""
## @param timezone Timezone to use for the containers
timezone: "Etc/UTC"
## e.g.:
## initialAccount:
## username: mailadmin
## domain: mydomain.com
## password: ""
## existingSecret: mailu-secret
##
## @param initialAccount.enabled Enable the creation of the initial account
## @param initialAccount.username Username of the initial account
## @param initialAccount.domain Domain of the initial account
## @param initialAccount.password Password of the initial account; ignored if using existing secret; if empty, a random password will be generated and saved in a secret
## @param initialAccount.existingSecret Name of the existing secret to retrieve the initial account's password
## @param initialAccount.existingSecretPasswordKey Name of the key in the existing secret to use for the initial account's password
## @param initialAccount.mode How to treat the creationg of the initial account. Possible values: "create", "update" or "ifmissing"
initialAccount:
enabled: false
username: ""
domain: ""
password: ""
existingSecret: ""
existingSecretPasswordKey: ""
mode: "update"
## @param api.enabled Enable the API interface
## @param api.token Token to use for the API interface - if empty, a random token will be generated and saved in a secret
## @param api.existingSecret Name of the existing secret to retrieve the API token - if set, the token will be ignored
## @param api.existingSecretTokenKey Name of the key in the existing secret to use for the API token
## @param api.webPath Path for the API interface
api:
enabled: false
token: ""
existingSecret: ""
existingSecretTokenKey: "api-token"
webPath: "/api"
## @param subnet Change this if you're using different address ranges for pods (IPv4)
subnet: 10.42.0.0/16
## @param subnet6 Change this if you're using different address ranges for pods (IPv6)
subnet6: ""
networkPolicy:
## @param networkPolicy.enabled Enable network policy
enabled: false
## @param networkPolicy.ingressController.namespace Namespace where the ingress controller is deployed
## @param networkPolicy.ingressController.podSelector Selector for the ingress controller pods
ingressController:
namespace: ingress-nginx
podSelector: |
matchLabels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/component: controller
## @param networkPolicy.monitoring.namespace Namespace where the monitoring pods are deployed
## @param networkPolicy.monitoring.podSelector Selector for the monitoring pods
## Make sure you adapt the namespace and podSelector to your environment
## as this can greatly differ between setups. The values below are just examples.
monitoring:
namespace: monitoring
podSelector: |
matchLabels:
app.kubernetes.io/name: prometheus-agent
app.kubernetes.io/instance: kps
## @param mailuVersion Override Mailu version to be deployed (tag of `mailu` images). Defaults to `Chart.AppVersion` - must be master or a version >= 2.0
mailuVersion: ""
## @param logLevel default log level. can be overridden globally or per service
logLevel: WARNING
## @param postmaster local part of the postmaster email address (Mailu will use @$DOMAIN as domain part)
postmaster: postmaster
## @param recipientDelimiter The delimiter used to separate local part from extension in recipient addresses
recipientDelimiter: "+"
## @param dmarc.rua Local part of the DMARC report email address (Mailu will use @$DOMAIN as domain part)
## @param dmarc.ruf Local part of the DMARC failure report email address (Mailu will use @$DOMAIN as domain part)
dmarc:
rua: ""
ruf: ""
limits:
## @param limits.messageSizeLimitInMegabytes Maximum size of an email in megabytes
messageSizeLimitInMegabytes: 50
## Configuration to prevent brute-force attacks. See the documentation for further information: https://mailu.io/master/configuration.html
## @param limits.authRatelimit.ip Sets the `AUTH_RATELIMIT_IP` environment variable in the `admin` pod
## @param limits.authRatelimit.ipv4Mask Sets the `AUTH_RATELIMIT_IP_V4_MASK` environment variable in the `admin` pod
## @param limits.authRatelimit.ipv6Mask Sets the `AUTH_RATELIMIT_IP_V6_MASK` environment variable in the `admin` pod
## @param limits.authRatelimit.user Sets the `AUTH_RATELIMIT_USER` environment variable in the `admin` pod
## @param limits.authRatelimit.exemptionLength Sets the `AUTH_RATELIMIT_EXEMPTION_LENGTH` environment variable in the `admin` pod
## @param limits.authRatelimit.exemption Sets the `AUTH_RATELIMIT_EXEMPTION` environment variable in the `admin` pod
authRatelimit:
ip: 60/hour
ipv4Mask: 24
ipv6Mask: 56
user: 100/day
exemptionLength: 86400
exemption: ""
# Configuration to reduce outgoing spam in case of a compromised account. See the documentation for further information: https://mailu.io/1.9/configuration.html?highlight=MESSAGE_RATELIMIT
## @param limits.messageRatelimit.value Sets the `MESSAGE_RATELIMIT` environment variable in the `admin` pod
## @param limits.messageRatelimit.exemption Sets the `MESSAGE_RATELIMIT_EXEMPTION` environment variable in the `admin` pod
messageRatelimit:
value: 200/day
exemption: ""
## Mailu external relay configuration
## Example:
## externalRelay:
## host: "[domain.tld]:port"
## username: username
## password: SECRET
## # username and password can also be stored as secret:
## existingSecret: external-relay-secret
## usernameKey: username
## passwordKey: password
## networks: ["10.0.0.0/24", "2001:db8::/32"]
## @param externalRelay.host Hostname of the external relay
## @param externalRelay.username Username for the external relay
## @param externalRelay.password Password for the external relay
## @param externalRelay.existingSecret Name of the secret containing the username and password for the external relay; if set, username and password will be ignored
## @param externalRelay.usernameKey Key in the secret containing the username for the external relay
## @param externalRelay.passwordKey Key in the secret containing the password for the external relay
## @param externalRelay.networks List of networks that are allowed to use Mailu as external relay
externalRelay:
host: ""
username: ""
password: ""
existingSecret: ""
usernameKey: "relay-username"
passwordKey: "relay-password"
networks: []
## @param clusterDomain Kubernetes cluster domain name
clusterDomain: cluster.local
## @param credentialRounds Number of rounds to use for password hashing
credentialRounds: 12
## @param sessionCookieSecure Controls the secure flag on the cookies of the administrative interface.
## It should only be turned off if you intend to access it over plain HTTP.
sessionCookieSecure: true
## @param authRequireTokens Require tokens for authentication
authRequireTokens: false
## @param sessionTimeout Maximum amount of time in seconds between requests before a session is invalidated
sessionTimeout: 3600
## @param permanentSessionLifetime Maximum amount of time in seconds a session can be kept alive for if it hasn’t timed-out
permanentSessionLifetime: 2592000
## @param letsencryptShortchain Controls whether we send the ISRG Root X1 certificate in TLS handshakes.
## This is required for android handsets older than 7.1.1 but slows down the performance of modern devices.
letsencryptShortchain: false
## @param customization.siteName Website name
## @param customization.website URL of the website
## @param customization.logoUrl Sets a URL for a custom logo. This logo replaces the Mailu logo in the topleft of the main admin interface.
## @param customization.logoBackground Sets a custom background colour for the brand logo in the top left of the main admin interface.
customization:
siteName: "Mailu"
website: "https://mailu.io"
logoUrl: ""
logoBackground: ""
## @param welcomeMessage.enabled Enable welcome message
## @param welcomeMessage.subject Subject of the welcome message
## @param welcomeMessage.body Body of the welcome message
welcomeMessage:
enabled: true
subject: "Welcome to Mailu"
body: "Welcome to Mailu, your new email service. Please change your password and update your profile."
## @param wildcardSenders List of user emails that can send emails from any address
wildcardSenders: []
## @param tls.outboundLevel Sets the `OUTBOUND_TLS_LEVEL` environment variable
## @param tls.deferOnError Sets the `DEFER_ON_TLS_ERROR` environment variable
## @param tls.inboundEnforce Sets the `INBOUND_TLS_ENFORCE` environment variable
tls:
outboundLevel: ""
deferOnError: ""
inboundEnforce: ""
## @section Storage parameters
## If deploying MariaDB or PostgreSQL from this chart (see `mariadb.enabled` and `postgresql.enabled`),
## the username, password and database name for the `mailu` database needs to be configured in the respective sections.
## If using an external database, the `mailu` database needs to be created manually and the credentials need to be configured here.
## The Roundcube database needs to be configured under the `global.database` section.
## If using the built-in MariaDB or PostgreSQL, the Roundcube database will be created automatically.
externalDatabase:
## @param externalDatabase.enabled Set to true to use an external database
enabled: false
## @param externalDatabase.type Type of the external database for Mailu and Roundcube (`mysql`/`postgresql`)
## Use `mysql` for MariaDB
type: ""
## @param externalDatabase.host Hostname of the database
host: ""
## @param externalDatabase.port Override for port of the database
port: ""
## @param externalDatabase.database Name of the database
database: mailu
## @param externalDatabase.username Username to use for the database
username: mailu
## @param externalDatabase.password Password to use for the database
password: ""
## @param externalDatabase.existingSecret Name of the secret containing the database credentials
existingSecret: ""
## @param externalDatabase.existingSecretDatabaseKey Key in the secret containing the database name
existingSecretDatabaseKey: "database"
## @param externalDatabase.existingSecretUsernameKey Key in the secret containing the database username
existingSecretUsernameKey: "username"
## @param externalDatabase.existingSecretPasswordKey Key in the secret containing the database password
existingSecretPasswordKey: "password"
## @param externalDatabase.appendix String appended to the SQLAlchemy URI
appendix: ""
externalRedis:
## @param externalRedis.enabled Set to true to use an external Redis instance (ignored if `redis.enabled` is true)
enabled: false
## @param externalRedis.host Hostname of the external Redis instance
host: ""
## @param externalRedis.port Port of the external Redis instance
port: 6379
## @param externalRedis.adminQuotaDbId Redis database ID for the quota storage on the admin pod
adminQuotaDbId: 1
## @param externalRedis.adminRateLimitDbId Redis database ID for the rate limit storage on the admin pod
adminRateLimitDbId: 2
## @param externalRedis.rspamdDbId Redis database ID for the rspamd storage on the rspamd pod
## Changing this value does nothing as the option is not configurable in rspamd pod yet
## ref: https://rspamd.com/doc/configuration/redis.html#available-redis-options
rspamdDbId: 0
## @param database.mysql.roundcubePassword DEPRECATED - DO NOT USE: Password for the Roundcube database
## @param database.postgresql.roundcubePassword DEPRECATED - DO NOT USE: Password for the Roundcube database
database:
mysql:
roundcubePassword: ""
postgresql:
roundcubePassword: ""
## MariaDB chart configuration
## for more options see https://github.com/bitnami/charts/tree/master/bitnami/mariadb
mariadb:
## @param mariadb.enabled Enable MariaDB deployment
enabled: false
## @param mariadb.architecture MariaDB architecture. Allowed values: standalone or replication
architecture: standalone
## @param mariadb.image.repository MariaDB image repository (using bitnamilegacy for now)
image:
repository: bitnamilegacy/mariadb
## @param mariadb.auth.rootPassword Password for the `root` user. Ignored if existing secret is provided.
## @param mariadb.auth.database Name for a custom database to create
## @param mariadb.auth.username Name for a custom user to create
## @param mariadb.auth.password Password for the new user. Ignored if existing secret is provided
## @param mariadb.auth.existingSecret Use existing secret for password details (`auth.rootPassword`, `auth.password`, `auth.replicationPassword`
## will be ignored and picked up from this secret). The secret has to contain the keys `mariadb-root-password`, `mariadb-replication-password`
## and `mariadb-password`
auth:
rootPassword: ""
database: mailu
username: mailu
password: ""
existingSecret: ""
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
## @param mariadb.primary.persistence.enabled Enable persistence using PVC
## @param mariadb.primary.persistence.storageClass PVC Storage Class for MariaDB volume
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
## @param mariadb.primary.persistence.accessMode PVC Access Mode for MariaDB volume
## @param mariadb.primary.persistence.size PVC Storage Request for MariaDB volume
primary:
persistence:
enabled: false
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi
## @skip mariadb.primary.extraEnvVars
## Array with extra environment variables, used to create the initial Roundcube database; DO NOT EDIT; see `global.database` instead
extraEnvVars:
- name: ROUNDCUBE_DB_PW
valueFrom:
secretKeyRef:
name: '{{ include "mailu.database.roundcube.secretName" . }}'
key: '{{ include "mailu.database.roundcube.secretKey" . }}'
- name: ROUNDCUBE_DB_NAME
value: '{{ include "mailu.database.roundcube.name" . }}'
- name: ROUNDCUBE_DB_USER
value: '{{ include "mailu.database.roundcube.username" . }}'
## @skip mariadb.initdbScripts.create_roundcube_database.sh
## DO NOT EDIT Script to create the Roundcube database
initdbScripts:
create_roundcube_database.sh: |
#!/bin/bash
# set -o errexit
# set -o nounset
# set -o pipefail
echo "Checking for DB initialisation"
if [ -S /opt/bitnami/mariadb/tmp/mysql.sock ]; then
echo "Running DB initialisation..."
/opt/bitnami/mariadb/bin/mysql --user="root" --password="${MARIADB_ROOT_PASSWORD}" <<SQL
--
-- Initialisation script for roundcube database
--
CREATE DATABASE IF NOT EXISTS ${ROUNDCUBE_DB_NAME};
GRANT ALL PRIVILEGES ON ${ROUNDCUBE_DB_NAME}.* TO '${ROUNDCUBE_DB_USER}'@'%' IDENTIFIED BY '${ROUNDCUBE_DB_PW}';
FLUSH PRIVILEGES;
SQL
echo "DB initialisation complete"
else
echo "Not running initialisation, exiting..."
fi
## @param mariadb.metrics.image.repository MariaDB metrics exporter image (using bitnamilegacy for now)
metrics:
image:
repository: bitnamilegacy/mysqld-exporter
## @param mariadb.volumePermissions.image.repository MariaDB volume permissions image (using bitnamilegacy for now)
volumePermissions:
image:
repository: bitnamilegacy/os-shell
## PostgreSQL chart configuration
## for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
postgresql:
## @param postgresql.enabled Enable PostgreSQL deployment
enabled: false
## @param postgresql.architecture PostgreSQL architecture. Allowed values: standalone or replication
architecture: standalone
## @param postgresql.image.repository PostgreSQL image repository (using bitnamilegacy for now)
image:
repository: bitnamilegacy/postgresql
## @param postgresql.auth.enablePostgresUser Assign a password to the "postgres" admin user. Otherwise, remote access will be blocked for this user
## @param postgresql.auth.postgresPassword Password for the "postgres" admin user. Ignored if `auth.existingSecret` with key `postgres-password` is provided
## @param postgresql.auth.username Name for a custom user to create
## @param postgresql.auth.password Password for the custom user to create. Ignored if `auth.existingSecret` with key `password` is provided
## @param postgresql.auth.database Name for a custom database to create
## @param postgresql.auth.existingSecret Use existing secret for password details (`auth.postgresPassword`, `auth.password` will be ignored and picked up from this secret). The secret has to contain the keys `postgres-password` and `password`
auth:
enablePostgresUser: true
postgresPassword: changeme
username: mailu
password: ""
database: mailu
existingSecret: ""
## @param postgresql.auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
## @param postgresql.auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
## @param postgresql.auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
secretKeys:
adminPasswordKey: postgres-password
userPasswordKey: password
replicationPasswordKey: replication-password
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
## @param postgresql.primary.persistence.enabled Enable persistence using PVC
## @param postgresql.primary.persistence.storageClass PVC Storage Class for PostgreSQL volume
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
## @param postgresql.primary.persistence.accessMode PVC Access Mode for PostgreSQL volume
## @param postgresql.primary.persistence.size PVC Storage Request for PostgreSQL volume
primary:
## @skip postgresql.primary.extraEnvVars
## Array with extra environment variables, used to create the initial Roundcube database; DO NOT EDIT; see `global.database` instead
extraEnvVars:
- name: ROUNDCUBE_DB_PW
valueFrom:
secretKeyRef:
name: '{{ include "mailu.database.roundcube.secretName" . }}'
key: '{{ include "mailu.database.roundcube.secretKey" . }}'
- name: ROUNDCUBE_DB_NAME
value: '{{ include "mailu.database.roundcube.name" . }}'
- name: ROUNDCUBE_DB_USER
value: '{{ include "mailu.database.roundcube.username" . }}'
initdb:
## @skip postgresql.primary.initdb.scripts.create_roundcube_database.sh
## DO NOT EDIT Script to create the Roundcube database
scripts:
create_roundcube_database.sh: |
#!/bin/bash
# set -o errexit
# set -o nounset
# set -o pipefail
info "Running DB initialisation..."
info "Creating database ${ROUNDCUBE_DB_NAME}..."
echo "CREATE DATABASE \"$ROUNDCUBE_DB_NAME\"" | postgresql_execute "" "postgres" "$POSTGRES_POSTGRES_PASSWORD"
info "Creating user ${ROUNDCUBE_DB_USER}"
echo "CREATE ROLE \"${ROUNDCUBE_DB_USER}\" WITH LOGIN CREATEDB PASSWORD '${ROUNDCUBE_DB_PW}';" | postgresql_execute "" "postgres" "$POSTGRES_POSTGRES_PASSWORD"
info "Granting access to \"${ROUNDCUBE_DB_USER}\" to the database \"${ROUNDCUBE_DB_NAME}\""
echo "GRANT ALL PRIVILEGES ON DATABASE \"${ROUNDCUBE_DB_NAME}\" TO \"${ROUNDCUBE_DB_USER}\"\;" | postgresql_execute "" "postgres" "$POSTGRES_POSTGRES_PASSWORD"
echo "ALTER DATABASE \"${ROUNDCUBE_DB_NAME}\" OWNER TO \"${ROUNDCUBE_DB_USER}\"\;" | postgresql_execute "" "postgres" "$POSTGRES_POSTGRES_PASSWORD"
info "Setting ownership for the 'public' schema database \"${ROUNDCUBE_DB_NAME}\" to \"${ROUNDCUBE_DB_USER}\""
echo "ALTER SCHEMA public OWNER TO \"${ROUNDCUBE_DB_USER}\"\;" | postgresql_execute "$ROUNDCUBE_DB_NAME" "postgres" "$POSTGRES_POSTGRES_PASSWORD"
persistence:
enabled: false
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi
## @param postgresql.metrics.image.repository PostgreSQL metrics exporter image (using bitnamilegacy for now)
metrics:
image:
repository: bitnamilegacy/postgres-exporter
## @param postgresql.volumePermissions.image.repository PostgreSQL volume permissions image (using bitnamilegacy for now)
volumePermissions:
image:
repository: bitnamilegacy/os-shell
## @param persistence.single_pvc Setings for a single volume for all apps.
## Set single_pvc: false to use a per app volume and set the properties in <app>.persistence (ex. admin.persistence)
## @param persistence.size Size of the persistent volume claim (for single PVC)
## @param persistence.accessModes Access mode of backing PVC (for single PVC)
## @param persistence.annotations Annotations for the PVC (for single PVC)
## @param persistence.hostPath Path to mount the volume at on the host
## @param persistence.existingClaim Name of existing PVC (for single PVC)
## @param persistence.storageClass Storage class of backing PVC (for single PVC)
## @param persistence.claimNameOverride Override the name of the PVC (for single PVC)
persistence:
single_pvc: true
size: 100Gi
accessModes: [ReadWriteOnce]
annotations: {}
hostPath: ""
existingClaim: ""
storageClass: ""
claimNameOverride: ""
## @section Ingress settings
## Set external ingress config
ingress:
## @param ingress.enabled Enable external ingress
enabled: true
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
ingressClassName: ""
## @param ingress.pathType Ingress path type
pathType: ImplementationSpecific
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
apiVersion: ""
## @param ingress.path Default path for the ingress record
path: /
## @param ingress.annotations [object] Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
## Use this parameter to set the required annotations for cert-manager, see
## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
## e.g:
## annotations:
## kubernetes.io/ingress.class: nginx
## cert-manager.io/cluster-issuer: cluster-issuer-name
annotations: {}
## @param ingress.tls Enable TLS configuration for the hosts defined at `hostnames` parameter
## TLS certificates will be retrieved from a TLS secret with name: `{{ printf "%s-certificates" (include "mailu.fullname" . ) }}`
## You can:
## - Use the `ingress.secrets` parameter to create this TLS secret
## - Rely on cert-manager to create it by setting the corresponding annotations
## - Rely on Helm to create self-signed certificates by setting `ingress.tls=true` and `ingress.certManager=false`
tls: true
## @param ingress.existingSecret Name of an existing Secret containing the TLS certificates for the Ingress
## If empty, the expected secret name will be `{{ printf "%s-certificates" (include "mailu.fullname" . ) }}`
existingSecret: ""
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
selfSigned: false
## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
## e.g:
## extraHosts:
## - name: mailu.local
## path: /
extraHosts: []
## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
## e.g:
## extraPaths:
## - path: /*
## backend:
## serviceName: ssl-redirect
## servicePort: use-annotation
extraPaths: []
## @param ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
## e.g:
## extraTls:
## - hosts:
## - mailu.local
## secretName: mailu.local-tls
extraTls: []
## @param ingress.secrets Custom TLS certificates as secrets
## NOTE: 'key' and 'certificate' are expected in PEM format
## NOTE: 'name' should line up with a 'secretName' set further up
## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days (if `ingress.selfSigned=true`)
## It is also possible to create and manage the certificates outside of this Helm chart
## Please see README.md for more information
## e.g:
## secrets:
## - name: mailu.local-tls
## key: |-
## -----BEGIN RSA PRIVATE KEY-----
## ...
## -----END RSA PRIVATE KEY-----
## certificate: |-
## -----BEGIN CERTIFICATE-----
## ...
## -----END CERTIFICATE-----
secrets: []
## @param ingress.extraRules Additional rules to be covered with this ingress record
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
## e.g:
## extraRules:
## - host: mailu.local
## http:
## path: /
## backend:
## service:
## name: example-svc
## port:
## name: http
extraRules: []
## @param ingress.realIpHeader Sets the value of `REAL_IP_HEADER` environment variable in the `front` pod
realIpHeader: X-Forwarded-For
## @param ingress.tlsFlavorOverride Overrides the value of `TLS_FLAVOR` environment variable in the `front` pod
## This is normally auto-detected, only change it if you know what you are doing.
tlsFlavorOverride: ""
## @section Proxy auth configuration
## ref: https://mailu.io/master/configuration.html#header-authentication-using-an-external-proxy
proxyAuth:
## @param proxyAuth.whitelist Comma separated list of CIDRs of proxies to trust for authentication
whitelist: ""
## @param proxyAuth.header HTTP header containing the email address of the user to authenticate
header: "X-Auth-Email"
## @param proxyAuth.create Whether non-existing accounts should be auto-created
create: "false"
## @section Frontend load balancer for non-HTTP(s) services
front:
## @param front.logLevel Override default log level
logLevel: ""
## Pod image
## @param front.image.repository Pod image repository
## @param front.image.tag Pod image tag (defaults to `mailuVersion` if set, otherwise `Chart.AppVersion`)
## @param front.image.pullPolicy Pod image pull policy
image:
repository: mailu/nginx
tag: ""
pullPolicy: IfNotPresent
## front.controller.kind Deployment only supported for now
# controller:
# kind: Deployment
## @param front.hostPort.enabled Expose front mail ports via hostPort
hostPort:
enabled: true
## Expose front mail ports via external service (ClusterIP or LoadBalancer)
## @param front.externalService.enabled Expose front mail ports via external service (ClusterIP or LoadBalancer)
## @param front.externalService.type Service type (ClusterIP or LoadBalancer)
## @param front.externalService.externalTrafficPolicy Service externalTrafficPolicy (Cluster or Local)
## @param front.externalService.externalIPs Service externalIPs
## @param front.externalService.loadBalancerIP Service loadBalancerIP
## @param front.externalService.annotations Service annotations
## @param front.externalService.labels Service labels
## @param front.externalService.ports.pop3 Expose POP3 port - 110/tcp
## @param front.externalService.ports.pop3s Expose POP3 port (TLS) - 995/tcp
## @param front.externalService.ports.imap Expose IMAP port - 143/tcp
## @param front.externalService.ports.imaps Expose IMAP port (TLS) - 993/tcp
## @param front.externalService.ports.smtp Expose SMTP port - 25/tcp
## @param front.externalService.ports.smtps Expose SMTP port (TLS) - 465/tcp
## @param front.externalService.ports.submission Expose Submission port - 587/tcp
## @param front.externalService.ports.manageSieve Expose ManageSieve port - 4190/tcp
## @param front.externalService.nodePorts.pop3 NodePort to use for POP3 (defaults to 110/tcp)
## @param front.externalService.nodePorts.pop3s NodePort to use for POP3 (TLS) (defaults to 995/tcp)
## @param front.externalService.nodePorts.imap NodePort to use for IMAP (defaults to 143/tcp)
## @param front.externalService.nodePorts.imaps NodePort to use for IMAP (TLS) (defaults to 993/tcp)
## @param front.externalService.nodePorts.smtp NodePort to use for SMTP (defaults to 25/tcp)
## @param front.externalService.nodePorts.smtps NodePort to use for SMTP (TLS) (defaults to 465/tcp)
## @param front.externalService.nodePorts.submission NodePort to use for Submission (defaults to 587/tcp)
## @param front.externalService.nodePorts.manageSieve NodePort to use for ManageSieve (defaults to 4190/tcp)
externalService:
enabled: false
type: ClusterIP
## Example for LoadBalancer:
## type: LoadBalancer
loadBalancerIP: ""
externalTrafficPolicy: Local
externalIPs: []
annotations: {}
labels: {}
ports:
pop3: false
pop3s: true
imap: false
imaps: true
smtp: true
smtps: true
submission: false
manageSieve: true
nodePorts:
pop3: 110
pop3s: 995
imap: 143
imaps: 993
smtp: 25
smtps: 465
submission: 587
manageSieve: 4190
## @section ProxyProtocol configuration
## If the front service is sitting behind a load balancer that supports
## PROXY protocol (e.g. HAPROXY, AWS ELB/ALB), you can enable it here.
## This will make Mailu aware of the original client IP address.
## ref: https://mailu.io/master/configuration.html#proxy-protocol
proxyProtocol:
## @param front.proxyProtocol.enabled Enable PROXY protocol support in the `front` pod
enabled: false
## @param front.proxyProtocol.realIpFrom Sets the value of `REAL_IP_FROM` environment variable in the `front` pod
## This should be set to the CIDR(s) of the load balancer(s) in front of Mailu
## or pod that forwards traffic to Mailu supporting PROXY protocol.
## For example, if using an Ingress controller, this should be set to the
## pod CIDR of the cluster.
realIpFrom: "10.42.0.0/16"
## @param front.proxyProtocol.ports.pop3 Enable PROXY protocol for POP3 (110/tcp)
## @param front.proxyProtocol.ports.pop3s Enable PROXY protocol for POP3S (995/tcp)
## @param front.proxyProtocol.ports.imap Enable PROXY protocol for IMAP (143/tcp)
## @param front.proxyProtocol.ports.imaps Enable PROXY protocol for IMAPS (993/tcp)
## @param front.proxyProtocol.ports.smtp Enable PROXY protocol for SMTP (25/tcp)
## @param front.proxyProtocol.ports.smtps Enable PROXY protocol for SMTPS (465/tcp)
## @param front.proxyProtocol.ports.submission Enable PROXY protocol for Submission (587/tcp)
## @param front.proxyProtocol.ports.manageSieve Enable PROXY protocol for ManageSieve (4190/tcp)
## Enabling any of these requires to have ingress.realIpFrom set
ports:
pop3: false
pop3s: false
imap: false
imaps: false
smtp: false
smtps: false
submission: false
manageSieve: false
## @param front.kind Kind of resource to create for the front (`Deployment` or `DaemonSet`)
kind: Deployment
## @param front.replicaCount Number of front replicas to deploy (only for `Deployment` kind)
replicaCount: 1
## Pod resource requests and limits
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## We usually recommend not to specify default resources and to leave this as a conscious
## choice for the user. This also increases chances charts run on environments with little
## resources, such as Minikube. If you do want to specify resources, uncomment the following
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
## @param front.resources.limits The resources limits for the container
## @param front.resources.requests The requested resources for the container
##
resources:
## Example:
## limits:
## cpu: 200m
## memory: 200Mi
limits: {}
## Examples:
## requests:
## cpu: 25m
## memory: 100Mi
requests: {}
## Liveness probe values
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
## @param front.livenessProbe.enabled Enable livenessProbe
## @param front.livenessProbe.failureThreshold Failure threshold for livenessProbe
## @param front.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param front.livenessProbe.periodSeconds Period seconds for livenessProbe
## @param front.livenessProbe.successThreshold Success threshold for livenessProbe
## @param front.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
livenessProbe:
enabled: true
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
## Readiness probe values
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
## @param front.readinessProbe.enabled Enable readinessProbe
## @param front.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## @param front.readinessProbe.periodSeconds Period seconds for readinessProbe
## @param front.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## @param front.readinessProbe.failureThreshold Failure threshold for readinessProbe
## @param front.readinessProbe.successThreshold Success threshold for readinessProbe
readinessProbe:
enabled: true
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
## Startup probe values
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
## @param front.startupProbe.enabled Enable startupProbe
## @param front.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
## @param front.startupProbe.periodSeconds Period seconds for startupProbe
## @param front.startupProbe.timeoutSeconds Timeout seconds for startupProbe
## @param front.startupProbe.failureThreshold Failure threshold for startupProbe
## @param front.startupProbe.successThreshold Success threshold for startupProbe
startupProbe:
enabled: false
failureThreshold: 30
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
## @param front.podLabels Add extra labels to pod
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}
## @param front.podAnnotations Add extra annotations to the pod
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}
## ref: https://kubernetes.io/docs/user-guide/node-selection/
## @param front.nodeSelector Node labels selector for pod assignment
nodeSelector: {}
## @param front.initContainers Add additional init containers to the pod
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
## e.g:
## initContainers:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
## command: ['sh', '-c', 'echo "hello world"']
initContainers: []
## @param front.priorityClassName Pods' priorityClassName
priorityClassName: ""
## @param front.podSecurityContext.enabled Enabled pods' Security Context
## @param front.podSecurityContext.fsGroup Set pods' Security Context fsGroup
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
podSecurityContext:
enabled: false
fsGroup: 1001
## @param front.containerSecurityContext.enabled Enabled containers' Security Context
## @param front.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
## @param front.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
containerSecurityContext:
enabled: false
runAsUser: 1001
runAsNonRoot: false
## @param front.terminationGracePeriodSeconds In seconds, time given to the pod to terminate gracefully
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
terminationGracePeriodSeconds: 2
## @param front.affinity Affinity for front pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
## @param front.tolerations Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
## @param front.revisionHistoryLimit Configure the revisionHistoryLimit of the deployment
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#revision-history-limit
revisionHistoryLimit: 3
## @param front.hostAliases Pod pod host aliases
## ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
hostAliases: []
## @param front.schedulerName Name of the k8s scheduler (other than default)
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
schedulerName: ""
# Service parameters
service:
## @param front.service.annotations Admin service annotations
annotations: {}
## @param front.topologySpreadConstraints Topology Spread Constraints for pod assignment
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
topologySpreadConstraints: []
## Strategy to use to update Pods
## @param front.updateStrategy.type Strategy to use to update Pods
## `Recreate` or `RollingUpdate` if `front.kind=Deployment`
## `OnDelete` or `RollingUpdate` if `front.kind=DaemonSet`
updateStrategy:
type: RollingUpdate
## @param front.extraEnvVars Extra environment variable to pass to the running container
## For example:
## extraEnvVars:
## - name: MY_ENV_VAR
## value: env_var_value
extraEnvVars: []
## @param front.extraEnvVarsCM Name of existing ConfigMap containing extra environment variables to mount in the pod
extraEnvVarsCM: ""
## @param front.extraEnvVarsSecret Name of existing Secret containing extra environment variables to mount in the pod
extraEnvVarsSecret: ""
## @param front.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the pod
extraVolumeMounts: []
## @param front.extraVolumes Optionally specify extra list of additional volumes for the pod(s)
extraVolumes: []
## @param front.extraContainers Add additional containers to the pod
extraContainers: []
## @param front.overrides Enable front overrides
## Example:
## overrides:
## mta-sts.conf: |
## # More info here: https://mailu.io/master/faq.html#how-do-i-setup-a-mta-sts-policy
## location ^~ /.well-known/mta-sts.txt {
## return 200 "version: STSv1\nmode: enforce\nmax_age: 1296000\nmx: mailu.example.com\n";
## }
overrides: {}
## @section Admin parameters
admin:
## @param admin.enabled Enable access to the admin interface
enabled: true
## @param admin.uri URI to access the admin interface
uri: /admin
## @param admin.logLevel Override default log level
logLevel: ""
## Pod image
## @param admin.image.repository Pod image repository
## @param admin.image.tag Pod image tag (defaults to `mailuVersion` if set, otherwise `Chart.AppVersion`)
## @param admin.image.pullPolicy Pod image pull policy
image:
repository: mailu/admin
tag: ""
pullPolicy: IfNotPresent
## Pod persistence (if not using single_pvc)
## @param admin.persistence.size Pod pvc size
## @param admin.persistence.storageClass Pod pvc storage class
## @param admin.persistence.accessModes Pod pvc access modes
## @param admin.persistence.claimNameOverride Pod pvc name override