Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
kured --reboot-days (#52)
Browse files Browse the repository at this point in the history
* --reboot-days

* weaveworks/kured:master-4beddb5

* get latest version from master

* fix args
  • Loading branch information
Mathieu Benoit authored Nov 7, 2019
1 parent b9433b4 commit bbbbe3b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions kured-1.2.0-custom-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ rules:
# Allow kubectl to drain/uncordon
#
# NB: These permissions are tightly coupled to the bundled version of kubectl; the ones below
# match https://github.com/kubernetes/kubernetes/blob/v1.12.1/pkg/kubectl/cmd/drain.go
# match https://github.com/kubernetes/kubernetes/blob/v1.14.1/pkg/kubectl/cmd/drain/drain.go
#
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "patch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["list","delete","get"]
- apiGroups: ["extensions"]
- apiGroups: ["apps"]
resources: ["daemonsets"]
verbs: ["get"]
- apiGroups: [""]
Expand All @@ -43,7 +43,7 @@ metadata:
name: kured
rules:
# Allow kured to lock/unlock itself
- apiGroups: ["extensions"]
- apiGroups: ["apps"]
resources: ["daemonsets"]
resourceNames: ["kured"]
verbs: ["update"]
Expand Down Expand Up @@ -98,7 +98,7 @@ spec:
restartPolicy: Always
containers:
- name: kured
image: docker.io/weaveworks/kured:1.2.0
image: weaveworks/kured:master-4beddb5 #docker.io/weaveworks/kured:1.2.0
imagePullPolicy: IfNotPresent
securityContext:
privileged: true # Give permission to nsenter /proc/1/ns/mnt
Expand All @@ -111,6 +111,11 @@ spec:
fieldPath: spec.nodeName
command:
- /usr/bin/kured
args:
- --reboot-days=mon,tue,wed,thu,fri
- --start-time=9am
- --end-time=5pm
- --time-zone=America/Toronto
# - --alert-filter-regexp=^RebootRequired$
# - --blocking-pod-selector=runtime=long,cost=expensive
# - --blocking-pod-selector=name=temperamental
Expand Down

0 comments on commit bbbbe3b

Please sign in to comment.