mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
add grafana
This commit is contained in:
parent
a52920d835
commit
115ccc0214
6 changed files with 61 additions and 0 deletions
2
apps/system/grafana/.gitignore
vendored
Normal file
2
apps/system/grafana/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
requirements.lock
|
||||
charts/
|
||||
1
apps/system/grafana/Chart.yaml
Normal file
1
apps/system/grafana/Chart.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
name: grafana
|
||||
4
apps/system/grafana/requirements.yaml
Normal file
4
apps/system/grafana/requirements.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
dependencies:
|
||||
- name: grafana
|
||||
version: 4.0.3
|
||||
repository: '@stable'
|
||||
31
apps/system/grafana/values.yaml
Normal file
31
apps/system/grafana/values.yaml
Normal 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
|
||||
19
main/templates/grafana.yaml
Normal file
19
main/templates/grafana.yaml
Normal 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
|
||||
4
main/templates/namespace-grafana.yaml
Normal file
4
main/templates/namespace-grafana.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: grafana
|
||||
Loading…
Reference in a new issue