Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Merged
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: 3 additions & 2 deletions stable/rocketchat/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: rocketchat
version: 0.0.3
description: Prepare to take off with the ultimate chat platform, experience the next level of team communications
version: 0.1.0
description: Prepare to take off with the ultimate chat platform, experience the next
level of team communications
keywords:
- chat
- communication
Expand Down
8 changes: 4 additions & 4 deletions stable/rocketchat/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Rocket.Chat can be accessed via port 80 on the following DNS name from within your cluster:

- http://{{ template "fullname" . }}.{{ .Release.Namespace }}
- http://{{ template "rocketchat.fullname" . }}.{{ .Release.Namespace }}

You can easily connect to the remote instance from your browser. Forward the webserver port to localhost:8888

- kubectl port-forward --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath='{ .items[0].metadata.name }') 8888:3000
- kubectl port-forward --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "rocketchat.name" . }},release={{ .Release.Name }}" -o jsonpath='{ .items[0].metadata.name }') 8888:3000

You can also connect to the container running Rocket.Chat. To open a shell session in the pod run the following:

- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath='{.items[0].metadata.name}') /bin/sh
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "rocketchat.name" . }},release={{ .Release.Name }}" -o jsonpath='{.items[0].metadata.name}') /bin/sh

To trail the logs for the Rocket.Chat pod run the following:

- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath='{ .items[0].metadata.name }')
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "rocketchat.name" . }},release={{ .Release.Name }}" -o jsonpath='{ .items[0].metadata.name }')

{{- if .Values.ingress.enabled }}

Expand Down
6 changes: 3 additions & 3 deletions stable/rocketchat/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- define "rocketchat.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- define "rocketchat.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
Expand All @@ -19,6 +19,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "mongodb.fullname" -}}
{{- define "rocketchat.mongodb.fullname" -}}
{{- printf "%s-%s" .Release.Name "mongodb" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
16 changes: 8 additions & 8 deletions stable/rocketchat/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand All @@ -12,11 +12,11 @@ spec:
template:
metadata:
labels:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
release: "{{ .Release.Name }}"
spec:
containers:
- name: {{ template "fullname" . }}
- name: {{ template "rocketchat.fullname" . }}
image: "{{ .Values.image }}"
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
env:
Expand All @@ -30,10 +30,10 @@ spec:
{{ if .Values.mongodb.mongodbUsername }}
valueFrom:
secretKeyRef:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
key: mongo-uri
{{ else }}
value: mongodb://{{ template "mongodb.fullname" . }}:27017/rocketchat
value: mongodb://{{ template "rocketchat.mongodb.fullname" . }}:27017/rocketchat
{{ end }}
{{ if .Values.host }}
- name: ROOT_URL
Expand All @@ -42,7 +42,7 @@ spec:
- name: MAIL_URL
valueFrom:
secretKeyRef:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
key: mail-url
{{- range $key, $value := .Values.config }}
- name: {{ $key }}
Expand All @@ -66,7 +66,7 @@ spec:
- name: rocket-data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "fullname" . }}
claimName: {{ template "rocketchat.fullname" . }}
{{- else }}
emptyDir: {}
{{- end }}
Expand Down
8 changes: 4 additions & 4 deletions stable/rocketchat/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand All @@ -18,14 +18,14 @@ spec:
tls:
- hosts:
- {{ .Values.host }}
secretName: {{ template "fullname" . }}-tls
secretName: {{ template "rocketchat.fullname" . }}-tls
{{- end }}
rules:
- host: {{ .Values.host }}
http:
paths:
- path: /
backend:
serviceName: {{ template "fullname" . }}
serviceName: {{ template "rocketchat.fullname" . }}
servicePort: 3000
{{- end -}}
4 changes: 2 additions & 2 deletions stable/rocketchat/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
4 changes: 2 additions & 2 deletions stable/rocketchat/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
6 changes: 3 additions & 3 deletions stable/rocketchat/templates/svc.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "fullname" . }}
name: {{ template "rocketchat.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand All @@ -13,5 +13,5 @@ spec:
port: 3000
targetPort: http
selector:
app: {{ template "name" . }}
app: {{ template "rocketchat.name" . }}
release: "{{ .Release.Name }}"