-
Notifications
You must be signed in to change notification settings - Fork 11
/
node-restart.yaml
28 lines (28 loc) · 1015 Bytes
/
node-restart.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: node-restart
spec:
version: "v1.0.1"
platforms:
- selector:
matchExpressions:
- {key: os, operator: In, values: [darwin, linux]}
uri: https://github.com/MnrGreg/kubectl-node-restart/releases/download/v1.0.1/v1.0.1.zip
sha256: "3ab20f10179111f54410f4ac41ef15231aeba6e7bf6a24b7cf3a54d30a293ce4"
files:
- from: "*.sh"
to: "."
- from: "LICENSE"
to: "."
bin: "node-restart.sh"
shortDescription: >-
Restart cluster nodes sequentially and gracefully
homepage: https://github.com/mnrgreg/kubectl-node-restart
caveats: |
Execution of this plugin requires Kubernetes cluster-admin Rolebindings
and the ability to schedule Privileged Pods.
description: |
This plugin performs a sequential, rolling restart of selected nodes by first
draining each node, then running a Kubernetes Job to reboot each node, and
finally uncordoning each node when Ready.