[stable/rocketchat] Upgrade to RocketChat 1.0.3 (#13758)

Update to new version of RocketChat and enable MongoDB replica set
since it's required for version 1.x.

Signed-off-by: Simon Rüegg <simon.ruegg@vshn.ch>
This commit is contained in:
Simon Rüegg
2019-05-15 01:42:23 -07:00
committed by Kubernetes Prow Robot
parent 2306d41533
commit fa7547486b
5 changed files with 24 additions and 8 deletions
+3 -4
View File
@@ -1,8 +1,7 @@
name: rocketchat
version: 1.0.0
appVersion: 0.74.3
description: Prepare to take off with the ultimate chat platform, experience the next
level of team communications
version: 1.1.0
appVersion: 1.0.3
description: Prepare to take off with the ultimate chat platform, experience the next level of team communications
keywords:
- chat
- communication
+3 -1
View File
@@ -5,7 +5,7 @@
## TL;DR;
```console
$ helm install stable/rocketchat --set mongodb.mongodbPassword=$(echo -n $(openssl rand -base64 32))
$ helm install stable/rocketchat --set mongodb.mongodbPassword=$(echo -n $(openssl rand -base64 32)),mongodb.mongodbRootPassword=$(echo -n $(openssl rand -base64 32))
```
## Introduction
@@ -52,6 +52,7 @@ Parameter | Description | Default
`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 | `""`
`externalMongodbUrl` | MongoDB URL if using an externally provisioned MongoDB | `""`
`externalMongodbOplogUrl` | MongoDB OpLog URL if using an externally provisioned MongoDB. Required if `externalMongodbUrl` is set | `""`
`mongodb.enabled` | Enable or disable MongoDB dependency. Refer to the [stable/mongodb docs](https://github.com/helm/charts/tree/master/stable/mongodb#configuration) for more information | `true`
`persistence.enabled` | Enable persistence using a PVC. This is not necessary if you're using the default (and recommended) [GridFS](https://rocket.chat/docs/administrator-guides/file-upload/) file storage | `false`
`persistence.storageClass` | Storage class of the PVC to use | `""`
@@ -91,6 +92,7 @@ Rocket.Chat uses a MongoDB instance to presist its data.
By default, the [MongoDB](https://github.com/kubernetes/charts/tree/master/stable/mongodb) chart is deployed and configured as database.
Please refer to this chart for additional MongoDB configuration options.
Make sure to set at least the `mongodb.mongodbRootPassword`, `mongodb.mongodbUsername` and `mongodb.mongodbPassword` values.
> **WARNING**: The root credentials are used to connect to the MongoDB OpLog
#### Using an External Database
+6 -1
View File
@@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: 1
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "rocketchat.name" . }}
@@ -42,6 +42,11 @@ spec:
secretKeyRef:
name: {{ template "rocketchat.fullname" . }}
key: mongo-uri
- name: MONGO_OPLOG_URL
valueFrom:
secretKeyRef:
name: {{ template "rocketchat.fullname" . }}
key: mongo-oplog-uri
{{- if .Values.host }}
- name: ROOT_URL
value: https://{{ .Values.host }}
+4
View File
@@ -14,11 +14,15 @@ data:
{{- end }}
{{- if .Values.externalMongodbUrl }}
mongo-uri: {{ .Values.externalMongodbUrl | b64enc | quote }}
mongo-oplog-uri: {{ required "Please specify the external MongoDB OpLog URL" .Values.externalMongodbOplogUrl | b64enc | quote }}
{{- else }}
{{- $fullname := include "mongodb.fullname" . -}}
{{- $username := required "Please specify a MongoDB username" .Values.mongodb.mongodbUsername }}
{{- $password := required "Please specify a MongoDB password" .Values.mongodb.mongodbPassword }}
{{- $rootPassword := required "Please specify a MongoDB password" .Values.mongodb.mongodbRootPassword }}
{{- $rsName := .Values.mongodb.replicaSet.name }}
{{- $port := .Values.mongodb.service.port }}
{{- $dbname := required "Please specify a MongoDB database" .Values.mongodb.mongodbDatabase }}
mongo-uri: {{ printf "mongodb://%s:%s@%s-mongodb:%.0f/%s" $username $password $fullname $port $dbname | b64enc | quote }}
mongo-oplog-uri: {{ printf "mongodb://root:%s@%s-mongodb:%.0f/local?replicaSet=%s&authSource=admin" $rootPassword $fullname $port $rsName | b64enc | quote }}
{{- end }}
+8 -2
View File
@@ -2,8 +2,8 @@
## ref: https://hub.docker.com/r/rocketchat/rocket.chat/tags
##
image:
repository: rocketchat/rocket.chat
tag: 0.74.3
repository: docker.io/library/rocket.chat
tag: 1.0.3
pullPolicy: IfNotPresent
## Host for the application
@@ -28,6 +28,7 @@ extraEnv: # |
## MongoDB URL if using an externally provisioned MongoDB
externalMongodbUrl: # mongodb://user:password@localhost:27017/rocketchat
externalMongodbOplogUrl: # mongodb://user:password@localhost:27017/local?replicaSet=rs0&authSource=admin
##
## MongoDB chart configuration
@@ -42,6 +43,11 @@ mongodb:
mongodbUsername: rocketchat
# mongodbPassword:
mongodbDatabase: rocketchat
replicaSet:
enabled: true
# key:
persistence:
enabled: true
## mongodb data Persistent Volume Storage Class