alicloud.cs.ServerlessKubernetes
Explore with Pulumi AI
This resource will help you to manager a Serverless Kubernetes Cluster, see What is serverless kubernetes. The cluster is same as container service created by web console.
NOTE: Available since v1.58.0.
NOTE: Serverless Kubernetes cluster only supports VPC network and it can access internet while creating kubernetes cluster. A Nat Gateway and configuring a SNAT for it can ensure one VPC network access internet. If there is no nat gateway in the VPC, you can set
new_nat_gateway
to “true” to create one automatically.
NOTE: Creating serverless kubernetes cluster need to install several packages and it will cost about 5 minutes. Please be patient.
NOTE: The provider supports to download kube config, client certificate, client key and cluster ca certificate after creating cluster successfully, and you can put them into the specified location, like ‘~/.kube/config’.
NOTE: If you want to manage serverless Kubernetes, you can use Kubernetes Provider.
NOTE: You need to activate several other products and confirm Authorization Policy used by Container Service before using this resource. Please refer to the
Authorization management
andCluster management
sections in the Document Center.
NOTE: From version 1.162.0, support for creating professional serverless cluster.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "ask-example";
const default = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.1.0.0/21",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
vpcId: defaultNetwork.id,
cidrBlock: "10.1.1.0/24",
zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const serverless = new alicloud.cs.ServerlessKubernetes("serverless", {
namePrefix: name,
clusterSpec: "ack.pro.small",
vpcId: defaultNetwork.id,
vswitchIds: [defaultSwitch.id],
newNatGateway: true,
endpointPublicAccessEnabled: true,
deletionProtection: false,
loadBalancerSpec: "slb.s2.small",
timeZone: "Asia/Shanghai",
serviceCidr: "172.21.0.0/20",
serviceDiscoveryTypes: ["PrivateZone"],
loggingType: "SLS",
tags: {
"k-aa": "v-aa",
"k-bb": "v-aa",
},
addons: [
{
name: "alb-ingress-controller",
},
{
name: "metrics-server",
},
{
name: "knative",
},
],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "ask-example"
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.1.0.0/21")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
vpc_id=default_network.id,
cidr_block="10.1.1.0/24",
zone_id=default.zones[0].id)
serverless = alicloud.cs.ServerlessKubernetes("serverless",
name_prefix=name,
cluster_spec="ack.pro.small",
vpc_id=default_network.id,
vswitch_ids=[default_switch.id],
new_nat_gateway=True,
endpoint_public_access_enabled=True,
deletion_protection=False,
load_balancer_spec="slb.s2.small",
time_zone="Asia/Shanghai",
service_cidr="172.21.0.0/20",
service_discovery_types=["PrivateZone"],
logging_type="SLS",
tags={
"k-aa": "v-aa",
"k-bb": "v-aa",
},
addons=[
alicloud.cs.ServerlessKubernetesAddonArgs(
name="alb-ingress-controller",
),
alicloud.cs.ServerlessKubernetesAddonArgs(
name="metrics-server",
),
alicloud.cs.ServerlessKubernetesAddonArgs(
name="knative",
),
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "ask-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.1.0.0/21"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("10.1.1.0/24"),
ZoneId: pulumi.String(_default.Zones[0].Id),
})
if err != nil {
return err
}
_, err = cs.NewServerlessKubernetes(ctx, "serverless", &cs.ServerlessKubernetesArgs{
NamePrefix: pulumi.String(name),
ClusterSpec: pulumi.String("ack.pro.small"),
VpcId: defaultNetwork.ID(),
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
NewNatGateway: pulumi.Bool(true),
EndpointPublicAccessEnabled: pulumi.Bool(true),
DeletionProtection: pulumi.Bool(false),
LoadBalancerSpec: pulumi.String("slb.s2.small"),
TimeZone: pulumi.String("Asia/Shanghai"),
ServiceCidr: pulumi.String("172.21.0.0/20"),
ServiceDiscoveryTypes: pulumi.StringArray{
pulumi.String("PrivateZone"),
},
LoggingType: pulumi.String("SLS"),
Tags: pulumi.Map{
"k-aa": pulumi.Any("v-aa"),
"k-bb": pulumi.Any("v-aa"),
},
Addons: cs.ServerlessKubernetesAddonArray{
&cs.ServerlessKubernetesAddonArgs{
Name: pulumi.String("alb-ingress-controller"),
},
&cs.ServerlessKubernetesAddonArgs{
Name: pulumi.String("metrics-server"),
},
&cs.ServerlessKubernetesAddonArgs{
Name: pulumi.String("knative"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "ask-example";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.1.0.0/21",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
VpcId = defaultNetwork.Id,
CidrBlock = "10.1.1.0/24",
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
});
var serverless = new AliCloud.CS.ServerlessKubernetes("serverless", new()
{
NamePrefix = name,
ClusterSpec = "ack.pro.small",
VpcId = defaultNetwork.Id,
VswitchIds = new[]
{
defaultSwitch.Id,
},
NewNatGateway = true,
EndpointPublicAccessEnabled = true,
DeletionProtection = false,
LoadBalancerSpec = "slb.s2.small",
TimeZone = "Asia/Shanghai",
ServiceCidr = "172.21.0.0/20",
ServiceDiscoveryTypes = new[]
{
"PrivateZone",
},
LoggingType = "SLS",
Tags =
{
{ "k-aa", "v-aa" },
{ "k-bb", "v-aa" },
},
Addons = new[]
{
new AliCloud.CS.Inputs.ServerlessKubernetesAddonArgs
{
Name = "alb-ingress-controller",
},
new AliCloud.CS.Inputs.ServerlessKubernetesAddonArgs
{
Name = "metrics-server",
},
new AliCloud.CS.Inputs.ServerlessKubernetesAddonArgs
{
Name = "knative",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.cs.ServerlessKubernetes;
import com.pulumi.alicloud.cs.ServerlessKubernetesArgs;
import com.pulumi.alicloud.cs.inputs.ServerlessKubernetesAddonArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("ask-example");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.1.0.0/21")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.vpcId(defaultNetwork.id())
.cidrBlock("10.1.1.0/24")
.zoneId(default_.zones()[0].id())
.build());
var serverless = new ServerlessKubernetes("serverless", ServerlessKubernetesArgs.builder()
.namePrefix(name)
.clusterSpec("ack.pro.small")
.vpcId(defaultNetwork.id())
.vswitchIds(defaultSwitch.id())
.newNatGateway(true)
.endpointPublicAccessEnabled(true)
.deletionProtection(false)
.loadBalancerSpec("slb.s2.small")
.timeZone("Asia/Shanghai")
.serviceCidr("172.21.0.0/20")
.serviceDiscoveryTypes("PrivateZone")
.loggingType("SLS")
.tags(Map.ofEntries(
Map.entry("k-aa", "v-aa"),
Map.entry("k-bb", "v-aa")
))
.addons(
ServerlessKubernetesAddonArgs.builder()
.name("alb-ingress-controller")
.build(),
ServerlessKubernetesAddonArgs.builder()
.name("metrics-server")
.build(),
ServerlessKubernetesAddonArgs.builder()
.name("knative")
.build())
.build());
}
}
configuration:
name:
type: string
default: ask-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 10.1.0.0/21
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
vpcId: ${defaultNetwork.id}
cidrBlock: 10.1.1.0/24
zoneId: ${default.zones[0].id}
serverless:
type: alicloud:cs:ServerlessKubernetes
properties:
namePrefix: ${name}
clusterSpec: ack.pro.small
vpcId: ${defaultNetwork.id}
vswitchIds:
- ${defaultSwitch.id}
newNatGateway: true
endpointPublicAccessEnabled: true
deletionProtection: false
loadBalancerSpec: slb.s2.small
timeZone: Asia/Shanghai
serviceCidr: 172.21.0.0/20
serviceDiscoveryTypes:
- PrivateZone
loggingType: SLS
tags:
k-aa: v-aa
k-bb: v-aa
addons:
- name: alb-ingress-controller
- name: metrics-server
- name: knative
variables:
default:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
Create ServerlessKubernetes Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerlessKubernetes(name: string, args: ServerlessKubernetesArgs, opts?: CustomResourceOptions);
@overload
def ServerlessKubernetes(resource_name: str,
args: ServerlessKubernetesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerlessKubernetes(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
name_prefix: Optional[str] = None,
cluster_ca_cert: Optional[str] = None,
private_zone: Optional[bool] = None,
cluster_spec: Optional[str] = None,
create_v2_cluster: Optional[bool] = None,
deletion_protection: Optional[bool] = None,
enable_rrsa: Optional[bool] = None,
endpoint_public_access_enabled: Optional[bool] = None,
force_update: Optional[bool] = None,
kube_config: Optional[str] = None,
load_balancer_spec: Optional[str] = None,
logging_type: Optional[str] = None,
name: Optional[str] = None,
addons: Optional[Sequence[ServerlessKubernetesAddonArgs]] = None,
zone_id: Optional[str] = None,
client_key: Optional[str] = None,
resource_group_id: Optional[str] = None,
retain_resources: Optional[Sequence[str]] = None,
rrsa_metadata: Optional[ServerlessKubernetesRrsaMetadataArgs] = None,
security_group_id: Optional[str] = None,
service_cidr: Optional[str] = None,
service_discovery_types: Optional[Sequence[str]] = None,
sls_project_name: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
time_zone: Optional[str] = None,
version: Optional[str] = None,
client_cert: Optional[str] = None,
vswitch_id: Optional[str] = None,
vswitch_ids: Optional[Sequence[str]] = None,
new_nat_gateway: Optional[bool] = None)
func NewServerlessKubernetes(ctx *Context, name string, args ServerlessKubernetesArgs, opts ...ResourceOption) (*ServerlessKubernetes, error)
public ServerlessKubernetes(string name, ServerlessKubernetesArgs args, CustomResourceOptions? opts = null)
public ServerlessKubernetes(String name, ServerlessKubernetesArgs args)
public ServerlessKubernetes(String name, ServerlessKubernetesArgs args, CustomResourceOptions options)
type: alicloud:cs:ServerlessKubernetes
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ServerlessKubernetesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ServerlessKubernetesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serverlessKubernetesResource = new AliCloud.CS.ServerlessKubernetes("serverlessKubernetesResource", new()
{
VpcId = "string",
NamePrefix = "string",
ClusterCaCert = "string",
ClusterSpec = "string",
CreateV2Cluster = false,
DeletionProtection = false,
EnableRrsa = false,
EndpointPublicAccessEnabled = false,
ForceUpdate = false,
LoadBalancerSpec = "string",
LoggingType = "string",
Name = "string",
Addons = new[]
{
new AliCloud.CS.Inputs.ServerlessKubernetesAddonArgs
{
Config = "string",
Disabled = false,
Name = "string",
},
},
ZoneId = "string",
ClientKey = "string",
ResourceGroupId = "string",
RetainResources = new[]
{
"string",
},
RrsaMetadata = new AliCloud.CS.Inputs.ServerlessKubernetesRrsaMetadataArgs
{
Enabled = false,
RamOidcProviderArn = "string",
RamOidcProviderName = "string",
RrsaOidcIssuerUrl = "string",
},
SecurityGroupId = "string",
ServiceCidr = "string",
ServiceDiscoveryTypes = new[]
{
"string",
},
SlsProjectName = "string",
Tags =
{
{ "string", "any" },
},
TimeZone = "string",
Version = "string",
ClientCert = "string",
VswitchIds = new[]
{
"string",
},
NewNatGateway = false,
});
example, err := cs.NewServerlessKubernetes(ctx, "serverlessKubernetesResource", &cs.ServerlessKubernetesArgs{
VpcId: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
ClusterCaCert: pulumi.String("string"),
ClusterSpec: pulumi.String("string"),
CreateV2Cluster: pulumi.Bool(false),
DeletionProtection: pulumi.Bool(false),
EnableRrsa: pulumi.Bool(false),
EndpointPublicAccessEnabled: pulumi.Bool(false),
ForceUpdate: pulumi.Bool(false),
LoadBalancerSpec: pulumi.String("string"),
LoggingType: pulumi.String("string"),
Name: pulumi.String("string"),
Addons: cs.ServerlessKubernetesAddonArray{
&cs.ServerlessKubernetesAddonArgs{
Config: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Name: pulumi.String("string"),
},
},
ZoneId: pulumi.String("string"),
ClientKey: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
RetainResources: pulumi.StringArray{
pulumi.String("string"),
},
RrsaMetadata: &cs.ServerlessKubernetesRrsaMetadataArgs{
Enabled: pulumi.Bool(false),
RamOidcProviderArn: pulumi.String("string"),
RamOidcProviderName: pulumi.String("string"),
RrsaOidcIssuerUrl: pulumi.String("string"),
},
SecurityGroupId: pulumi.String("string"),
ServiceCidr: pulumi.String("string"),
ServiceDiscoveryTypes: pulumi.StringArray{
pulumi.String("string"),
},
SlsProjectName: pulumi.String("string"),
Tags: pulumi.Map{
"string": pulumi.Any("any"),
},
TimeZone: pulumi.String("string"),
Version: pulumi.String("string"),
ClientCert: pulumi.String("string"),
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
NewNatGateway: pulumi.Bool(false),
})
var serverlessKubernetesResource = new ServerlessKubernetes("serverlessKubernetesResource", ServerlessKubernetesArgs.builder()
.vpcId("string")
.namePrefix("string")
.clusterCaCert("string")
.clusterSpec("string")
.createV2Cluster(false)
.deletionProtection(false)
.enableRrsa(false)
.endpointPublicAccessEnabled(false)
.forceUpdate(false)
.loadBalancerSpec("string")
.loggingType("string")
.name("string")
.addons(ServerlessKubernetesAddonArgs.builder()
.config("string")
.disabled(false)
.name("string")
.build())
.zoneId("string")
.clientKey("string")
.resourceGroupId("string")
.retainResources("string")
.rrsaMetadata(ServerlessKubernetesRrsaMetadataArgs.builder()
.enabled(false)
.ramOidcProviderArn("string")
.ramOidcProviderName("string")
.rrsaOidcIssuerUrl("string")
.build())
.securityGroupId("string")
.serviceCidr("string")
.serviceDiscoveryTypes("string")
.slsProjectName("string")
.tags(Map.of("string", "any"))
.timeZone("string")
.version("string")
.clientCert("string")
.vswitchIds("string")
.newNatGateway(false)
.build());
serverless_kubernetes_resource = alicloud.cs.ServerlessKubernetes("serverlessKubernetesResource",
vpc_id="string",
name_prefix="string",
cluster_ca_cert="string",
cluster_spec="string",
create_v2_cluster=False,
deletion_protection=False,
enable_rrsa=False,
endpoint_public_access_enabled=False,
force_update=False,
load_balancer_spec="string",
logging_type="string",
name="string",
addons=[alicloud.cs.ServerlessKubernetesAddonArgs(
config="string",
disabled=False,
name="string",
)],
zone_id="string",
client_key="string",
resource_group_id="string",
retain_resources=["string"],
rrsa_metadata=alicloud.cs.ServerlessKubernetesRrsaMetadataArgs(
enabled=False,
ram_oidc_provider_arn="string",
ram_oidc_provider_name="string",
rrsa_oidc_issuer_url="string",
),
security_group_id="string",
service_cidr="string",
service_discovery_types=["string"],
sls_project_name="string",
tags={
"string": "any",
},
time_zone="string",
version="string",
client_cert="string",
vswitch_ids=["string"],
new_nat_gateway=False)
const serverlessKubernetesResource = new alicloud.cs.ServerlessKubernetes("serverlessKubernetesResource", {
vpcId: "string",
namePrefix: "string",
clusterCaCert: "string",
clusterSpec: "string",
createV2Cluster: false,
deletionProtection: false,
enableRrsa: false,
endpointPublicAccessEnabled: false,
forceUpdate: false,
loadBalancerSpec: "string",
loggingType: "string",
name: "string",
addons: [{
config: "string",
disabled: false,
name: "string",
}],
zoneId: "string",
clientKey: "string",
resourceGroupId: "string",
retainResources: ["string"],
rrsaMetadata: {
enabled: false,
ramOidcProviderArn: "string",
ramOidcProviderName: "string",
rrsaOidcIssuerUrl: "string",
},
securityGroupId: "string",
serviceCidr: "string",
serviceDiscoveryTypes: ["string"],
slsProjectName: "string",
tags: {
string: "any",
},
timeZone: "string",
version: "string",
clientCert: "string",
vswitchIds: ["string"],
newNatGateway: false,
});
type: alicloud:cs:ServerlessKubernetes
properties:
addons:
- config: string
disabled: false
name: string
clientCert: string
clientKey: string
clusterCaCert: string
clusterSpec: string
createV2Cluster: false
deletionProtection: false
enableRrsa: false
endpointPublicAccessEnabled: false
forceUpdate: false
loadBalancerSpec: string
loggingType: string
name: string
namePrefix: string
newNatGateway: false
resourceGroupId: string
retainResources:
- string
rrsaMetadata:
enabled: false
ramOidcProviderArn: string
ramOidcProviderName: string
rrsaOidcIssuerUrl: string
securityGroupId: string
serviceCidr: string
serviceDiscoveryTypes:
- string
slsProjectName: string
tags:
string: any
timeZone: string
version: string
vpcId: string
vswitchIds:
- string
zoneId: string
ServerlessKubernetes Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts 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.
- Addons
List<Pulumi.
Ali Cloud. CS. Inputs. Serverless Kubernetes Addon> - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- Cluster
Spec string - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- Create
V2Cluster bool whether to create a v2 version cluster.
Removed params
- Deletion
Protection bool - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- Enable
Rrsa bool - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - Load
Balancer stringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - Logging
Type string - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - Private
Zone bool - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - Resource
Group stringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- Retain
Resources List<string> - Rrsa
Metadata Pulumi.Ali Cloud. CS. Inputs. Serverless Kubernetes Rrsa Metadata - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - Security
Group stringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- Service
Cidr string - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- Service
Discovery List<string>Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - Sls
Project stringName - If you use an existing SLS project, you must specify
sls_project_name
. - Dictionary<string, object>
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- Time
Zone string - The time zone of the cluster.
- Version string
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - Vswitch
Ids List<string> - The vswitches where new kubernetes cluster will be located.
- Zone
Id string - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- 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.
- Addons
[]Serverless
Kubernetes Addon Args - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- Cluster
Spec string - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- Create
V2Cluster bool whether to create a v2 version cluster.
Removed params
- Deletion
Protection bool - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- Enable
Rrsa bool - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - Load
Balancer stringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - Logging
Type string - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - Private
Zone bool - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - Resource
Group stringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- Retain
Resources []string - Rrsa
Metadata ServerlessKubernetes Rrsa Metadata Args - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - Security
Group stringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- Service
Cidr string - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- Service
Discovery []stringTypes - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - Sls
Project stringName - If you use an existing SLS project, you must specify
sls_project_name
. - map[string]interface{}
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- Time
Zone string - The time zone of the cluster.
- Version string
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - Vswitch
Ids []string - The vswitches where new kubernetes cluster will be located.
- Zone
Id string - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- 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.
- addons
List<Serverless
Kubernetes Addon> - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster
Spec String - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create
V2Cluster Boolean whether to create a v2 version cluster.
Removed params
- deletion
Protection Boolean - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable
Rrsa Boolean - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load
Balancer StringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging
Type String - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private
Zone Boolean - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource
Group StringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain
Resources List<String> - rrsa
Metadata ServerlessKubernetes Rrsa Metadata - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security
Group StringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service
Cidr String - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service
Discovery List<String>Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls
Project StringName - If you use an existing SLS project, you must specify
sls_project_name
. - Map<String,Object>
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time
Zone String - The time zone of the cluster.
- version String
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - vswitch
Ids List<String> - The vswitches where new kubernetes cluster will be located.
- zone
Id String - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- 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.
- addons
Serverless
Kubernetes Addon[] - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster
Spec string - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create
V2Cluster boolean whether to create a v2 version cluster.
Removed params
- deletion
Protection boolean - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable
Rrsa boolean - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load
Balancer stringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging
Type string - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private
Zone boolean - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource
Group stringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain
Resources string[] - rrsa
Metadata ServerlessKubernetes Rrsa Metadata - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security
Group stringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service
Cidr string - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service
Discovery string[]Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls
Project stringName - If you use an existing SLS project, you must specify
sls_project_name
. - {[key: string]: any}
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time
Zone string - The time zone of the cluster.
- version string
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - vswitch
Ids string[] - The vswitches where new kubernetes cluster will be located.
- zone
Id string - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- 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.
- addons
Sequence[Serverless
Kubernetes Addon Args] - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster_
spec str - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create_
v2_ boolcluster whether to create a v2 version cluster.
Removed params
- deletion_
protection bool - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable_
rrsa bool - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load_
balancer_ strspec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging_
type str - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private_
zone bool - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource_
group_ strid - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain_
resources Sequence[str] - rrsa_
metadata ServerlessKubernetes Rrsa Metadata Args - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security_
group_ strid - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service_
cidr str - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service_
discovery_ Sequence[str]types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls_
project_ strname - If you use an existing SLS project, you must specify
sls_project_name
. - Mapping[str, Any]
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time_
zone str - The time zone of the cluster.
- version str
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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. - vswitch_
ids Sequence[str] - The vswitches where new kubernetes cluster will be located.
- zone_
id str - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- 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.
- addons List<Property Map>
- You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster
Spec String - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create
V2Cluster Boolean whether to create a v2 version cluster.
Removed params
- deletion
Protection Boolean - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable
Rrsa Boolean - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load
Balancer StringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging
Type String - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private
Zone Boolean - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource
Group StringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain
Resources List<String> - rrsa
Metadata Property Map - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security
Group StringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service
Cidr String - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service
Discovery List<String>Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls
Project StringName - If you use an existing SLS project, you must specify
sls_project_name
. - Map<Any>
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time
Zone String - The time zone of the cluster.
- version String
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - vswitch
Ids List<String> - The vswitches where new kubernetes cluster will be located.
- zone
Id String - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): ServerlessKubernetes
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addons: Optional[Sequence[ServerlessKubernetesAddonArgs]] = None,
client_cert: Optional[str] = None,
client_key: Optional[str] = None,
cluster_ca_cert: Optional[str] = None,
cluster_spec: Optional[str] = None,
create_v2_cluster: Optional[bool] = None,
deletion_protection: Optional[bool] = None,
enable_rrsa: Optional[bool] = None,
endpoint_public_access_enabled: Optional[bool] = None,
force_update: Optional[bool] = None,
kube_config: Optional[str] = None,
load_balancer_spec: Optional[str] = None,
logging_type: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
new_nat_gateway: Optional[bool] = None,
private_zone: Optional[bool] = None,
resource_group_id: Optional[str] = None,
retain_resources: Optional[Sequence[str]] = None,
rrsa_metadata: Optional[ServerlessKubernetesRrsaMetadataArgs] = None,
security_group_id: Optional[str] = None,
service_cidr: Optional[str] = None,
service_discovery_types: Optional[Sequence[str]] = None,
sls_project_name: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
time_zone: Optional[str] = None,
version: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
vswitch_ids: Optional[Sequence[str]] = None,
zone_id: Optional[str] = None) -> ServerlessKubernetes
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)
public static ServerlessKubernetes get(String name, Output<String> id, ServerlessKubernetesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Addons
List<Pulumi.
Ali Cloud. CS. Inputs. Serverless Kubernetes Addon> - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- Cluster
Spec string - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- Create
V2Cluster bool whether to create a v2 version cluster.
Removed params
- Deletion
Protection bool - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- Enable
Rrsa bool - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - Load
Balancer stringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - Logging
Type string - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - Private
Zone bool - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - Resource
Group stringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- Retain
Resources List<string> - Rrsa
Metadata Pulumi.Ali Cloud. CS. Inputs. Serverless Kubernetes Rrsa Metadata - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - Security
Group stringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- Service
Cidr string - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- Service
Discovery List<string>Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - Sls
Project stringName - If you use an existing SLS project, you must specify
sls_project_name
. - Dictionary<string, object>
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- Time
Zone string - The time zone of the cluster.
- Version string
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - Vswitch
Ids List<string> - The vswitches where new kubernetes cluster will be located.
- Zone
Id string - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- Addons
[]Serverless
Kubernetes Addon Args - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- Cluster
Spec string - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- Create
V2Cluster bool whether to create a v2 version cluster.
Removed params
- Deletion
Protection bool - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- Enable
Rrsa bool - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - Load
Balancer stringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - Logging
Type string - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - Private
Zone bool - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - Resource
Group stringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- Retain
Resources []string - Rrsa
Metadata ServerlessKubernetes Rrsa Metadata Args - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - Security
Group stringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- Service
Cidr string - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- Service
Discovery []stringTypes - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - Sls
Project stringName - If you use an existing SLS project, you must specify
sls_project_name
. - map[string]interface{}
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- Time
Zone string - The time zone of the cluster.
- Version string
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - Vswitch
Ids []string - The vswitches where new kubernetes cluster will be located.
- Zone
Id string - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- addons
List<Serverless
Kubernetes Addon> - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster
Spec String - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create
V2Cluster Boolean whether to create a v2 version cluster.
Removed params
- deletion
Protection Boolean - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable
Rrsa Boolean - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load
Balancer StringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging
Type String - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private
Zone Boolean - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource
Group StringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain
Resources List<String> - rrsa
Metadata ServerlessKubernetes Rrsa Metadata - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security
Group StringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service
Cidr String - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service
Discovery List<String>Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls
Project StringName - If you use an existing SLS project, you must specify
sls_project_name
. - Map<String,Object>
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time
Zone String - The time zone of the cluster.
- version String
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - vswitch
Ids List<String> - The vswitches where new kubernetes cluster will be located.
- zone
Id String - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- addons
Serverless
Kubernetes Addon[] - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster
Spec string - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create
V2Cluster boolean whether to create a v2 version cluster.
Removed params
- deletion
Protection boolean - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable
Rrsa boolean - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load
Balancer stringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging
Type string - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private
Zone boolean - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource
Group stringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain
Resources string[] - rrsa
Metadata ServerlessKubernetes Rrsa Metadata - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security
Group stringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service
Cidr string - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service
Discovery string[]Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls
Project stringName - If you use an existing SLS project, you must specify
sls_project_name
. - {[key: string]: any}
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time
Zone string - The time zone of the cluster.
- version string
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - vswitch
Ids string[] - The vswitches where new kubernetes cluster will be located.
- zone
Id string - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- addons
Sequence[Serverless
Kubernetes Addon Args] - You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster_
spec str - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create_
v2_ boolcluster whether to create a v2 version cluster.
Removed params
- deletion_
protection bool - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable_
rrsa bool - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load_
balancer_ strspec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging_
type str - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private_
zone bool - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource_
group_ strid - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain_
resources Sequence[str] - rrsa_
metadata ServerlessKubernetes Rrsa Metadata Args - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security_
group_ strid - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service_
cidr str - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service_
discovery_ Sequence[str]types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls_
project_ strname - If you use an existing SLS project, you must specify
sls_project_name
. - Mapping[str, Any]
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time_
zone str - The time zone of the cluster.
- version str
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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. - vswitch_
ids Sequence[str] - The vswitches where new kubernetes cluster will be located.
- zone_
id str - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
- addons List<Property Map>
- You can specific network plugin,log component,ingress component and so on. See
addons
below. - 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
- cluster
Spec String - The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
- ack.standard: Standard serverless clusters.
- ack.pro.small: Professional serverless clusters.
- create
V2Cluster Boolean whether to create a v2 version cluster.
Removed params
- deletion
Protection Boolean - Whether enable the deletion protection or not.
- true: Enable deletion protection.
- false: Disable deletion protection.
- enable
Rrsa Boolean - Whether to enable cluster to support RRSA for version 1.22.3+. Default to
false
. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more RAM Roles for Service Accounts. - 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_id
andvswitch_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
. - load
Balancer StringSpec - The cluster api server load balance instance specification, default
slb.s2.small
. For more information on how to select a LB instance specification, see SLB instance overview. - logging
Type String - Enable log service, Valid value
SLS
. - 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. SNAT must be configured when a new VPC is automatically created. Default is
true
. - private
Zone Boolean - Has been deprecated from provider version 1.123.1.
PrivateZone
is used as the enumeration value ofservice_discovery_types
. - resource
Group StringId - The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
- retain
Resources List<String> - rrsa
Metadata Property Map - Nested attribute containing RRSA related data for your cluster. See
rrsa_metadata
below. - security
Group StringId - The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
- service
Cidr String - CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
- service
Discovery List<String>Types - Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are
CoreDNS
andPrivateZone
. - sls
Project StringName - If you use an existing SLS project, you must specify
sls_project_name
. - Map<Any>
- Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
- time
Zone String - The time zone of the cluster.
- version String
- Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
- 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_zone
specified. - vswitch
Ids List<String> - The vswitches where new kubernetes cluster will be located.
- zone
Id String - When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
Supporting Types
ServerlessKubernetesAddon, ServerlessKubernetesAddonArgs
- Config string
- The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
- Disabled bool
Disables the automatic installation of a component. Default is
false
.The following example is the definition of addons block, The type of this field is list:
# install nginx ingress, conflict with SLB ingress addons { name = "nginx-ingress-controller" # use internet config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}" # if use intranet, detail below. # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}" } # install SLB ingress, conflict with nginx ingress addons { name = "alb-ingress-controller" } # install metric server addons { name = "metrics-server" } # install knative addons { name = "knative" } # install prometheus addons { name = "arms-prometheus" # prometheus also provides managed version, specify with name `managed-arms-prometheus` for professional serverless clusters # name = "managed-arms-prometheus" }
- Name string
- Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
- Config string
- The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
- Disabled bool
Disables the automatic installation of a component. Default is
false
.The following example is the definition of addons block, The type of this field is list:
# install nginx ingress, conflict with SLB ingress addons { name = "nginx-ingress-controller" # use internet config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}" # if use intranet, detail below. # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}" } # install SLB ingress, conflict with nginx ingress addons { name = "alb-ingress-controller" } # install metric server addons { name = "metrics-server" } # install knative addons { name = "knative" } # install prometheus addons { name = "arms-prometheus" # prometheus also provides managed version, specify with name `managed-arms-prometheus` for professional serverless clusters # name = "managed-arms-prometheus" }
- Name string
- Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
- config String
- The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
- disabled Boolean
Disables the automatic installation of a component. Default is
false
.The following example is the definition of addons block, The type of this field is list:
# install nginx ingress, conflict with SLB ingress addons { name = "nginx-ingress-controller" # use internet config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}" # if use intranet, detail below. # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}" } # install SLB ingress, conflict with nginx ingress addons { name = "alb-ingress-controller" } # install metric server addons { name = "metrics-server" } # install knative addons { name = "knative" } # install prometheus addons { name = "arms-prometheus" # prometheus also provides managed version, specify with name `managed-arms-prometheus` for professional serverless clusters # name = "managed-arms-prometheus" }
- name String
- Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
- config string
- The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
- disabled boolean
Disables the automatic installation of a component. Default is
false
.The following example is the definition of addons block, The type of this field is list:
# install nginx ingress, conflict with SLB ingress addons { name = "nginx-ingress-controller" # use internet config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}" # if use intranet, detail below. # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}" } # install SLB ingress, conflict with nginx ingress addons { name = "alb-ingress-controller" } # install metric server addons { name = "metrics-server" } # install knative addons { name = "knative" } # install prometheus addons { name = "arms-prometheus" # prometheus also provides managed version, specify with name `managed-arms-prometheus` for professional serverless clusters # name = "managed-arms-prometheus" }
- name string
- Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
- config str
- The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
- disabled bool
Disables the automatic installation of a component. Default is
false
.The following example is the definition of addons block, The type of this field is list:
# install nginx ingress, conflict with SLB ingress addons { name = "nginx-ingress-controller" # use internet config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}" # if use intranet, detail below. # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}" } # install SLB ingress, conflict with nginx ingress addons { name = "alb-ingress-controller" } # install metric server addons { name = "metrics-server" } # install knative addons { name = "knative" } # install prometheus addons { name = "arms-prometheus" # prometheus also provides managed version, specify with name `managed-arms-prometheus` for professional serverless clusters # name = "managed-arms-prometheus" }
- name str
- Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
- config String
- The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
- disabled Boolean
Disables the automatic installation of a component. Default is
false
.The following example is the definition of addons block, The type of this field is list:
# install nginx ingress, conflict with SLB ingress addons { name = "nginx-ingress-controller" # use internet config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}" # if use intranet, detail below. # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}" } # install SLB ingress, conflict with nginx ingress addons { name = "alb-ingress-controller" } # install metric server addons { name = "metrics-server" } # install knative addons { name = "knative" } # install prometheus addons { name = "arms-prometheus" # prometheus also provides managed version, specify with name `managed-arms-prometheus` for professional serverless clusters # name = "managed-arms-prometheus" }
- name String
- Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
ServerlessKubernetesRrsaMetadata, ServerlessKubernetesRrsaMetadataArgs
- Enabled bool
- Whether the RRSA feature has been enabled.
- Ram
Oidc stringProvider Arn - The arn of OIDC provider that was registered in RAM.
- Ram
Oidc stringProvider Name - The name of OIDC Provider that was registered in RAM.
- Rrsa
Oidc stringIssuer Url - The issuer URL of RRSA OIDC Token.
- Enabled bool
- Whether the RRSA feature has been enabled.
- Ram
Oidc stringProvider Arn - The arn of OIDC provider that was registered in RAM.
- Ram
Oidc stringProvider Name - The name of OIDC Provider that was registered in RAM.
- Rrsa
Oidc stringIssuer Url - The issuer URL of RRSA OIDC Token.
- enabled Boolean
- Whether the RRSA feature has been enabled.
- ram
Oidc StringProvider Arn - The arn of OIDC provider that was registered in RAM.
- ram
Oidc StringProvider Name - The name of OIDC Provider that was registered in RAM.
- rrsa
Oidc StringIssuer Url - The issuer URL of RRSA OIDC Token.
- enabled boolean
- Whether the RRSA feature has been enabled.
- ram
Oidc stringProvider Arn - The arn of OIDC provider that was registered in RAM.
- ram
Oidc stringProvider Name - The name of OIDC Provider that was registered in RAM.
- rrsa
Oidc stringIssuer Url - The issuer URL of RRSA OIDC Token.
- enabled bool
- Whether the RRSA feature has been enabled.
- ram_
oidc_ strprovider_ arn - The arn of OIDC provider that was registered in RAM.
- ram_
oidc_ strprovider_ name - The name of OIDC Provider that was registered in RAM.
- rrsa_
oidc_ strissuer_ url - The issuer URL of RRSA OIDC Token.
- enabled Boolean
- Whether the RRSA feature has been enabled.
- ram
Oidc StringProvider Arn - The arn of OIDC provider that was registered in RAM.
- ram
Oidc StringProvider Name - The name of OIDC Provider that was registered in RAM.
- rrsa
Oidc StringIssuer Url - The issuer URL of RRSA OIDC Token.
Import
Serverless Kubernetes cluster can be imported using the id, e.g. Then complete the main.tf accords to the result of pulumi preview
.
$ pulumi import alicloud:cs/serverlessKubernetes:ServerlessKubernetes main ce4273f9156874b46bb
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.