NOTES.txt 1.58 KB
Newer Older
1 2
{{- $bl := empty .Values.influxURL }}
{{- if not $bl }}
3 4
Kapacitor can be accessed via port 9092 on the following DNS name from within your cluster:

5
  http://{{ template "kapacitor.fullname" . }}.{{ .Release.Namespace }}:9092
6

7
You can connect to the remote instance from a local Kapacitor CLI. Forward the API port to localhost:9092:
8

9
  kubectl port-forward --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "kapacitor.fullname" . }} -o jsonpath='{ .items[0].metadata.name }') 9092:9092
10

11
You can also connect to the container running Kapacitor. To open a shell session in the pod, run the following:
12

13
  kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "kapacitor.fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
14

15
To view the logs for the Kapacitor pod, run the following:
16

17
  kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "kapacitor.fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
18 19 20

{{- if eq .Values.service.type "LoadBalancer" }}

21
To watch for the LoadBalancer IP or Hostname to populate, run the following:
22

23
  kubectl get service -w --namespace {{ .Release.Namespace }} -l app={{ template "kapacitor.fullname" . }}
24 25 26 27
{{- end }}
{{- end }}

{{- if empty .Values.influxURL }}
28 29
You have not set .Values.influxURL. Kapacitor needs an InfluxDB instance to create a subscription on. Please set that value to deploy Kapacitor. (See README for more information.)
{{- end }}