Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Set KAPACITOR_URL directly
Browse files Browse the repository at this point in the history
  • Loading branch information
devth committed Jun 1, 2017
1 parent f2a5108 commit e48a051
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions kapacitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ with Helm `post-install` and `post-upgrade` hooks. It's disabled by default. To
enable use:

```bash
$ helm install --name my-release \
helm install --name my-release \
--set "install_tick_scripts.enabled=true" \
--set "install_tick_scripts.tick_dir=/tick" \
--set "install_tick_scripts.kapacitorURL=http://kapacitor:9092" \
-f values.yaml stable/kapacitor
```

Expand Down
2 changes: 1 addition & 1 deletion kapacitor/templates/tickscript-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
data:
init.sh: |-
#!/usr/bin/env bash
export KAPACITOR_URL={{ .Values.install_tick_scripts.kapacitorURL }}
export KAPACITOR_URL="{{ template "fullname" . }}.{{ .Release.Namespace }}:9092"
ls -al $TICK_DIR
kapacitor list tasks
Expand Down
1 change: 0 additions & 1 deletion kapacitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ influxURL: http://data-influxdb.tick:8086
## tick_dir directory, if enabled.
##
install_tick_scripts:
kapacitorURL: http://kapacitor:9092
enabled: false
tick_dir: /tick

0 comments on commit e48a051

Please sign in to comment.