Skip to content
Snippets Groups Projects
Verified Commit 04b8b83d authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Implement secret/configmap

parent dc35f8e1
No related branches found
No related tags found
No related merge requests found
apiVersion: v2
name: greenlight
description: A Helm chart for Kubernetes
description: A Helm chart for installing greenlight on Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
......@@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "1.0.0"
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "greenlight.fullname" . }}-config
labels:
{{- include "greenlight.labels" . | nindent 4 }}
data:
{{- range $key, $val := .Values.config }}
{{ $key }}: {{ $val | quote}}
{{- end }}
......@@ -5,9 +5,6 @@ metadata:
labels:
{{- include "greenlight.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "greenlight.selectorLabels" . | nindent 6 }}
......@@ -47,6 +44,11 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
envFrom:
- configMapRef:
name: {{ .Release.Name }}-config
- secretRef:
name: {{ .Release.Name }}-secret
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
......
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "greenlight.fullname" . }}
labels:
{{- include "greenlight.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "greenlight.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "greenlight.fullname" . }}-secret
labels:
{{- include "greenlight.labels" . | nindent 4 }}
data:
{{- range $key, $val := .Values.secret }}
{{ $key }}: {{ $val | quote}}
{{- end }}
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "greenlight.fullname" . }}-test-connection"
labels:
{{- include "greenlight.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "greenlight.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
# Default values for greenlight.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: nginx
repository: bigbluebutton/greenlight
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "release-2.10.0"
imagePullSecrets: []
nameOverride: ""
......@@ -68,15 +62,66 @@ resources: {}
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
secret:
BIGBLUEBUTTON_SECRET: "BIGBLUEBUTTON_SECRET"
SECRET_KEY_BASE: "SECRET_KEY_BASE"
# GOOGLE_OAUTH2_SECRET: ""
# OFFICE365_SECRET: ""
# LDAP_PASSWORD: ""
# SMTP_PASSWORD: ""
# DB_PASSWORD: ""
config:
BIGBLUEBUTTON_ENDPOINT: "BIGBLUEBUTTON_ENDPOINT"
# GOOGLE_OAUTH2_ID: ""
# GOOGLE_OAUTH2_HD: ""
# OFFICE365_KEY: ""
# OFFICE365_HD: ""
# LDAP_SERVER: ""
# LDAP_PORT: 389
# LDAP_METHOD: plain
# LDAP_UID: uid
# LDAP_BASE: "LDAP_BASE"
# LDAP_BIND_DN: "LDAP_BIND_DN"
# LDAP_ROLE_FIELD: ""
# ALLOW_GREENLIGHT_ACCOUNTS: true
# RECAPTCHA_SITE_KEY: ""
# RECAPTCHA_SECRET_KEY: ""
# GOOGLE_ANALYTICS_TRACKING_ID: ""
# SMTP_SERVER: ""
# SMTP_PORT: ""
# SMTP_DOMAIN: ""
# SMTP_USERNAME: ""
# SMTP_AUTH: ""
# SMTP_STARTTLS_AUTO: ""
# SMTP_SENDER: ""
ROOM_FEATURES: mute-on-join,require-moderator-approval,anyone-can-start,all-join-moderator
PAGINATION_NUMBER: 25
NUMBER_OF_ROWS: 25
ENABLE_GOOGLE_CALENDAR_BUTTON: false
MAINTENANCE_MODE: false
# MAINTENANCE_WINDOW: ""
# REPORT_ISSUE_URL: #https://github.com/bigbluebutton/greenlight/issues/new
DB_ADAPTER: postgresql
DB_HOST: "localhost"
DB_NAME: greenlight
DB_USERNAME: greenlight
DEFAULT_REGISTRATION: open
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment