forked from mattermost/mattermost-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
181 lines (164 loc) · 6.27 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
# Default values for mattermost-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# The values below are for mattermost Custom Resource
# Full spec example can be found here: https://github.com/mattermost/mattermost-operator/blob/master/docs/examples/mattermost_full.yaml
# Examples for mattermost spec can be found here: https://github.com/mattermost/mattermost-operator/tree/master/docs/examples
# Enable the database, file storage operatorManaged below to run with in cluster database and file storage (not recommended for production scenario).
mattermostCR:
enabled: false
name: mattermost-example
spec:
version: 7.2.0
replicas: 1
ingress:
enabled: true
host: example.mattermost-example.com
# database:
# operatorManaged: # Operator managed database allows configuration of replicas, storage size and resource requirements. If the `size` is specified, it will override those values.
# replicas: 1
# resources:
# requests:
# cpu: 250m
# memory: 512Mi
# storageSize: 50Gi
# type: mysql
# fileStore:
# operatorManaged: # Operator managed file store allows configuration of replicas, storage size and resource requirements. If the `size` is specified, it will override those values.
# replicas: 1
# resources:
# requests:
# cpu: 150m
# memory: 512Mi
# storageSize: 50Gi
# The values below are for the mattermost operator
mattermostOperator:
enabled: true
replicas: 1
rbac:
create: true
serviceAccount:
create: true
env:
maxReconcilingInstallations: 20
requeuOnLimitDelay: 20s
image:
repository: mattermost/mattermost-operator
tag: v1.18.0
pullPolicy: IfNotPresent
args:
- --enable-leader-election
## Specify image pull secret for private repository
##
privateRegistry:
enabled: false
imagePullSecret: <name of the secret>
### IMPORTANT: Below operators should be deployed separately in production environments. ###
minioOperator:
enabled: false
replicas: 1
appName: minio
namespace: minio-operator
rbac:
create: true
serviceAccount:
create: true
image:
repository: minio/k8s-operator
tag: 1.0.7
pullPolicy: IfNotPresent
mysqlOperator:
enabled: false
replicas: 1
appName: mysql
namespace: mysql-operator
rbac:
create: true
serviceAccount:
create: true
image:
repository: quay.io/presslabs/mysql-operator
tag: 0.4.0
pullPolicy: IfNotPresent
## Configuration for Mysql operator fs group
##
fsGroup: 777
## Configuration for Mysql operator extra args
##
extraArgs: []
## Configuration for Mysql operator service
##
service:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
## Configuration for Mysql operator statefulset
##
statefulSet:
annotations:
checksum/config: 4b7db0b6281fab87fd1fe282fa4f2f521dbcb5a9486a7589396701e825a9fbb9
checksum/secret: cf656f56e9efe9eaab93bc378aa1783d4ac5585ec82b5a5f5380c1c228cb5f02
## Configuration for Mysql operator sidecar
##
sidecar:
image:
repository: quay.io/presslabs/mysql-operator-sidecar
tag: 0.4.0
## Configuration for Probes
##
readinessProbeTimeout: 10
readinessProbeInitialDelay: 0
livenessProbeTimeout: 10
livenessProbeInitialDelay: 200
## Configuration for Mysql operator orchestrator
##
orchestrator:
config:
ApplyMySQLPromotionAfterMasterFailover: false
Debug: false
BackendDB: sqlite
DetachLostReplicasAfterMasterFailover: true
DetectClusterAliasQuery: "SELECT CONCAT(SUBSTRING(@@hostname, 1, LENGTH(@@hostname) - 1 - LENGTH(SUBSTRING_INDEX(@@hostname,'-',-2))),'.',SUBSTRING_INDEX(@@report_host,'.',-1))"
DetectInstanceAliasQuery: "SELECT @@hostname"
DiscoverByShowSlaveHosts: false
FailMasterPromotionIfSQLThreadNotUpToDate: true
HTTPAdvertise: "http://{{ .Env.HOSTNAME }}-svc:80"
HostnameResolveMethod: none
InstancePollSeconds: 5
ListenAddress: ":3000"
MasterFailoverDetachReplicaMasterHost: true
MySQLHostnameResolveMethod: "@@report_host"
MySQLTopologyCredentialsConfigFile: "/etc/orchestrator/orc-topology.cnf"
ProcessesShellCommand: "sh"
RecoverMasterClusterFilters: ['.*']
RecoverIntermediateMasterClusterFilters: ['.*']
RecoveryPeriodBlockSeconds: 300
RemoveTextFromHostnameDisplay: ":3306"
RecoveryIgnoreHostnameFilters: []
RaftNodes: []
SQLite3DataFile: "/var/lib/orchestrator/orc.db"
SlaveLagQuery: "SELECT TIMESTAMPDIFF(SECOND,ts,NOW()) as drift FROM sys_operator.heartbeat ORDER BY drift ASC LIMIT 1"
UnseenInstanceForgetHours: 1
OnFailureDetectionProcesses:
- "/usr/local/bin/orc-helper event -w '{failureClusterAlias}' 'OrcFailureDetection' 'Failure: {failureType}, failed host: {failedHost}, lost replcas: {lostReplicas}' || true"
- "/usr/local/bin/orc-helper failover-in-progress '{failureClusterAlias}' '{failureDescription}' || true"
PostIntermediateMasterFailoverProcesses:
- "/usr/local/bin/orc-helper event '{failureClusterAlias}' 'OrcPostIntermediateMasterFailover' 'Failure type: {failureType}, failed hosts: {failedHost}, slaves: {countSlaves}' || true"
PostMasterFailoverProcesses:
- "/usr/local/bin/orc-helper event '{failureClusterAlias}' 'OrcPostMasterFailover' 'Failure type: {failureType}, new master: {successorHost}, slaves: {slaveHosts}' || true"
PostUnsuccessfulFailoverProcesses:
- "/usr/local/bin/orc-helper event -w '{failureClusterAlias}' 'OrcPostUnsuccessfulFailover' 'Failure: {failureType}, failed host: {failedHost} with {countSlaves} slaves' || true"
PreFailoverProcesses:
# as backup in case the first request fails
- "/usr/local/bin/orc-helper failover-in-progress '{failureClusterAlias}' '{failureDescription}' || true"
image:
repository: quay.io/presslabs/mysql-operator-orchestrator
tag: 0.4.0
pullPolicy: IfNotPresent
## Configuration for Mysql operator persistent volume
##
persistentVolume:
accessModes: [ReadWriteOnce]
size: 10Gi
topology:
user: "b3JjaGVzdHJhdG9y"
password: "Nnc2NHBhaGJzUA=="