Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deploy grafana to production #37

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helm/grafana/values-e4ca1d-tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ grafana:
domain: sso-grafana-sandbox.apps.gold.devops.gov.bc.ca
root_url: https://sso-grafana-sandbox.apps.gold.devops.gov.bc.ca
auth.generic_oauth:
name: SSO Pathfinder Sandbox
auth_url: https://dev.sandbox.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/auth
token_url: https://dev.sandbox.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token

Expand Down
90 changes: 90 additions & 0 deletions helm/grafana/values-eb75ad-tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
grafana:
replicas: 1
persistence:
size: 1Gi

grafana.ini:
server:
domain: sso-grafana.apps.gold.devops.gov.bc.ca
root_url: https://sso-grafana.apps.gold.devops.gov.bc.ca
auth.generic_oauth:
name: SSO Pathfinder
auth_url: https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/auth
token_url: https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token

datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: SSO Logs
type: postgres
access: proxy
orgId: 1
url: kc-cron-patroni-readonly:5432
user: <please-replace-me>
database: <please-replace-me>
basicAuth: false
secureJsonData:
password: <please-replace-me>
jsonData:
sslmode: disable
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
timescaledb: false
- name: SSO Keycloak Dev
type: postgres
access: proxy
orgId: 1
url: sso-patroni-readonly.e4ca1d-dev.svc.cluster.local:5432
user: <please-replace-me>
database: <please-replace-me>
basicAuth: false
secureJsonData:
password: <please-replace-me>
jsonData:
sslmode: disable
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
timescaledb: false
- name: SSO Keycloak Test
type: postgres
access: proxy
orgId: 1
url: sso-patroni-readonly.e4ca1d-test.svc.cluster.local:5432
user: <please-replace-me>
database: <please-replace-me>
basicAuth: false
secureJsonData:
password: <please-replace-me>
jsonData:
sslmode: disable
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
timescaledb: false
- name: SSO Keycloak Prod
type: postgres
access: proxy
orgId: 1
url: sso-patroni-readonly.e4ca1d-prod.svc.cluster.local:5432
user: <please-replace-me>
database: <please-replace-me>
basicAuth: false
secureJsonData:
password: <please-replace-me>
jsonData:
sslmode: disable
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
timescaledb: false

route:
enabled: true
host: sso-grafana.apps.gold.devops.gov.bc.ca
14 changes: 7 additions & 7 deletions helm/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ grafana:

securityContext:
containerSecurityContext:
resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources:
limits:
cpu: 250m
memory: 256Mi
requests:
cpu: 150m
memory: 128Mi

persistence:
type: pvc
Expand Down
Loading