Skip to content

Commit

Permalink
fix: use env variables for domain/email
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Jun 6, 2024
1 parent 21bddc4 commit 65c1d78
Showing 1 changed file with 43 additions and 59 deletions.
102 changes: 43 additions & 59 deletions bso-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand All @@ -25,40 +21,6 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}
podLabels: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
port: 80

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down Expand Up @@ -87,31 +49,17 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false

# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true

nodeSelector: {}

tolerations: []

affinity: {}

environmentVariables:
- name: INFLUXDB2_TOKEN
valueFrom:
secretKeyRef:
name: token-secret
key: token
- name: DOMAIN
value: example.com
- name: EMAIL
value: [email protected]

ingress-nginx:
controller:
config:
Expand Down Expand Up @@ -214,12 +162,48 @@ grafana:
ingress:
enabled: true
hosts:
- example.com
- ${DOMAIN}
path: /grafana
ingressClassName: nginx
persistance:
enabled: true
grafana.ini:
domain: example.com
domain: ${DOMAIN}
root_url: "%(protocol)s://%(domain)s/grafana"
serve_from_sub_path: true
alerting:
rules.yaml:
apiVersion: 1
groups:
- orgId: 1
name: '{{ .Chart.Name }}_group'
interval: 60s
rules:
- uid: my_id_1
title: my_first_rule
condition: A
data:
- refId: A
datasourceUid: '-100'
model:
datasource:
type: influxdb
expression: 1==0
intervalMs: 1000
maxDataPoints: 43200
refId: A
type: math
dashboardUid: dashboard
panelId: 123
noDataState: Alerting
for: 60s
contactpoints.yaml:
- orgId: 1
name: admin
receivers:
- uid: admin
name: admin
type: email
settings:
addresses:
- ${EMAIL}

0 comments on commit 65c1d78

Please sign in to comment.