Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rocketchat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The following table lists the configurable parameters of the Rocket.Chat chart a
| `smtp.port` | Port of the SMTP server | `587` |
| `extraEnv` | Extra environment variables for Rocket.Chat. Used with `tpl` function, so this needs to be a string | `""` |
| `extraSecret` | An already existing secret to be used by chat deployment. It needs to be a string | `""` |
| `extraEnvFromConfigMap` | An existing configMap to be used by chart deployment. It needs to be a string | `""` |
| `extraVolumes` | Extra volumes allowing inclusion of certificates or any sort of file that might be required (see bellow) | `[]` |
| `extraVolumeMounts` | Where the aforementioned extra volumes should be mounted inside the container | `[]` |
| `podAntiAffinity` | Pod anti-affinity can prevent the scheduler from placing RocketChat replicas on the same node. The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided. The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node. The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured. | `""` |
Expand Down Expand Up @@ -197,6 +198,10 @@ extraEnv: |
- name: MONGO_OPTIONS
value: '{"ssl": "true"}'
```
You can also use additional environment variables specified in a configMap, just reference an existing configmap.
```yaml
extraEnvFromConfigMap: name-of-configMap
```
### Specifying aditional volumes

Sometimes, it's needed to include extra sets of files by means of exposing
Expand Down
12 changes: 9 additions & 3 deletions rocketchat/templates/chat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ spec:
- name: rocketchat
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.extraSecret }}
{{- if or .Values.extraSecret .Values.extraEnvFromConfigMap}}
envFrom:
- secretRef:
name: {{ .Values.extraSecret }}
{{- if .Values.extraSecret }}
- secretRef:
name: {{ .Values.extraSecret }}
{{- end }}
{{- if .Values.extraEnvFromConfigMap }}
- configMapRef:
name: {{ .Values.extraEnvFromConfigMap }}
{{- end }}
{{- end }}
env:
- name: DEPLOY_PLATFORM
Expand Down
4 changes: 4 additions & 0 deletions rocketchat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ extraEnv:
# - name: MONGO_OPLOG_URL
# value: mongodb://oploguser:password@rocket-1:27017/local&replicaSet=rs0

# Extra config map for Rocket.Chat, uncomment to use
# Usefull to store non-sensitive data for configuring Rocket.Chat (e.g. Accounts_OAuth settings)
# extraEnvFromConfigMap: "some-configMap"

# Extra secret for Rocket.Chat, uncomment to use
# Usefull to store sensitive data for creating initial user (e.g. ADMIN_* env vars) or custom OAUTH settings (e.g. Accounts_OAuth_Custom_* env vars)
# extraSecret: "some-secret"
Expand Down