mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/cerebro] Enables use of Cerebro provided auth (#14506)
* Adding auth options, based on env vars Imported from app, https://github.com/lmenezes/cerebro/blob/f2ed031fd89258c6ad85d40d846f5ff1f610fe73/conf/application.conf Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com> * Ability to use env vars from a secret reference Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com> * Update README with more info Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com> * Verison bump - new functionality Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com> * Update stable/cerebro/Chart.yaml Co-Authored-By: David J. M. Karlsen <davidkarlsen@gmail.com> Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
co-authored by
David J. M. Karlsen
parent
14b7034e9b
commit
7897a366d8
@@ -1,5 +1,5 @@
|
||||
name: cerebro
|
||||
version: 1.0.2
|
||||
version: 1.1.0
|
||||
appVersion: 0.8.3
|
||||
apiVersion: v1
|
||||
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
|
||||
|
||||
@@ -6,6 +6,7 @@ Cerebro is an open source (MIT License) elasticsearch web admin tool built using
|
||||
|
||||
This chart deploys Cerebro to your cluster via a Deployment and Service.
|
||||
Optionally you can also enable ingress.
|
||||
Optionally you can use cerebro provided auth by uploading a Secret with the needed env vars (don't forget to set `AUTH_TYPE`).
|
||||
|
||||
# Prerequisites
|
||||
|
||||
@@ -61,6 +62,7 @@ The following table lists the configurable parameters of the cerebro chart and t
|
||||
| `nodeSelector` | Settings for nodeselector | `{}` |
|
||||
| `tolerations` | Settings for toleration | `{}` |
|
||||
| `affinity` | Settings for affinity | `{}` |
|
||||
| `envFromSecretRef` | Reference to Secret with env vars | |
|
||||
| `config.basePath` | Application base path | `/` |
|
||||
| `config.restHistorySize` | Rest request history size per user | `50` |
|
||||
| `config.hosts` | A list of known hosts | `[]` |
|
||||
|
||||
@@ -28,6 +28,27 @@ data:
|
||||
}
|
||||
|
||||
auth = {
|
||||
# either basic or ldap
|
||||
type: ${?AUTH_TYPE}
|
||||
settings {
|
||||
# LDAP
|
||||
url = ${?LDAP_URL}
|
||||
base-dn = ${?LDAP_BASE_DN}
|
||||
method = ${?LDAP_METHOD}
|
||||
user-template = ${?LDAP_USER_TEMPLATE}
|
||||
bind-dn = ${?LDAP_BIND_DN}
|
||||
bind-pw = ${?LDAP_BIND_PWD}
|
||||
group-search {
|
||||
base-dn = ${?LDAP_GROUP_BASE_DN}
|
||||
user-attr = ${?LDAP_USER_ATTR}
|
||||
user-attr-template = ${?LDAP_USER_ATTR_TEMPLATE}
|
||||
group = ${?LDAP_GROUP}
|
||||
}
|
||||
|
||||
# Basic auth
|
||||
username = ${?BASIC_AUTH_USER}
|
||||
password = ${?BASIC_AUTH_PWD}
|
||||
}
|
||||
}
|
||||
|
||||
hosts = [
|
||||
|
||||
@@ -54,6 +54,11 @@ spec:
|
||||
mountPath: /var/db/cerebro
|
||||
- name: config
|
||||
mountPath: /etc/cerebro
|
||||
{{- if .Values.envFromSecretRef }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: "{{ .Values.envFromSecretRef }}"
|
||||
{{- end }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
|
||||
@@ -52,6 +52,9 @@ tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
# Reference to a Secret object with environment variables
|
||||
# envFromSecretRef: 'my-secret-ref'
|
||||
|
||||
config:
|
||||
basePath: '/'
|
||||
restHistorySize: 50
|
||||
|
||||
Reference in New Issue
Block a user