-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use env variables for domain/email
- Loading branch information
Showing
1 changed file
with
43 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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} |