|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The cluster script information, including the script name, OSS path, execution timing, and failure handling policy. |
||
| ScriptPath |
string |
The OSS path of the script. Required. Must start with oss://. |
oss://bucket1/update_hosts.sh |
| ScriptArgs |
string |
The execution parameters of the script. Optional. |
-host 10.0.10.5 -m 30 |
| ExecutionFailStrategy |
string |
The execution failure policy. Valid values:
|
FAILED_CONTINUE |
| Priority |
integer |
Note
[Deprecated] Scripts are executed in the order in which they are defined. |
1 |
| ScriptName |
string |
The name of the script. Required. The name must be 1 to 64 characters in length and must start with a letter or a Chinese character. It cannot start with http:// or https://. It can contain Chinese characters, English letters, digits, underscores (_), and hyphens (-). |
ScriptName-1 |
| ExecutionMoment |
string |
The execution timing of the script. Valid values:
|
BEFORE_INSTALL |
| NodeSelector | NodeSelector |
The node selector. |