diff --git a/stable/chaoskube/Chart.yaml b/stable/chaoskube/Chart.yaml index 703f6432ff..fe011c4ef4 100755 --- a/stable/chaoskube/Chart.yaml +++ b/stable/chaoskube/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: chaoskube -version: 3.2.1 -appVersion: 0.14.0 +version: 3.3.0 +appVersion: 0.21.0 description: Chaoskube periodically kills random pods in your Kubernetes cluster. icon: https://raw.githubusercontent.com/linki/chaoskube/master/chaoskube.png home: https://github.com/linki/chaoskube diff --git a/stable/chaoskube/README.md b/stable/chaoskube/README.md index d5ab2a7e82..b80558ff4c 100644 --- a/stable/chaoskube/README.md +++ b/stable/chaoskube/README.md @@ -46,6 +46,7 @@ $ helm install stable/chaoskube --set dryRun=false | `replicas` | number of replicas to run | 1 | | `interval` | interval between pod terminations | 10m | | `labels` | label selector to filter pods by | "" (matches everything) | +| `kinds` | OwnerReference's Kind selector to filter pods by | "" (matches everything) | | `annotations` | annotation selector to filter pods by | "" (matches everything) | | `namespaces` | namespace selector to filter pods by | "" (all namespaces) | | `dryRun` | don't kill pods, only log what would have been done | true | diff --git a/stable/chaoskube/templates/deployment.yaml b/stable/chaoskube/templates/deployment.yaml index 7bc5fdc1e1..79ab510167 100644 --- a/stable/chaoskube/templates/deployment.yaml +++ b/stable/chaoskube/templates/deployment.yaml @@ -28,6 +28,9 @@ spec: args: - --interval={{ .Values.interval }} - --labels={{ .Values.labels }} + {{- if .Values.kinds }} + - --kinds={{ .Values.kinds }} + {{- end }} - --annotations={{ .Values.annotations }} - --namespaces={{ .Values.namespaces }} {{- if not .Values.dryRun }} diff --git a/stable/chaoskube/values.yaml b/stable/chaoskube/values.yaml index a8a6140108..c04898b399 100644 --- a/stable/chaoskube/values.yaml +++ b/stable/chaoskube/values.yaml @@ -5,7 +5,7 @@ name: chaoskube image: quay.io/linki/chaoskube # docker image tag -imageTag: v0.14.0 +imageTag: v0.21.0 ## secrets for pulling images from a private docker registry. # imagePullSecrets: @@ -20,6 +20,9 @@ interval: 10m # label selector to filter pods by, e.g. app=foo,stage!=prod labels: +# kinds selector to filter pods by, e.g. '!DaemonSet' (use quotes) +kinds: + # annotation selector to filter pods by, e.g. chaos.alpha.kubernetes.io/enabled=true annotations: