Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
influxdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
influxdb
Commits
dd87a11b
Commit
dd87a11b
authored
Dec 01, 2016
by
Jack Zampolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address PR comments
parent
205827df
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
22 deletions
+28
-22
README.md
stable/kapacitor/README.md
+15
-15
NOTES.txt
stable/kapacitor/templates/NOTES.txt
+3
-2
deployment.yaml
stable/kapacitor/templates/deployment.yaml
+1
-1
service.yaml
stable/kapacitor/templates/service.yaml
+1
-0
values.yaml
stable/kapacitor/values.yaml
+8
-4
No files found.
stable/kapacitor/README.md
View file @
dd87a11b
...
@@ -44,25 +44,25 @@ The command removes all the Kubernetes components associated with the chart and
...
@@ -44,25 +44,25 @@ The command removes all the Kubernetes components associated with the chart and
## Configuration
## Configuration
The following tables lists the configurable parameters of the Kapacitor chart and
The following tables lists the configurable parameters of the Kapacitor chart and
the
ir default values
.
the
meaning of the field. The default values are listed in
`values.yaml`
.
```
yaml
```
yaml
image.repository
:
"
kapacitor"
image.repository
:
Docker image repo to use
image.tag
:
"
1.1.0"
image.tag
:
Docker image tag to use
image.pullPolicy
:
"
IfNotPresent"
image.pullPolicy
:
Image pull policy (IfNotPresent, Always)
service.type
:
NodePort
service.type
:
Type of service (NodePort, LoadBalancer)
persistence.enabled
:
false
persistence.enabled
:
Set to
true
to enable automatic provisioning of a persistent disk
persistence.storageClass
:
generic
persistence.storageClass
:
Sorage class for the persistent disk
persistence.accessMode
:
ReadWriteOnce
persistence.accessMode
:
Access mode for the persistent disk
persistence.size
:
8G
i
persistence.size
:
Size of the persistent disk in Gi or M
i
resources.requests.memory
:
256Mi
resources.requests.memory
:
Min amount of memory the pod requires
resources.requests.cpu
:
0.1
resources.requests.cpu
:
Min amount of cpu required by the pod
resources.limits.memory
:
2Gi
resources.limits.memory
:
Max amount of memory the pod requires
resources.limits.cpu
:
2
resources.limits.cpu
:
Max amount of cpu required by the pod
# This is the location where kapacitor will look for an Influxdb
# This is the location where kapacitor will look for an Influxdb
# instance to create a subscription on.
# instance to create a subscription on.
InfluxURL
:
http://influxdb-influxdb.tick:8086
influxURL
:
An InfluxDB url with port.
```
```
The
[
full image documentation
](
https://hub.docker.com/_/kapacitor/
)
contains more information about running Kapacitor in docker.
The
[
full image documentation
](
https://hub.docker.com/_/kapacitor/
)
contains more information about running Kapacitor in docker.
...
@@ -71,7 +71,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
...
@@ -71,7 +71,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
```
bash
```
bash
$
helm
install
--name
my-release
\
$
helm
install
--name
my-release
\
--set
I
nfluxURL
=
http://myinflux.mytld:8086,persistence.enabled
=
true
\
--set
i
nfluxURL
=
http://myinflux.mytld:8086,persistence.enabled
=
true
\
stable/kapacitor
stable/kapacitor
```
```
...
...
stable/kapacitor/templates/NOTES.txt
View file @
dd87a11b
...
@@ -10,13 +10,13 @@ You can also connect to the container running Kapacitor. To open a shell session
...
@@ -10,13 +10,13 @@ You can also connect to the container running Kapacitor. To open a shell session
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
To t
r
ail the logs for the Kapacitor pod run the following:
To tail the logs for the Kapacitor pod run the following:
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
{{- if eq .Values.service.type "LoadBalancer" }}
{{- if eq .Values.service.type "LoadBalancer" }}
To watch for the LoadBalancer IP
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" . }}
- kubectl get svc -w --namespace {{ .Release.Namespace }} -l app={{ template "fullname" . }}
{{- end }}
{{- end }}
\ No newline at end of file
stable/kapacitor/templates/deployment.yaml
View file @
dd87a11b
...
@@ -22,7 +22,7 @@ spec:
...
@@ -22,7 +22,7 @@ spec:
-
name
:
KAPACITOR_HOSTNAME
-
name
:
KAPACITOR_HOSTNAME
value
:
{{
template "fullname" .
}}
.{{ .Release.Namespace }}
value
:
{{
template "fullname" .
}}
.{{ .Release.Namespace }}
-
name
:
KAPACITOR_INFLUXDB_0_URLS_0
-
name
:
KAPACITOR_INFLUXDB_0_URLS_0
value
:
{{
.Values.
I
nfluxURL
}}
value
:
{{
.Values.
i
nfluxURL
}}
ports
:
ports
:
-
containerPort
:
9092
-
containerPort
:
9092
volumeMounts
:
volumeMounts
:
...
...
stable/kapacitor/templates/service.yaml
View file @
dd87a11b
...
@@ -12,5 +12,6 @@ spec:
...
@@ -12,5 +12,6 @@ spec:
ports
:
ports
:
-
port
:
9092
-
port
:
9092
targetPort
:
9092
targetPort
:
9092
name
:
api
selector
:
selector
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "fullname" .
}}
stable/kapacitor/values.yaml
View file @
dd87a11b
...
@@ -6,13 +6,15 @@ image:
...
@@ -6,13 +6,15 @@ image:
tag
:
"
1.1.0"
tag
:
"
1.1.0"
pullPolicy
:
"
IfNotPresent"
pullPolicy
:
"
IfNotPresent"
## Specify a service type
## Specify a service type, defaults to NodePort
## NodePort is default
## ref: http://kubernetes.io/docs/user-guide/services/
## ref: http://kubernetes.io/docs/user-guide/services/
##
service
:
service
:
type
:
NodePort
type
:
NodePort
## Persist data to a persitent volume
## Persist data to a persitent volume
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
persistence
:
persistence
:
enabled
:
false
enabled
:
false
storageClass
:
generic
storageClass
:
generic
...
@@ -30,5 +32,7 @@ resources:
...
@@ -30,5 +32,7 @@ resources:
memory
:
2Gi
memory
:
2Gi
cpu
:
2
cpu
:
2
# Set url for kapacitor to point to
## Set the URL of InfluxDB instance to create subscription on
InfluxURL
:
http://influxdb-influxdb.tick:8086
## ref: https://docs.influxdata.com/kapacitor/v1.1/introduction/getting_started/
##
influxURL
:
http://influxdb-influxdb.tick:8086
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment