[stable/chaoskube] Utilize the podAnnotations for Prometheus scraping (#11780)

* [stable/chaoskube] Utilize the podAnnotations value

Signed-off-by: Marc Sensenich <sensenichm91@gmail.com>

* [stable/chaoskube] Allow for specification of the metricsAddress

Signed-off-by: Marc Sensenich <sensenichm91@gmail.com>

* [stable/chaoskube] Update chart version to a 1.0.0 release due to being in stable

Signed-off-by: Marc Sensenich <sensenichm91@gmail.com>
This commit is contained in:
Marc Sensenich
2019-03-07 13:08:06 -08:00
committed by Kubernetes Prow Robot
parent 7b6fd5910a
commit 50612fc259
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: chaoskube
version: 0.14.0
version: 1.0.0
appVersion: 0.12.1
description: Chaoskube periodically kills random pods in your Kubernetes cluster.
icon: https://raw.githubusercontent.com/linki/chaoskube/master/chaoskube.png
+1
View File
@@ -63,6 +63,7 @@ $ helm install stable/chaoskube --set dryRun=false
| `minimumAge` | Set minimum pod age to filter pod by | `0s` |
| `podAnnotations` | Annotations for the chaoskube pod | `{}` |
| `gracePeriod` | grace period to give pods when terminating them | `-1s` (pod decides) |
| `metricsAddress` | Listening address for metrics handler | `:8080` |
Setting label and namespaces selectors from the shell can be tricky but is possible (example with zsh):
@@ -18,6 +18,10 @@ spec:
metadata:
labels:
{{ include "labels.standard" . | indent 8 }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
containers:
- name: {{ .Values.name }}
@@ -39,6 +43,7 @@ spec:
{{- end }}
- --minimum-age={{ .Values.minimumAge }}
- --grace-period={{ .Values.gracePeriod }}
- --metrics-address={{ .Values.metricsAddress }}
resources:
{{ toYaml .Values.resources | indent 12 }}
securityContext:
+3
View File
@@ -46,6 +46,9 @@ minimumAge: 0s
# grace period to give pods when terminating them (negative: pod decides)
gracePeriod: -1s
# Listening address for metrics handler
metricsAddress: :8080
priorityClassName: ""
# create service account with permission to list and kill pods