ALIYUN::CS::ClusterApplication is used to deploy a container application.
Syntax
"ValidationMode": String {
"Type": "ALIYUN::CS::ClusterApplication",
"Properties": {
"YamlContent": String,
"ClusterId": String,
"DefaultNamespace": String,
"RolePolicy": String,
"Stage": String,
"WaitUntil": List,
"ValidationMode": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
YamlContent | String | Yes | Yes | The YAML template that you want to use to deploy the application. | None. |
ClusterId | String | Yes | No | The cluster ID. | None. |
DefaultNamespace | String | No | No | The default namespace of the application. | None. |
RolePolicy | String | No | Yes | The role policy. | Before you deploy the application, check the policies that are attached to the role of your account. Valid values:
|
Stage | String | No | No | The running stage. | Valid values:
|
WaitUntil | List | No | Yes | The system waits until all conditions are met after you start to create or update the application. | For more information, see WaitUntil properties. |
ValidationMode | String | No | No | The validation mode. | Valid values:
|
WaitUntil syntax
"WaitUntil": [
{
"FirstMatch": Boolean,
"Timeout": Integer,
"JsonPath": String,
"Namespace": String,
"Stage": String,
"Name": String,
"ValueType": String,
"Kind": String,
"Value": String,
"Operator": String
}
]
WaitUntil properties
Property | Type | Required | Editable | Description | Constraint |
FirstMatch | Boolean | No | Yes | Specifies whether to return only the first matched result in the results that are filtered by using the JSONPath expression. | Valid values:
|
Timeout | Integer | No | Yes | The timeout period for waiting for the conditions to be met. | Unit: seconds. |
JsonPath | String | No | Yes | The JSONPath expression that you want to use to filter results. | None. |
Namespace | String | No | Yes | The Kubernetes namespace of the resource. | Default value: DefaultNamespace. |
Stage | String | No | No | The one or more stages at which the system waits. | Valid values:
|
Name | String | Yes | Yes | The name of the Kubernetes resource that you want to query. | None. |
ValueType | String | No | Yes | The value type. | Default value: String. |
Kind | String | Yes | Yes | The type of the Kubernetes resource that you want to query. | None. |
Value | String | No | Yes | The value to be compared with the result of the JSONPath expression. | None. |
Operator | String | Yes | Yes | The operator that you want to use in the comparison between the value and the result of the JSONPath expression. | None. |
Return values
Fn::GetAtt
ClusterId: the cluster ID.