Skip to content

Commit fc2defa

Browse files
committed
add support for Adding Cpu and Mem resources for mattermost
1 parent b7e9570 commit fc2defa

2 files changed

Lines changed: 142 additions & 0 deletions

File tree

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
mattermost-operator:
2+
mattermostOperator:
3+
enabled: true
4+
replicas: 1
5+
rbac:
6+
create: true
7+
serviceAccount:
8+
create: true
9+
env:
10+
maxReconcilingInstallations: 20
11+
maxReconcilingConcurrency: 10
12+
requeuOnLimitDelay: 20s
13+
image:
14+
repository: mattermost/mattermost-operator
15+
tag: v1.23.0
16+
pullPolicy: IfNotPresent
17+
args:
18+
- --enable-leader-election
19+
- --metrics-addr=0.0.0.0:8383
20+
mattermost:
21+
name: mattermost
22+
image: mattermost/mattermost-team-edition
23+
imagePullPolicy: IfNotPresent
24+
version: 10.11.4
25+
size: 150users
26+
resources:
27+
limits:
28+
cpu: '5'
29+
memory: 8Gi
30+
requests:
31+
cpu: 500m
32+
memory: 500Mi
33+
useServiceLoadBalancer: false
34+
serviceAnnotations: {}
35+
ingress:
36+
enabled: true
37+
host: chat.com
38+
tlsSecret: chat.com
39+
annotations:
40+
kubernetes.io/tls-acme: "true"
41+
cert-manager.io/cluster-issuer: letsencrypt
42+
kubernetes.io/ingress.class: traefik-cert-manager
43+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
44+
mattermostEnv:
45+
- name: MM_FILESETTINGS_AMAZONS3SSE
46+
value: "true"
47+
- name: MM_FILESETTINGS_AMAZONS3SSL
48+
value: "true"
49+
- name: MM_GITLABSETTINGS_ENABLE
50+
value: "true"
51+
- name: MM_GITLABSETTINGS_ID
52+
value: "mattermost"
53+
- name: MM_GITLABSETTINGS_SECRET
54+
value: "random123"
55+
- name: MM_GITLABSETTINGS_USERAPIENDPOINT
56+
value: "https://keycloak.com/auth/realms/company/protocol/openid-connect/userinfo"
57+
- name: MM_GITLABSETTINGS_AUTHENDPOINT
58+
value: "https://keycloak.com/auth/realms/company/protocol/openid-connect/auth"
59+
- name: MM_GITLABSETTINGS_TOKENENDPOINT
60+
value: "https://keycloak.com/auth/realms/company/protocol/openid-connect/token"
61+
- name: MM_TEAMSETTINGS_RESTRICTCREATIONTODOMAINS
62+
value: "enableit.dk"
63+
- name: MM_EMAILSETTINGS_SENDPUSHNOTIFICATIONS
64+
value: "true"
65+
- name: MM_EMAILSETTINGS_PUSHNOTIFICATIONSERVER
66+
value: "https://push-test.mattermost.com"
67+
- name: MM_SERVICESETTINGS_SITEURL
68+
value: "https://chat.com"
69+
- name: MM_SERVICESETTINGS_COLLAPSEDTHREADS
70+
value: "default_on"
71+
- name: MM_SERVICESETTINGS_THREADAUTOFOLLOW
72+
value: "true"
73+
- name: MM_SERVICESETTINGS_ENABLELINKPREVIEWS
74+
value: "true"
75+
- name: MM_SERVICESETTINGS_RESTRICTLINKPREVIEWS
76+
value: "github.com"
77+
- name: MM_SERVICESETTINGS_ENABLEAPIUSERDELETION
78+
value: "true"
79+
- name: MM_PLUGINSETTINGS_ENABLE
80+
value: "true"
81+
- name: MM_PLUGINSETTINGS_PLUGINS
82+
value: |
83+
{
84+
"mattermost-autolink": {
85+
"EnableAdminCommand": true,
86+
"EnableOnUpdate": true,
87+
"Links": [
88+
{
89+
"DisableNonWordPrefix": false,
90+
"DisableNonWordSuffix": false,
91+
"Disabled": false,
92+
"Name": "ticket",
93+
"Pattern": "(?P<ticket_id>TCK[0-9]{7})",
94+
"Scope": null,
95+
"Template": "[ticket${ticket_id}](https://meet.jit.si)"
96+
}
97+
- name: MM_PLUGINSETTINGS_PLUGINSTATES
98+
value: |
99+
{
100+
"com.github.matterpoll.matterpoll": {
101+
"Enable": true
102+
},
103+
"com.github.moussetc.mattermost.plugin.giphy": {
104+
"Enable": true
105+
},
106+
"com.mattermost.apps": {
107+
"Enable": true
108+
},
109+
"mattermost-autolink": {
110+
"Enable": true
111+
},
112+
"memes": {
113+
"Enable": true
114+
},
115+
"com.gitlab.itk.fr.matternelle": {
116+
"Enable": true
117+
}
118+
}
119+
licenseSecret: "" # Set your secret name if using enterprise license
120+
database:
121+
external:
122+
secret: db-credentials # Name of Kubernetes secret for DB connection string
123+
fileStore:
124+
external:
125+
url: bucket.com
126+
bucket: mattermost
127+
secret: file-store-credentials # Name of Kubernetes secret for file store credentials
128+
129+
postgres:
130+
size: 20Gi
131+
instance: 2
132+
pass: mattermost-pgsql-app
133+
storageClass: zfs-localpv
134+
logicalbackup:
135+
enabled: true
136+
s3bucket: "logical-backup-kam"
137+
provider: "s3"
138+
s3endpoint: "https://bucket.com"
139+
retension: "30"

argocd-helm-charts/mattermost-operator/templates/mattermost-installation.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
imagePullPolicy: {{ .Values.mattermost.imagePullPolicy | default "IfNotPresent" }}
88
version: {{ .Values.mattermost.version | default "10.9.4" }}
99
size: {{ .Values.mattermost.size | default "5000users" }}
10+
scheduling:
11+
resources:
12+
{{ toYaml .Values.mattermost.resources | indent 6 }}
1013
useServiceLoadBalancer: {{ .Values.mattermost.useServiceLoadBalancer | default false }}
1114
serviceAnnotations:
1215
{{- if .Values.mattermost.serviceAnnotations }}

0 commit comments

Comments
 (0)