Commit dd87a11b authored by Jack Zampolin's avatar Jack Zampolin

Address PR comments

parent 205827df
...@@ -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
their 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: 8Gi persistence.size: Size of the persistent disk in Gi or Mi
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 InfluxURL=http://myinflux.mytld:8086,persistence.enabled=true \ --set influxURL=http://myinflux.mytld:8086,persistence.enabled=true \
stable/kapacitor stable/kapacitor
``` ```
......
...@@ -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 trail 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
...@@ -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.InfluxURL }} value: {{ .Values.influxURL }}
ports: ports:
- containerPort: 9092 - containerPort: 9092
volumeMounts: volumeMounts:
......
...@@ -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" . }}
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment