mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
7b6fd5910a
commit
50612fc259
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user