KubernetesClustersProps
Properties for defining a KubernetesClusters
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-kubernetesclusters
Initializer
import com.aliyun.ros.cdk.cs.datasource.KubernetesClustersProps;
KubernetesClustersProps.builder()
// .clusterSpec(java.lang.String)
// .clusterSpec(IResolvable)
// .clusterType(java.lang.String)
// .clusterType(IResolvable)
// .name(java.lang.String)
// .name(IResolvable)
// .profile(java.lang.String)
// .profile(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
clusterSpec |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterSpec: The specification of the cluster. |
clusterType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterType: The type of the cluster. |
name |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property name: The name of the cluster.The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). It cannot start with a hyphen (-). |
profile |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property profile: The identifier of the cluster. |
refreshOptions |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
clusterSpec
Optional
public java.lang.Object getClusterSpec();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterSpec: The specification of the cluster.
If you set the cluster type to ManagedKubernetes, you can use cluster specifications to distinguish clusters. Valid values: ack.pro.small: professional managed Kubernetes cluster ack.standard: standard managed Kubernetes cluster By default, this parameter is empty. This indicates that the parameter is not used to filter clusters.
clusterType
Optional
public java.lang.Object getClusterType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterType: The type of the cluster.
Valid values: Kubernetes: dedicated Kubernetes cluster ManagedKubernetes: managed Kubernetes cluster, serverless Kubernetes (ASK) cluster, or edge Kubernetes cluster Ask: ASK cluster ExternalKubernetes: registered external cluster When you query an ASK cluster, the value specified when the cluster was created is returned.
name
Optional
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the cluster.The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). It cannot start with a hyphen (-).
profile
Optional
public java.lang.Object getProfile();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property profile: The identifier of the cluster.
If you set the cluster type to ManagedKubernetes, you can use cluster identifiers to distinguish clusters. Valid values: Default: managed Kubernetes cluster Serverless: ASK cluster Edge: edge Kubernetes cluster By default, this parameter is empty. This indicates that the parameter is not used to filter clusters.
refreshOptions
Optional
public java.lang.Object getRefreshOptions();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.