File tree 3 files changed +11
-16
lines changed
3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1
- In Cluster Taint Manager
2
- ==========================
1
+ # In Cluster Taint Manager
3
2
4
3
To add or remove taint of a node from a in-cluster pod.
5
4
6
- Compile
7
- ---------
5
+ ## Compile
8
6
9
7
```
10
8
GOOS=linux GOARCH=amd64 go build -o taintmanager taintmanager.go
11
9
```
12
10
13
- Development and Debug
14
- -----------------------
11
+ ## Development and Debug
15
12
16
13
The dev/debug environment is setup by ` tilt ` . To start, run ` tilt up ` .
17
14
18
-
19
- Test
20
- -------
15
+ ## Test
21
16
22
17
The ` test ` directory contains YAML files for deploy a pod with required permissions to run taintmanager.
23
18
Please change ` namespace ` field in ` clusterrolebinding.yaml ` before deploying to a cluster.
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ kind: ClusterRole
3
3
metadata :
4
4
name : taintmanager
5
5
rules :
6
- - apiGroups : [""] # "" indicates the core API group
7
- resources : ["nodes"]
8
- verbs : ["get", "update"]
6
+ - apiGroups : [""] # "" indicates the core API group
7
+ resources : ["nodes"]
8
+ verbs : ["get", "update"]
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ kind: ClusterRoleBinding
5
5
metadata :
6
6
name : taintmanager
7
7
subjects :
8
- # You can specify more than one "subject"
9
- - kind : ServiceAccount
10
- name : taintmanager
11
- namespace : default
8
+ # You can specify more than one "subject"
9
+ - kind : ServiceAccount
10
+ name : taintmanager
11
+ namespace : default
12
12
roleRef :
13
13
# "roleRef" specifies the binding to a Role / ClusterRole
14
14
kind : ClusterRole # this must be Role or ClusterRole
You can’t perform that action at this time.
0 commit comments