ServerlessKubernetes
Create a ServerlessKubernetes Resource
new ServerlessKubernetes(name: string, args: ServerlessKubernetesArgs, opts?: CustomResourceOptions);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);func NewServerlessKubernetes(ctx *Context, name string, args ServerlessKubernetesArgs, opts ...ResourceOption) (*ServerlessKubernetes, error)public ServerlessKubernetes(string name, ServerlessKubernetesArgs args, CustomResourceOptions? opts = null)- 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:
- Vpc
Id 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.
- Vswitch
Id 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_zonespecified.- Client
Cert string The path of client certificate, like
~/.kube/client-cert.pem.- Client
Key string The path of client key, like
~/.kube/client-key.pem.- Cluster
Ca stringCert 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 boolAccess Enabled Whether to create internet eip for API Server. Default to false.
- Force
Update bool Default false, when you want to change
vpc_idandvswitch_id, you have to set this field to true, then the cluster will be recreated.- Kube
Config string The path of kube config, like
~/.kube/config.- Name string
The kubernetes cluster’s name. It is the only in one Alicloud account.
- Name
Prefix string - New
Nat boolGateway 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.
- Dictionary<string, object>
Default nil, A map of tags assigned to the kubernetes cluster .
- Vpc
Id 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.
- Vswitch
Id 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_zonespecified.- Client
Cert string The path of client certificate, like
~/.kube/client-cert.pem.- Client
Key string The path of client key, like
~/.kube/client-key.pem.- Cluster
Ca stringCert 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 boolAccess Enabled Whether to create internet eip for API Server. Default to false.
- Force
Update bool Default false, when you want to change
vpc_idandvswitch_id, you have to set this field to true, then the cluster will be recreated.- Kube
Config string The path of kube config, like
~/.kube/config.- Name string
The kubernetes cluster’s name. It is the only in one Alicloud account.
- Name
Prefix string - New
Nat boolGateway 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.
- map[string]interface{}
Default nil, A map of tags assigned to the kubernetes cluster .
- vpc
Id 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.
- vswitch
Id 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_zonespecified.- client
Cert string The path of client certificate, like
~/.kube/client-cert.pem.- client
Key string The path of client key, like
~/.kube/client-key.pem.- cluster
Ca stringCert The path of cluster ca certificate, like
~/.kube/cluster-ca-cert.pem- deletion
Protection boolean Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.
- endpoint
Public booleanAccess Enabled Whether to create internet eip for API Server. Default to false.
- force
Update boolean Default false, when you want to change
vpc_idandvswitch_id, you have to set this field to true, then the cluster will be recreated.- kube
Config string The path of kube config, like
~/.kube/config.- name string
The kubernetes cluster’s name. It is the only in one Alicloud account.
- name
Prefix string - new
Nat booleanGateway Whether to create a new nat gateway while creating kubernetes cluster. Default to true.
- private
Zone boolean Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.
- {[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_zonespecified.- 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_ strcert 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_ boolaccess_ enabled Whether to create internet eip for API Server. Default to false.
- force_
update bool Default false, when you want to change
vpc_idandvswitch_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_ boolgateway 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.
- 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.
- Security
Group stringId The ID of security group where the current cluster worker node is located.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Group stringId The ID of security group where the current cluster worker node is located.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Group stringId 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_ strid 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.
public static get(name: string, id: Input<ID>, state?: ServerlessKubernetesState, opts?: CustomResourceOptions): ServerlessKubernetesstatic 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)public static ServerlessKubernetes Get(string name, Input<string> id, ServerlessKubernetesState? state, CustomResourceOptions? opts = null)- 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:
- Client
Cert string The path of client certificate, like
~/.kube/client-cert.pem.- Client
Key string The path of client key, like
~/.kube/client-key.pem.- Cluster
Ca stringCert 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 boolAccess Enabled Whether to create internet eip for API Server. Default to false.
- Force
Update bool Default false, when you want to change
vpc_idandvswitch_id, you have to set this field to true, then the cluster will be recreated.- Kube
Config string The path of kube config, like
~/.kube/config.- Name string
The kubernetes cluster’s name. It is the only in one Alicloud account.
- Name
Prefix string - New
Nat boolGateway 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 stringId The ID of security group where the current cluster worker node is located.
- Dictionary<string, object>
Default nil, A map of tags assigned to the kubernetes cluster .
- Vpc
Id 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.
- Vswitch
Id 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_zonespecified.
- Client
Cert string The path of client certificate, like
~/.kube/client-cert.pem.- Client
Key string The path of client key, like
~/.kube/client-key.pem.- Cluster
Ca stringCert 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 boolAccess Enabled Whether to create internet eip for API Server. Default to false.
- Force
Update bool Default false, when you want to change
vpc_idandvswitch_id, you have to set this field to true, then the cluster will be recreated.- Kube
Config string The path of kube config, like
~/.kube/config.- Name string
The kubernetes cluster’s name. It is the only in one Alicloud account.
- Name
Prefix string - New
Nat boolGateway 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 stringId The ID of security group where the current cluster worker node is located.
- map[string]interface{}
Default nil, A map of tags assigned to the kubernetes cluster .
- Vpc
Id 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.
- Vswitch
Id 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_zonespecified.
- client
Cert string The path of client certificate, like
~/.kube/client-cert.pem.- client
Key string The path of client key, like
~/.kube/client-key.pem.- cluster
Ca stringCert The path of cluster ca certificate, like
~/.kube/cluster-ca-cert.pem- deletion
Protection boolean Whether enable the deletion protection or not. - true: Enable deletion protection. - false: Disable deletion protection.
- endpoint
Public booleanAccess Enabled Whether to create internet eip for API Server. Default to false.
- force
Update boolean Default false, when you want to change
vpc_idandvswitch_id, you have to set this field to true, then the cluster will be recreated.- kube
Config string The path of kube config, like
~/.kube/config.- name string
The kubernetes cluster’s name. It is the only in one Alicloud account.
- name
Prefix string - new
Nat booleanGateway Whether to create a new nat gateway while creating kubernetes cluster. Default to true.
- private
Zone boolean Enable Privatezone if you need to use the service discovery feature within the serverless cluster. Default to false.
- security
Group stringId The ID of security group where the current cluster worker node is located.
- {[key: string]: any}
Default nil, A map of tags assigned to the kubernetes cluster .
- vpc
Id 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.
- vswitch
Id 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_zonespecified.
- 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_ strcert 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_ boolaccess_ enabled Whether to create internet eip for API Server. Default to false.
- force_
update bool Default false, when you want to change
vpc_idandvswitch_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_ boolgateway 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_ strid The ID of security group where the current cluster worker node is located.
- 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_zonespecified.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.