Skip to content

Commit fbe2f7b

Browse files
committed
feat(tke): add taints para
1 parent a937c36 commit fbe2f7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

website/docs/r/kubernetes_scale_worker.html.markdown

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ The following arguments are supported:
128128
* `labels` - (Optional, Map, ForceNew) Labels of kubernetes scale worker created nodes.
129129
* `mount_target` - (Optional, String, ForceNew) Mount target. Default is not mounting.
130130
* `pre_start_user_script` - (Optional, String, ForceNew) Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
131+
* `taints` - (Optional, List, ForceNew) Node taint.
131132
* `unschedulable` - (Optional, Int, ForceNew) Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
132133
* `user_script` - (Optional, String, ForceNew) Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
133134

@@ -160,6 +161,12 @@ The `gpu_args` object supports the following:
160161
* `driver` - (Optional, Map) GPU driver version. Format like: `{ version: String, name: String }`. `version`: Version of GPU driver or CUDA; `name`: Name of GPU driver or CUDA.
161162
* `mig_enable` - (Optional, Bool) Whether to enable MIG.
162163

164+
The `taints` object supports the following:
165+
166+
* `effect` - (Optional, String, ForceNew) Effect of the taint.
167+
* `key` - (Optional, String, ForceNew) Key of the taint.
168+
* `value` - (Optional, String, ForceNew) Value of the taint.
169+
163170
The `worker_config` object supports the following:
164171

165172
* `instance_type` - (Required, String, ForceNew) Specified types of CVM instance.

0 commit comments

Comments
 (0)