forked from mattermost/mattermost-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
254 lines (224 loc) · 7.93 KB
/
values.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
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
# Default values for mattermost-team-edition.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image:
repository: mattermost/mattermost-team-edition
tag: 9.5.1@sha256:96b7bb9da5e659a9482825338c720102ea2a45f6bcb43ecf30994ca12b70d036
imagePullPolicy: IfNotPresent
initContainerImage:
repository: appropriate/curl
tag: latest
imagePullPolicy: IfNotPresent
## Deployment Strategy
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
deploymentStrategy:
type: RollingUpdate
rollingUpdate: null
## How many old ReplicaSets for Mattermost Deployment you want to retain
revisionHistoryLimit: 1
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
## ref: https://docs.gitlab.com/ee/install/requirements.html#storage
##
persistence:
## This volume persists generated data from users, like images, attachments...
##
data:
enabled: true
size: 10Gi
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
# storageClass:
accessMode: ReadWriteOnce
# existingClaim: ""
plugins:
enabled: true
size: 1Gi
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
# storageClass:
accessMode: ReadWriteOnce
# existingClaim: ""
service:
type: ClusterIP
externalPort: 8065
internalPort: 8065
annotations: {}
# loadBalancerIP:
loadBalancerSourceRanges: []
ingress:
enabled: false
className: ""
path: /
annotations: {}
# kubernetes.io/ingress.class: nginx
# certmanager.k8s.io/issuer: your-issuer
# nginx.ingress.kubernetes.io/proxy-body-size: 50m
# nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
# nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
# nginx.ingress.kubernetes.io/proxy-buffering: "on"
# nginx.ingress.kubernetes.io/configuration-snippet: |
# proxy_cache mattermost_cache;
# proxy_cache_revalidate on;
# proxy_cache_min_uses 2;
# proxy_cache_use_stale timeout;
# proxy_cache_lock on;
#### To use the nginx cache you will need to set an http-snippet in the ingress-nginx configmap
#### http-snippet: |
#### proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m use_temp_path=off;
hosts:
- mattermost.example.com
tls:
# - secretName: mattermost.example.com-tls
# hosts:
# - mattermost.example.com
route:
enabled: false
## If use this please disable the mysql chart by setting mysql.enable to false
externalDB:
enabled: false
## postgres or mysql
externalDriverType: ""
## postgres: "<USERNAME>:<PASSWORD>@<HOST>:5432/<DATABASE_NAME>?sslmode=disable&connect_timeout=10"
## mysql: "<USERNAME>:<PASSWORD>@tcp(<HOST>:3306)/<DATABASE_NAME>?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s"
externalConnectionString: ""
mysql:
enabled: true
mysqlRootPassword: ""
mysqlUser: ""
mysqlPassword: ""
mysqlDatabase: mattermost
repository: mysql
imageTag: '8.0.18'
testFramework:
enabled: false
persistence:
enabled: true
## 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)
##
storageClass: ""
accessMode: ReadWriteOnce
size: 10Gi
# existingClaim: ""
## Additional pod annotations
extraPodAnnotations: {}
## Additional env vars
extraEnvVars: []
# This is an example of extra env vars when using with the deployment with GitLab Helm Charts
# - name: POSTGRES_PASSWORD_GITLAB
# valueFrom:
# secretKeyRef:
# # NOTE: Needs to be manually created
# # kubectl create secret generic gitlab-postgresql-password --namespace <NAMESPACE> --from-literal postgres-password=<PASSWORD>
# name: gitlab-postgresql-password
# key: postgres-password
# - name: POSTGRES_USER_GITLAB
# value: gitlab
# - name: POSTGRES_HOST_GITLAB
# value: gitlab-postgresql
# - name: POSTGRES_PORT_GITLAB
# value: "5432"
# - name: POSTGRES_DB_NAME_MATTERMOST
# value: mm5
# - name: MM_SQLSETTINGS_DRIVERNAME
# value: "postgres"
# - name: MM_SQLSETTINGS_DATASOURCE
# value: postgres://$(POSTGRES_USER_GITLAB):$(POSTGRES_PASSWORD_GITLAB)@$(POSTGRES_HOST_GITLAB):$(POSTGRES_PORT_GITLAB)/$(POSTGRES_DB_NAME_MATTERMOST)?sslmode=disable&connect_timeout=10
## Additional init containers
extraInitContainers: []
# This is an example of extra Init Container when using with the deployment with GitLab Helm Charts
# - name: bootstrap-database
# image: "postgres:9.6-alpine"
# imagePullPolicy: IfNotPresent
# env:
# - name: POSTGRES_PASSWORD_GITLAB
# valueFrom:
# secretKeyRef:
# name: gitlab-postgresql-password
# key: postgres-password
# - name: POSTGRES_USER_GITLAB
# value: gitlab
# - name: POSTGRES_HOST_GITLAB
# value: gitlab-postgresql
# - name: POSTGRES_PORT_GITLAB
# value: "5432"
# - name: POSTGRES_DB_NAME_MATTERMOST
# value: mm5
# command:
# - sh
# - "-c"
# - |
# if PGPASSWORD=$POSTGRES_PASSWORD_GITLAB psql -h $POSTGRES_HOST_GITLAB -p $POSTGRES_PORT_GITLAB -U $POSTGRES_USER_GITLAB -lqt | cut -d \| -f 1 | grep -qw $POSTGRES_DB_NAME_MATTERMOST; then
# echo "database already exist, exiting initContainer"
# exit 0
# else
# echo "Database does not exist. creating...."
# PGPASSWORD=$POSTGRES_PASSWORD_GITLAB createdb -h $POSTGRES_HOST_GITLAB -p $POSTGRES_PORT_GITLAB -U $POSTGRES_USER_GITLAB $POSTGRES_DB_NAME_MATTERMOST
# echo "Done"
# fi
# Add additional volumes and mounts, for example to add SAML keys in the app or other files the app server may need to access
extraVolumes: []
# - hostPath:
# path: /var/log
# name: varlog
extraVolumeMounts: []
# - name: varlog
# mountPath: /host/var/log
# readOnly: true
# Add additional ports to be exposed in the mattermost container (for plugins that start their own webservers)
extraPorts: []
# - name: matternelle
# port: 8585
# protocol: TCP
# Array of extra objects to deploy with the release
extraDeploy: []
## Node selector
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
## Affinity
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
## Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
## Pod Security Context
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext:
# fsGroup: 2000
# runAsGroup: 2000
# runAsUser: 2000
serviceAccount:
create: false
name:
annotations: {}
## Configuration
## The config here will be injected as environment variables in the deployment
## Please refer to https://docs.mattermost.com/administration/config-settings.html#configuration-in-database for more information
## You can add any config here, but need to respect the format: MM_<GROUPSECTION>_<SETTING>. ie: MM_SERVICESETTINGS_ENABLECOMMANDS: false
config:
MM_PLUGINSETTINGS_CLIENTDIRECTORY: "./client/plugins"
## Configure startup, liveness and readiness probes
startupProbe:
initialDelaySeconds: 10
failureThreshold: 30
timeoutSeconds: 5
periodSeconds: 10
livenessProbe:
initialDelaySeconds: 1
failureThreshold: 3
timeoutSeconds: 5
periodSeconds: 10
readinessProbe:
initialDelaySeconds: 15
failureThreshold: 3
timeoutSeconds: 5
periodSeconds: 10
## Additional annotations for test job
testJob:
annotations: {}