gf-k8s/apps/system/grafana/values.yaml
2020-06-20 21:19:52 +07:00

73 lines
1.7 KiB
YAML

grafana:
nameOverride: grafana
fullnameOverride: grafana
defaultDashboardsEnabled: false
enabled: true
serviceMonitor:
selfMonitor: false
# secret grafana should be created manually
# it should contain:
# admin-user
# admin-password
# GF_AUTH_GITHUB_CLIENT_SECRET
admin:
existingSecret: grafana
envFromSecret: grafana
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt
hosts:
- grafana.gorilych.ru
tls:
- hosts:
- grafana.gorilych.ru
secretName: grafana-tls
persistence:
enabled: true
type: pvc
existingClaim: grafana
resources:
#limits:
# cpu: 100m
# memory: 128Mi
requests:
cpu: 50m
memory: 128Mi
plugins:
# see also https://github.com/devopsprodigy/kubegraf#installation
- devopsprodigy-kubegraf-app
- grafana-piechart-panel
grafana.ini:
server:
root_url: https://grafana.gorilych.ru
auth.github:
enabled: true
allow_sign_up: false
client_id: 6494b9ed39a915d9ac20
# client_secret: in grafana secret
scopes: user:email,read:org
auth_url: https://github.com/login/oauth/authorize
token_url: https://github.com/login/oauth/access_token
api_url: https://api.github.com/user
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: default
folder: ''
type: file
disableDeletion: false
editable: true
allowUiUpdates: false
options:
path: /var/lib/grafana/dashboards/default
dashboards:
default:
nginx-ingress:
gnetId: 9614
revision: 1
datasource: Prometheus
sidecar:
datasources:
enabled: true