ServerlessKubernetes

Create a ServerlessKubernetes Resource

def ServerlessKubernetes(resource_name, opts=None, client_cert=None, client_key=None, cluster_ca_cert=None, deletion_protection=None, endpoint_public_access_enabled=None, force_update=None, kube_config=None, name=None, name_prefix=None, new_nat_gateway=None, private_zone=None, tags=None, vpc_id=None, vswitch_id=None, __props__=None);
name string
The unique name of the resource.
args ServerlessKubernetesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServerlessKubernetesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServerlessKubernetesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServerlessKubernetes Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ServerlessKubernetes resource accepts the following input properties:

VpcId string

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

VswitchId string

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

ClientCert string

The path of client certificate, like ~/.kube/client-cert.pem.

ClientKey string

The path of client key, like ~/.kube/client-key.pem.

ClusterCaCert string

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

DeletionProtection bool

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

EndpointPublicAccessEnabled bool

Whether to create internet eip for API Server. Default to false.

ForceUpdate bool

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

KubeConfig string

The path of kube config, like ~/.kube/config.

Name string

The kubernetes cluster’s name. It is the only in one Alicloud account.

NamePrefix string
NewNatGateway bool

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

PrivateZone bool

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

Tags Dictionary<string, object>

Default nil, A map of tags assigned to the kubernetes cluster .

VpcId string

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

VswitchId string

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

ClientCert string

The path of client certificate, like ~/.kube/client-cert.pem.

ClientKey string

The path of client key, like ~/.kube/client-key.pem.

ClusterCaCert string

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

DeletionProtection bool

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

EndpointPublicAccessEnabled bool

Whether to create internet eip for API Server. Default to false.

ForceUpdate bool

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

KubeConfig string

The path of kube config, like ~/.kube/config.

Name string

The kubernetes cluster’s name. It is the only in one Alicloud account.

NamePrefix string
NewNatGateway bool

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

PrivateZone bool

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

Tags map[string]interface{}

Default nil, A map of tags assigned to the kubernetes cluster .

vpcId string

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

vswitchId string

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

clientCert string

The path of client certificate, like ~/.kube/client-cert.pem.

clientKey string

The path of client key, like ~/.kube/client-key.pem.

clusterCaCert string

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

deletionProtection boolean

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

endpointPublicAccessEnabled boolean

Whether to create internet eip for API Server. Default to false.

forceUpdate boolean

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

kubeConfig string

The path of kube config, like ~/.kube/config.

name string

The kubernetes cluster’s name. It is the only in one Alicloud account.

namePrefix string
newNatGateway boolean

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

privateZone boolean

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

tags {[key: string]: any}

Default nil, A map of tags assigned to the kubernetes cluster .

vpc_id str

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

vswitch_id str

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

client_cert str

The path of client certificate, like ~/.kube/client-cert.pem.

client_key str

The path of client key, like ~/.kube/client-key.pem.

cluster_ca_cert str

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

deletion_protection bool

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

endpoint_public_access_enabled bool

Whether to create internet eip for API Server. Default to false.

force_update bool

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

kube_config str

The path of kube config, like ~/.kube/config.

name str

The kubernetes cluster’s name. It is the only in one Alicloud account.

name_prefix str
new_nat_gateway bool

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

private_zone bool

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

tags Dict[str, Any]

Default nil, A map of tags assigned to the kubernetes cluster .

Outputs

All input properties are implicitly available as output properties. Additionally, the ServerlessKubernetes resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SecurityGroupId string

The ID of security group where the current cluster worker node is located.

Id string
The provider-assigned unique ID for this managed resource.
SecurityGroupId string

The ID of security group where the current cluster worker node is located.

id string
The provider-assigned unique ID for this managed resource.
securityGroupId string

The ID of security group where the current cluster worker node is located.

id str
The provider-assigned unique ID for this managed resource.
security_group_id str

The ID of security group where the current cluster worker node is located.

Look up an Existing ServerlessKubernetes Resource

Get an existing ServerlessKubernetes resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, client_cert=None, client_key=None, cluster_ca_cert=None, deletion_protection=None, endpoint_public_access_enabled=None, force_update=None, kube_config=None, name=None, name_prefix=None, new_nat_gateway=None, private_zone=None, security_group_id=None, tags=None, vpc_id=None, vswitch_id=None, __props__=None);
func GetServerlessKubernetes(ctx *Context, name string, id IDInput, state *ServerlessKubernetesState, opts ...ResourceOption) (*ServerlessKubernetes, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

ClientCert string

The path of client certificate, like ~/.kube/client-cert.pem.

ClientKey string

The path of client key, like ~/.kube/client-key.pem.

ClusterCaCert string

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

DeletionProtection bool

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

EndpointPublicAccessEnabled bool

Whether to create internet eip for API Server. Default to false.

ForceUpdate bool

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

KubeConfig string

The path of kube config, like ~/.kube/config.

Name string

The kubernetes cluster’s name. It is the only in one Alicloud account.

NamePrefix string
NewNatGateway bool

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

PrivateZone bool

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

SecurityGroupId string

The ID of security group where the current cluster worker node is located.

Tags Dictionary<string, object>

Default nil, A map of tags assigned to the kubernetes cluster .

VpcId string

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

VswitchId string

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

ClientCert string

The path of client certificate, like ~/.kube/client-cert.pem.

ClientKey string

The path of client key, like ~/.kube/client-key.pem.

ClusterCaCert string

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

DeletionProtection bool

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

EndpointPublicAccessEnabled bool

Whether to create internet eip for API Server. Default to false.

ForceUpdate bool

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

KubeConfig string

The path of kube config, like ~/.kube/config.

Name string

The kubernetes cluster’s name. It is the only in one Alicloud account.

NamePrefix string
NewNatGateway bool

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

PrivateZone bool

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

SecurityGroupId string

The ID of security group where the current cluster worker node is located.

Tags map[string]interface{}

Default nil, A map of tags assigned to the kubernetes cluster .

VpcId string

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

VswitchId string

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

clientCert string

The path of client certificate, like ~/.kube/client-cert.pem.

clientKey string

The path of client key, like ~/.kube/client-key.pem.

clusterCaCert string

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

deletionProtection boolean

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

endpointPublicAccessEnabled boolean

Whether to create internet eip for API Server. Default to false.

forceUpdate boolean

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

kubeConfig string

The path of kube config, like ~/.kube/config.

name string

The kubernetes cluster’s name. It is the only in one Alicloud account.

namePrefix string
newNatGateway boolean

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

privateZone boolean

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

securityGroupId string

The ID of security group where the current cluster worker node is located.

tags {[key: string]: any}

Default nil, A map of tags assigned to the kubernetes cluster .

vpcId string

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

vswitchId string

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

client_cert str

The path of client certificate, like ~/.kube/client-cert.pem.

client_key str

The path of client key, like ~/.kube/client-key.pem.

cluster_ca_cert str

The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

deletion_protection bool

Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.

endpoint_public_access_enabled bool

Whether to create internet eip for API Server. Default to false.

force_update bool

Default false, when you want to change vpc_id and vswitch_id, you have to set this field to true, then the cluster will be recreated.

kube_config str

The path of kube config, like ~/.kube/config.

name str

The kubernetes cluster’s name. It is the only in one Alicloud account.

name_prefix str
new_nat_gateway bool

Whether to create a new nat gateway while creating kubernetes cluster. Default to true.

private_zone bool

Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.

security_group_id str

The ID of security group where the current cluster worker node is located.

tags Dict[str, Any]

Default nil, A map of tags assigned to the kubernetes cluster .

vpc_id str

The vpc where new kubernetes cluster will be located. Specify one vpc’s id, if it is not specified, a new VPC will be built.

vswitch_id str

The vswitch where new kubernetes cluster will be located. Specify one vswitch’s id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which availability_zone specified.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.