File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 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
32
43To add or remove taint of a node from a in-cluster pod.
54
6- Compile
7- ---------
5+ ## Compile
86
97```
108GOOS=linux GOARCH=amd64 go build -o taintmanager taintmanager.go
119```
1210
13- Development and Debug
14- -----------------------
11+ ## Development and Debug
1512
1613The dev/debug environment is setup by ` tilt ` . To start, run ` tilt up ` .
1714
18-
19- Test
20- -------
15+ ## Test
2116
2217The ` test ` directory contains YAML files for deploy a pod with required permissions to run taintmanager.
2318Please 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
33metadata :
44 name : taintmanager
55rules :
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
55metadata :
66 name : taintmanager
77subjects :
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
1212roleRef :
1313 # "roleRef" specifies the binding to a Role / ClusterRole
1414 kind : ClusterRole # this must be Role or ClusterRole
You can’t perform that action at this time.
0 commit comments