add grafana

This commit is contained in:
Andrey Kartashov 2019-11-16 00:41:35 +07:00
parent a52920d835
commit 115ccc0214
6 changed files with 61 additions and 0 deletions

2
apps/system/grafana/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
requirements.lock
charts/

View file

@ -0,0 +1 @@
name: grafana

View file

@ -0,0 +1,4 @@
dependencies:
- name: grafana
version: 4.0.3
repository: '@stable'

View file

@ -0,0 +1,31 @@
grafana:
# 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:
certmanager.k8s.io/cluster-issuer: letsencrypt
hosts:
- grafana.gorilych.ru
tls:
- hosts:
- grafana.gorilych.ru
secretName: grafana-tls
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

View file

@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: grafana
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: grafana
server: https://kubernetes.default.svc
project: default
source:
path: apps/system/grafana
repoURL: git@github.com:gorilych/gf-k8s
syncPolicy:
automated:
prune: true
selfHeal: true

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: grafana