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

Pod Annotations on All Charts #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions chronograf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
# Include a hash of the secret in the pod template
# This means that if the secret changes, the deployment will be rolled
checksum/secret: {{ include (print .Template.BasePath "/secret.yaml") . | sha256sum }}
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}
Expand Down
11 changes: 8 additions & 3 deletions chronograf/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Image Settings
##
##
## ref: https://hub.docker.com/r/library/chronograf/tags/
image:
repository: "chronograf"
Expand Down Expand Up @@ -55,10 +55,15 @@ tolerations: []
##
affinity: {}

## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}

## Configure the ingress object to hook into existing infastructure
## ref : http://kubernetes.io/docs/user-guide/ingress/
## OPTIONALLY you can set .Values.ingress.secretName to set which secret to use
##
## OPTIONALLY you can set .Values.ingress.secretName to set which secret to use
##
ingress:
enabled: false
tls: false
Expand Down
3 changes: 3 additions & 0 deletions influxdb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
# Include a hash of the config in the pod template
# This means that if the config changes, the deployment will be rolled
checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }}
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
containers:
- name: {{ template "fullname" . }}
Expand Down
6 changes: 5 additions & 1 deletion influxdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ tolerations: []
##
affinity: {}

## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}

## Change InfluxDB configuration paramaters below:
## Defaults are indicated
## ref: https://docs.influxdata.com/influxdb/v1.7/administration/config/
Expand Down Expand Up @@ -168,4 +173,3 @@ config:
log_enabled: true
enabled: true
run_interval: 1s

3 changes: 3 additions & 0 deletions kapacitor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
# Include a hash of the config in the pod template
# This means that if the config changes, the deployment will be rolled
checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }}
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}
Expand Down
5 changes: 5 additions & 0 deletions kapacitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ tolerations: []
##
affinity: {}

## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}

## Set the URL of InfluxDB instance to create subscription on
## ref: https://docs.influxdata.com/kapacitor/v1.5/introduction/getting_started/
##
Expand Down
3 changes: 3 additions & 0 deletions telegraf-ds/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
# Include a hash of the configmap in the pod template
# This means that if the configmap changes, the deployment will be rolled
checksum/config: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
containers:
- name: {{ template "fullname" . }}
Expand Down
7 changes: 6 additions & 1 deletion telegraf-ds/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ resources:
##
tolerations: []

## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}

## Exposed telegraf configuration
## ref: https://docs.influxdata.com/telegraf/v1.8/administration/configuration/
config:
Expand Down Expand Up @@ -55,7 +60,7 @@ config:
url: "https://$HOSTIP:10250"
bearer_token: "/var/run/secrets/kubernetes.io/serviceaccount/token"
insecure_skip_verify: true
- docker:
- docker:
endpoint: "unix:///var/run/docker.sock"
timeout: "5s"
perdevice: true
Expand Down
3 changes: 3 additions & 0 deletions telegraf-s/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
# Include a hash of the configmap in the pod template
# This means that if the configmap changes, the deployment will be rolled
checksum/config: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
containers:
- name: {{ template "fullname" . }}
Expand Down
8 changes: 6 additions & 2 deletions telegraf-s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ tolerations: []
##
affinity: {}

## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}

## Configure the service for this telegraf instance. If you are running
## Any of the service plugins you will need this enabled
## Service Plugins: http_listener, statsd, tcp_listener, udp_listener
Expand Down Expand Up @@ -136,7 +141,7 @@ config:
## server: "localhost:4150"
## topic: "telegraf"
## data_format: "influx"

# CPU and System is required for chronograf
# This may show errors in the logs, but this does not affect performance or functionality
inputs:
Expand Down Expand Up @@ -400,4 +405,3 @@ config:
metric_separator: "_"
allowed_pending_messages: 10000
percentile_limit: 1000