[stable/chaoskube] Add pod annotations (#9919)

* add annotations to pod

Signed-off-by: Rahul Varghese <rahul.varghese@qlik.com>

* Version Bump

Signed-off-by: Rahul Varghese <rahul.varghese@qlik.com>

* formatting values file

Signed-off-by: Rahul Varghese <rahul.varghese@qlik.com>
This commit is contained in:
Rahul Varghese
2018-12-12 03:52:03 -08:00
committed by Kubernetes Prow Robot
parent 61dfcec680
commit 91d190816e
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: chaoskube
version: 0.10.0
version: 0.11.0
appVersion: 0.10.0
description: Chaoskube periodically kills random pods in your Kubernetes cluster.
home: https://github.com/linki/chaoskube
+1
View File
@@ -61,6 +61,7 @@ $ helm install stable/chaoskube --set dryRun=false
| `tolerations` | Toleration labels for pod assignment | `[]` |
| `affinity` | Affinity settings for pod assignment | `{}` |
| `minimumAge` | Set minimum pod age to filter pod by | `0s` |
| `podAnnotations` | Annotations for the chaoskube pod | `{}` |
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 }}
{{- with .Values.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
containers:
- name: {{ .Values.name }}
+6
View File
@@ -75,3 +75,9 @@ affinity: {}
# labelSelector:
# matchLabels:
# app: chaoskube
podAnnotations: {}
## Annotations for the chaoskube pod.
# podAnnotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "8080"