Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
add githug oauth login for grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzplato committed Sep 10, 2020
1 parent df62885 commit 0c471ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions deployments/kubernetes/monitoring/grafana/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- name: GF_SERVER_DOMAIN
value: "{{ service_hostname }}"
- name: GF_SERVER_ROOT_URL
value: "http://{{ service_hostname }}/grafana"
value: "https://{{ service_hostname }}/grafana"
- name: GF_SERVER_SERVE_FROM_SUB_PATH
value: "true"
- name: GF_SERVER_HTTP_PORT
Expand All @@ -60,4 +60,15 @@ spec:
valueFrom:
secretKeyRef:
name: secrets-k8s-master
key: gf_admin_password
key: gf_admin_password
#GitHub Login
- name: GF_AUTH_GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
name: secrets-k8s-master
key: gf_auth_github_client_id
- name: GF_AUTH_GITHUB_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: secrets-k8s-master
key: gf_auth_github_client_secret
2 changes: 1 addition & 1 deletion deployments/kubernetes/monitoring/grafana/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Service
apiVersion: v1
metadata:
name: grafana-service
namespace: performance
namespace: monitoring
labels:
app: grafana
spec:
Expand Down

0 comments on commit 0c471ec

Please sign in to comment.