ClusterApplicationProps
Properties for defining a ClusterApplication
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cs-clusterapplication
Initializer
import { ClusterApplicationProps } from '@alicloud/ros-cdk-cs'
const clusterApplicationProps: ClusterApplicationProps = { ... }
Properties
Name | Type | Description |
---|---|---|
clusterId |
string | @alicloud/ros-cdk-core.IResolvable |
Property clusterId: The ID of the kubernetes cluster. |
yamlContent |
string | @alicloud/ros-cdk-core.IResolvable |
Property yamlContent: The yaml content of application. |
defaultNamespace |
string | @alicloud/ros-cdk-core.IResolvable |
Property defaultNamespace: The default namespace for the application, default value is default. |
rolePolicy |
string | @alicloud/ros-cdk-core.IResolvable |
Property rolePolicy: Before deploying the application, check the policies associated with the roles of the current user. |
stage |
string | @alicloud/ros-cdk-core.IResolvable |
Property stage: At what stage to run. |
validationMode |
string | @alicloud/ros-cdk-core.IResolvable |
Property validationMode: Validation modes include: - Basic: basic validation, such as verifying the existence of a cluster. |
waitUntil |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | WaitUntilProperty[] |
Property waitUntil: After starting a creation or update, wait until all conditions are met. |
clusterId
Required
public readonly clusterId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property clusterId: The ID of the kubernetes cluster.
yamlContent
Required
public readonly yamlContent: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property yamlContent: The yaml content of application.
defaultNamespace
Optional
public readonly defaultNamespace: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property defaultNamespace: The default namespace for the application, default value is default.
If a namespace is defined in yaml metadata, its priority is higher than DefaultNamespace. If the DefaultNamespace does not exist, ROS will automatically create it and delete it during the deletion phase.
rolePolicy
Optional
public readonly rolePolicy: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property rolePolicy: Before deploying the application, check the policies associated with the roles of the current user.
Valid values: - EnsureAdminRoleAndBinding: Automatically create a role named "ros:application-admin:${user-id}" with administrator permissions and bind it to the current user. - None: Do nothing. The default value is EnsureAdminRoleAndBinding.
stage
Optional
public readonly stage: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property stage: At what stage to run.
Valid values: - All: all stages, including create, update, and delete. - Delete: the delete stage. This means that only in the deletion stage of this resource will apply yaml to the cluster. The default is All.
validationMode
Optional
public readonly validationMode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property validationMode: Validation modes include: - Basic: basic validation, such as verifying the existence of a cluster.
Strict: in addition to basic validation, also validate the legality of YamlContent and WaitUntil.
waitUntil
Optional
public readonly waitUntil: IResolvable | IResolvable | WaitUntilProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | WaitUntilProperty[]
Property waitUntil: After starting a creation or update, wait until all conditions are met.