From 91d190816e11ab644e11c0e7c9cbb073cbbc2c4c Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Wed, 12 Dec 2018 17:22:03 +0530 Subject: [PATCH] [stable/chaoskube] Add pod annotations (#9919) * add annotations to pod Signed-off-by: Rahul Varghese * Version Bump Signed-off-by: Rahul Varghese * formatting values file Signed-off-by: Rahul Varghese --- stable/chaoskube/Chart.yaml | 2 +- stable/chaoskube/README.md | 1 + stable/chaoskube/templates/deployment.yaml | 4 ++++ stable/chaoskube/values.yaml | 6 ++++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/stable/chaoskube/Chart.yaml b/stable/chaoskube/Chart.yaml index 156b7486e4..5a2b614e0c 100755 --- a/stable/chaoskube/Chart.yaml +++ b/stable/chaoskube/Chart.yaml @@ -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 diff --git a/stable/chaoskube/README.md b/stable/chaoskube/README.md index 325ae20c35..598c4c765a 100644 --- a/stable/chaoskube/README.md +++ b/stable/chaoskube/README.md @@ -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): diff --git a/stable/chaoskube/templates/deployment.yaml b/stable/chaoskube/templates/deployment.yaml index 58bc8997e9..fb37486495 100644 --- a/stable/chaoskube/templates/deployment.yaml +++ b/stable/chaoskube/templates/deployment.yaml @@ -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 }} diff --git a/stable/chaoskube/values.yaml b/stable/chaoskube/values.yaml index 8410a6b1e0..5915554448 100644 --- a/stable/chaoskube/values.yaml +++ b/stable/chaoskube/values.yaml @@ -75,3 +75,9 @@ affinity: {} # labelSelector: # matchLabels: # app: chaoskube + +podAnnotations: {} + ## Annotations for the chaoskube pod. + # podAnnotations: + # prometheus.io/scrape: "true" + # prometheus.io/port: "8080"