Kube-spot has to be able to run kubectl drain (#4730)

* Kube-spot has to be able to run kubectl drain

One of the main functions of kube-spot is running the kubectl drain command. This needs more extensive rights to kubernetes. It has to be able to list everything running on a node + evict those things.

* Bump chart
This commit is contained in:
Mattias Gees
2018-04-13 13:58:59 -07:00
committed by k8s-ci-robot
parent f63467f954
commit ba29d0a608
2 changed files with 30 additions and 2 deletions
@@ -1,7 +1,7 @@
apiVersion: v1
description: Watch and action AWS spot termination events
name: kube-spot-termination-notice-handler
version: 0.2.0
version: 0.2.1
appVersion: 1.8.1-1
home: https://github.com/egeland/kube-spot-termination-notice-handler
source:
@@ -34,5 +34,33 @@ rules:
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- replicasets
- daemonsets
verbs:
- get
- list
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
- list
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- patch
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
{{- end -}}