Update template/stacks/monitoring/kube-prometheus/values.yaml
This commit is contained in:
parent
88d599a691
commit
0f8282ead6
1 changed files with 14 additions and 7 deletions
|
@ -30,7 +30,7 @@ grafana:
|
||||||
|
|
||||||
grafana.ini:
|
grafana.ini:
|
||||||
server:
|
server:
|
||||||
domain: {{{ .Env.DOMAIN }}}
|
domain: factory-172-18-0-2.traefik.me
|
||||||
root_url: "%(protocol)s://%(domain)s/grafana"
|
root_url: "%(protocol)s://%(domain)s/grafana"
|
||||||
serve_from_sub_path: true
|
serve_from_sub_path: true
|
||||||
auth:
|
auth:
|
||||||
|
@ -41,19 +41,26 @@ grafana:
|
||||||
enabled: true
|
enabled: true
|
||||||
name: Keycloak-OAuth
|
name: Keycloak-OAuth
|
||||||
allow_sign_up: true
|
allow_sign_up: true
|
||||||
client_id: grafana-oauth
|
client_id: $__file{/etc/secrets/auth_generic_oauth/client_id}
|
||||||
#client_secret: todo need to be set elsewhere
|
client_secret: $__file{/etc/secrets/auth_generic_oauth/client_secret}
|
||||||
scopes: openid email profile offline_access roles
|
scopes: openid email profile offline_access roles
|
||||||
email_attribute_path: email
|
email_attribute_path: email
|
||||||
login_attribute_path: username
|
login_attribute_path: username
|
||||||
name_attribute_path: full_name
|
name_attribute_path: full_name
|
||||||
tls_skip_verify_insecure: true
|
tls_skip_verify_insecure: true
|
||||||
auth_url: https://{{{ .Env.DOMAIN }}}/keycloak/realms/cnoe/protocol/openid-connect/auth
|
auth_url: https://factory-172-18-0-2.traefik.me/keycloak/realms/cnoe/protocol/openid-connect/auth
|
||||||
token_url: https://{{{ .Env.DOMAIN }}}/keycloak/realms/cnoe/protocol/openid-connect/token
|
token_url: https://factory-172-18-0-2.traefik.me/keycloak/realms/cnoe/protocol/openid-connect/token
|
||||||
api_url: https://{{{ .Env.DOMAIN }}}/keycloak/realms/cnoe/protocol/openid-connect/userinfo
|
api_url: https://factory-172-18-0-2.traefik.me/keycloak/realms/cnoe/protocol/openid-connect/userinfo
|
||||||
redirect_uri: http://{{{ .Env.DOMAIN }}}/grafana/login/generic_oauth
|
redirect_uri: http://factory-172-18-0-2.traefik.me/grafana/login/generic_oauth
|
||||||
role_attribute_path: contains(roles[*], 'admin') && 'Admin' || contains(roles[*], 'editor') && 'Editor' || 'Viewer'
|
role_attribute_path: contains(roles[*], 'admin') && 'Admin' || contains(roles[*], 'editor') && 'Editor' || 'Viewer'
|
||||||
|
|
||||||
|
extraSecretMounts:
|
||||||
|
- name: auth-generic-oauth-secret-mount
|
||||||
|
secretName: auth-generic-oauth-secret
|
||||||
|
defaultMode: 0440
|
||||||
|
mountPath: /etc/secrets/auth_generic_oauth
|
||||||
|
readOnly: true
|
||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
# If true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
|
# If true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in a new issue