Require user to set .Values.influxURL

This commit is contained in:
Jack Zampolin
2016-12-15 11:32:12 -08:00
parent f5a754f6c5
commit 7f331ef9e5
3 changed files with 12 additions and 2 deletions
+7
View File
@@ -1,3 +1,5 @@
{{- $bl := empty .Values.influxURL }}
{{- if not $bl }}
Kapacitor can be accessed via port 9092 on the following DNS name from within your cluster:
- http://{{ template "fullname" . }}.{{ .Release.Namespace }}:9092
@@ -19,4 +21,9 @@ To tail the logs for the Kapacitor pod run the following:
To watch for the LoadBalancer IP or Hostname to populate run the following:
- kubectl get svc -w --namespace {{ .Release.Namespace }} -l app={{ template "fullname" . }}
{{- end }}
{{- end }}
{{- if empty .Values.influxURL }}
You have not set .Values.influxURL. Kapacitor needs an InfluxDB instance to create a subscription on. Please set that value to deploy kapacitor
{{- end }}
+4 -1
View File
@@ -1,3 +1,5 @@
{{- $bl := empty .Values.influxURL }}
{{- if not $bl }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
@@ -37,4 +39,5 @@ spec:
claimName: {{ template "fullname" . }}
{{ else }}
emptyDir: {}
{{ end }}
{{ end }}
{{- end }}
+1 -1
View File
@@ -35,4 +35,4 @@ resources:
## Set the URL of InfluxDB instance to create subscription on
## ref: https://docs.influxdata.com/kapacitor/v1.1/introduction/getting_started/
##
influxURL: http://influxdb-influxdb.tick:8086
# influxURL: http://influxdb-influxdb.tick:8086