gcore.K8sv2
Explore with Pulumi AI
Represent k8s cluster with one default pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const cl = new gcore.K8sv2("cl", {
projectId: 1,
regionId: 1,
fixedNetwork: "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
fixedSubnet: "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
keypair: "test_key",
version: "v1.26.7",
pools: [{
name: "pool1",
flavorId: "g1-standard-1-2",
minNodeCount: 1,
maxNodeCount: 1,
bootVolumeSize: 10,
bootVolumeType: "standard",
}],
});
const config = cl.name.apply(name => gcore.getK8sv2KubeconfigOutput({
clusterName: name,
regionId: data.gcore_region.rg.id,
projectId: data.gcore_project.pr.id,
}));
export const kubeconfig = config.apply(config => config.kubeconfig);
import pulumi
import pulumi_gcore as gcore
cl = gcore.K8sv2("cl",
project_id=1,
region_id=1,
fixed_network="6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
fixed_subnet="dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
keypair="test_key",
version="v1.26.7",
pools=[{
"name": "pool1",
"flavor_id": "g1-standard-1-2",
"min_node_count": 1,
"max_node_count": 1,
"boot_volume_size": 10,
"boot_volume_type": "standard",
}])
config = cl.name.apply(lambda name: gcore.get_k8sv2_kubeconfig_output(cluster_name=name,
region_id=data["gcore_region"]["rg"]["id"],
project_id=data["gcore_project"]["pr"]["id"]))
pulumi.export("kubeconfig", config.kubeconfig)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cl, err := gcore.NewK8sv2(ctx, "cl", &gcore.K8sv2Args{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
FixedNetwork: pulumi.String("6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25"),
FixedSubnet: pulumi.String("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839"),
Keypair: pulumi.String("test_key"),
Version: pulumi.String("v1.26.7"),
Pools: gcore.K8sv2PoolArray{
&gcore.K8sv2PoolArgs{
Name: pulumi.String("pool1"),
FlavorId: pulumi.String("g1-standard-1-2"),
MinNodeCount: pulumi.Float64(1),
MaxNodeCount: pulumi.Float64(1),
BootVolumeSize: pulumi.Float64(10),
BootVolumeType: pulumi.String("standard"),
},
},
})
if err != nil {
return err
}
config := cl.Name.ApplyT(func(name string) (gcore.GetK8sv2KubeconfigResult, error) {
return gcore.GetK8sv2KubeconfigResult(interface{}(gcore.GetK8sv2KubeconfigOutput(ctx, gcore.GetK8sv2KubeconfigOutputArgs{
ClusterName: name,
RegionId: data.Gcore_region.Rg.Id,
ProjectId: data.Gcore_project.Pr.Id,
}, nil))), nil
}).(gcore.GetK8sv2KubeconfigResultOutput)
ctx.Export("kubeconfig", config.ApplyT(func(config gcore.GetK8sv2KubeconfigResult) (*string, error) {
return &config.Kubeconfig, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var cl = new Gcore.K8sv2("cl", new()
{
ProjectId = 1,
RegionId = 1,
FixedNetwork = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
FixedSubnet = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
Keypair = "test_key",
Version = "v1.26.7",
Pools = new[]
{
new Gcore.Inputs.K8sv2PoolArgs
{
Name = "pool1",
FlavorId = "g1-standard-1-2",
MinNodeCount = 1,
MaxNodeCount = 1,
BootVolumeSize = 10,
BootVolumeType = "standard",
},
},
});
var config = Gcore.GetK8sv2Kubeconfig.Invoke(new()
{
ClusterName = cl.Name,
RegionId = data.Gcore_region.Rg.Id,
ProjectId = data.Gcore_project.Pr.Id,
});
return new Dictionary<string, object?>
{
["kubeconfig"] = config.Apply(getK8sv2KubeconfigResult => getK8sv2KubeconfigResult.Kubeconfig),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.K8sv2;
import com.pulumi.gcore.K8sv2Args;
import com.pulumi.gcore.inputs.K8sv2PoolArgs;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetK8sv2KubeconfigArgs;
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) {
var cl = new K8sv2("cl", K8sv2Args.builder()
.projectId(1)
.regionId(1)
.fixedNetwork("6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25")
.fixedSubnet("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839")
.keypair("test_key")
.version("v1.26.7")
.pools(K8sv2PoolArgs.builder()
.name("pool1")
.flavorId("g1-standard-1-2")
.minNodeCount(1)
.maxNodeCount(1)
.bootVolumeSize(10)
.bootVolumeType("standard")
.build())
.build());
final var config = GcoreFunctions.getK8sv2Kubeconfig(GetK8sv2KubeconfigArgs.builder()
.clusterName(cl.name())
.regionId(data.gcore_region().rg().id())
.projectId(data.gcore_project().pr().id())
.build());
ctx.export("kubeconfig", config.applyValue(getK8sv2KubeconfigResult -> getK8sv2KubeconfigResult).applyValue(config -> config.applyValue(getK8sv2KubeconfigResult -> getK8sv2KubeconfigResult.kubeconfig())));
}
}
resources:
cl:
type: gcore:K8sv2
properties:
projectId: 1
regionId: 1
fixedNetwork: 6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25
fixedSubnet: dc3a3ea9-86ae-47ad-a8e8-79df0ce04839
keypair: test_key
version: v1.26.7
pools:
- name: pool1
flavorId: g1-standard-1-2
minNodeCount: 1
maxNodeCount: 1
bootVolumeSize: 10
bootVolumeType: standard
variables:
config:
fn::invoke:
function: gcore:getK8sv2Kubeconfig
arguments:
clusterName: ${cl.name}
regionId: ${data.gcore_region.rg.id}
projectId: ${data.gcore_project.pr.id}
outputs:
# to store kubeconfig in a file pls use
# // terraform output -raw kubeconfig > config.yaml
kubeconfig: ${config.kubeconfig}
Create K8sv2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new K8sv2(name: string, args: K8sv2Args, opts?: CustomResourceOptions);
@overload
def K8sv2(resource_name: str,
args: K8sv2Args,
opts: Optional[ResourceOptions] = None)
@overload
def K8sv2(resource_name: str,
opts: Optional[ResourceOptions] = None,
keypair: Optional[str] = None,
version: Optional[str] = None,
pools: Optional[Sequence[K8sv2PoolArgs]] = None,
pods_ipv6_pool: Optional[str] = None,
project_id: Optional[float] = None,
is_ipv6: Optional[bool] = None,
k8sv2_id: Optional[str] = None,
fixed_network: Optional[str] = None,
name: Optional[str] = None,
pods_ip_pool: Optional[str] = None,
authentication: Optional[K8sv2AuthenticationArgs] = None,
cni: Optional[K8sv2CniArgs] = None,
fixed_subnet: Optional[str] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
security_group_rules: Optional[Sequence[K8sv2SecurityGroupRuleArgs]] = None,
services_ip_pool: Optional[str] = None,
services_ipv6_pool: Optional[str] = None,
timeouts: Optional[K8sv2TimeoutsArgs] = None,
autoscaler_config: Optional[Mapping[str, str]] = None)
func NewK8sv2(ctx *Context, name string, args K8sv2Args, opts ...ResourceOption) (*K8sv2, error)
public K8sv2(string name, K8sv2Args args, CustomResourceOptions? opts = null)
type: gcore:K8sv2
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 K8sv2Args
- 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 K8sv2Args
- 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 K8sv2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args K8sv2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args K8sv2Args
- 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 k8sv2Resource = new Gcore.K8sv2("k8sv2Resource", new()
{
Keypair = "string",
Version = "string",
Pools = new[]
{
new Gcore.Inputs.K8sv2PoolArgs
{
FlavorId = "string",
Name = "string",
MinNodeCount = 0,
Labels =
{
{ "string", "string" },
},
BootVolumeType = "string",
CreatedAt = "string",
IsPublicIpv4 = false,
KubeletConfig =
{
{ "string", "string" },
},
AutoHealingEnabled = false,
MaxNodeCount = 0,
CrioConfig =
{
{ "string", "string" },
},
BootVolumeSize = 0,
NodeCount = 0,
ServergroupId = "string",
ServergroupName = "string",
ServergroupPolicy = "string",
Status = "string",
Taints =
{
{ "string", "string" },
},
},
},
PodsIpv6Pool = "string",
ProjectId = 0,
IsIpv6 = false,
K8sv2Id = "string",
FixedNetwork = "string",
Name = "string",
PodsIpPool = "string",
Authentication = new Gcore.Inputs.K8sv2AuthenticationArgs
{
Oidc = new Gcore.Inputs.K8sv2AuthenticationOidcArgs
{
ClientId = "string",
GroupsClaim = "string",
GroupsPrefix = "string",
IssuerUrl = "string",
RequiredClaims =
{
{ "string", "string" },
},
SigningAlgs = new[]
{
"string",
},
UsernameClaim = "string",
UsernamePrefix = "string",
},
},
Cni = new Gcore.Inputs.K8sv2CniArgs
{
Cilium = new Gcore.Inputs.K8sv2CniCiliumArgs
{
Encryption = false,
HubbleRelay = false,
HubbleUi = false,
LbAcceleration = false,
LbMode = "string",
MaskSize = 0,
MaskSizeV6 = 0,
RoutingMode = "string",
Tunnel = "string",
},
Provider = "string",
},
FixedSubnet = "string",
ProjectName = "string",
RegionId = 0,
RegionName = "string",
SecurityGroupRules = new[]
{
new Gcore.Inputs.K8sv2SecurityGroupRuleArgs
{
Direction = "string",
Ethertype = "string",
Protocol = "string",
CreatedAt = "string",
Description = "string",
Id = "string",
PortRangeMax = 0,
PortRangeMin = 0,
RemoteIpPrefix = "string",
UpdatedAt = "string",
},
},
ServicesIpPool = "string",
ServicesIpv6Pool = "string",
Timeouts = new Gcore.Inputs.K8sv2TimeoutsArgs
{
Create = "string",
Update = "string",
},
AutoscalerConfig =
{
{ "string", "string" },
},
});
example, err := gcore.NewK8sv2(ctx, "k8sv2Resource", &gcore.K8sv2Args{
Keypair: pulumi.String("string"),
Version: pulumi.String("string"),
Pools: gcore.K8sv2PoolArray{
&gcore.K8sv2PoolArgs{
FlavorId: pulumi.String("string"),
Name: pulumi.String("string"),
MinNodeCount: pulumi.Float64(0),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
BootVolumeType: pulumi.String("string"),
CreatedAt: pulumi.String("string"),
IsPublicIpv4: pulumi.Bool(false),
KubeletConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
AutoHealingEnabled: pulumi.Bool(false),
MaxNodeCount: pulumi.Float64(0),
CrioConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
BootVolumeSize: pulumi.Float64(0),
NodeCount: pulumi.Float64(0),
ServergroupId: pulumi.String("string"),
ServergroupName: pulumi.String("string"),
ServergroupPolicy: pulumi.String("string"),
Status: pulumi.String("string"),
Taints: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
PodsIpv6Pool: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
IsIpv6: pulumi.Bool(false),
K8sv2Id: pulumi.String("string"),
FixedNetwork: pulumi.String("string"),
Name: pulumi.String("string"),
PodsIpPool: pulumi.String("string"),
Authentication: &gcore.K8sv2AuthenticationArgs{
Oidc: &gcore.K8sv2AuthenticationOidcArgs{
ClientId: pulumi.String("string"),
GroupsClaim: pulumi.String("string"),
GroupsPrefix: pulumi.String("string"),
IssuerUrl: pulumi.String("string"),
RequiredClaims: pulumi.StringMap{
"string": pulumi.String("string"),
},
SigningAlgs: pulumi.StringArray{
pulumi.String("string"),
},
UsernameClaim: pulumi.String("string"),
UsernamePrefix: pulumi.String("string"),
},
},
Cni: &gcore.K8sv2CniArgs{
Cilium: &gcore.K8sv2CniCiliumArgs{
Encryption: pulumi.Bool(false),
HubbleRelay: pulumi.Bool(false),
HubbleUi: pulumi.Bool(false),
LbAcceleration: pulumi.Bool(false),
LbMode: pulumi.String("string"),
MaskSize: pulumi.Float64(0),
MaskSizeV6: pulumi.Float64(0),
RoutingMode: pulumi.String("string"),
Tunnel: pulumi.String("string"),
},
Provider: pulumi.String("string"),
},
FixedSubnet: pulumi.String("string"),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
SecurityGroupRules: gcore.K8sv2SecurityGroupRuleArray{
&gcore.K8sv2SecurityGroupRuleArgs{
Direction: pulumi.String("string"),
Ethertype: pulumi.String("string"),
Protocol: pulumi.String("string"),
CreatedAt: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
PortRangeMax: pulumi.Float64(0),
PortRangeMin: pulumi.Float64(0),
RemoteIpPrefix: pulumi.String("string"),
UpdatedAt: pulumi.String("string"),
},
},
ServicesIpPool: pulumi.String("string"),
ServicesIpv6Pool: pulumi.String("string"),
Timeouts: &gcore.K8sv2TimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
AutoscalerConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var k8sv2Resource = new K8sv2("k8sv2Resource", K8sv2Args.builder()
.keypair("string")
.version("string")
.pools(K8sv2PoolArgs.builder()
.flavorId("string")
.name("string")
.minNodeCount(0)
.labels(Map.of("string", "string"))
.bootVolumeType("string")
.createdAt("string")
.isPublicIpv4(false)
.kubeletConfig(Map.of("string", "string"))
.autoHealingEnabled(false)
.maxNodeCount(0)
.crioConfig(Map.of("string", "string"))
.bootVolumeSize(0)
.nodeCount(0)
.servergroupId("string")
.servergroupName("string")
.servergroupPolicy("string")
.status("string")
.taints(Map.of("string", "string"))
.build())
.podsIpv6Pool("string")
.projectId(0)
.isIpv6(false)
.k8sv2Id("string")
.fixedNetwork("string")
.name("string")
.podsIpPool("string")
.authentication(K8sv2AuthenticationArgs.builder()
.oidc(K8sv2AuthenticationOidcArgs.builder()
.clientId("string")
.groupsClaim("string")
.groupsPrefix("string")
.issuerUrl("string")
.requiredClaims(Map.of("string", "string"))
.signingAlgs("string")
.usernameClaim("string")
.usernamePrefix("string")
.build())
.build())
.cni(K8sv2CniArgs.builder()
.cilium(K8sv2CniCiliumArgs.builder()
.encryption(false)
.hubbleRelay(false)
.hubbleUi(false)
.lbAcceleration(false)
.lbMode("string")
.maskSize(0)
.maskSizeV6(0)
.routingMode("string")
.tunnel("string")
.build())
.provider("string")
.build())
.fixedSubnet("string")
.projectName("string")
.regionId(0)
.regionName("string")
.securityGroupRules(K8sv2SecurityGroupRuleArgs.builder()
.direction("string")
.ethertype("string")
.protocol("string")
.createdAt("string")
.description("string")
.id("string")
.portRangeMax(0)
.portRangeMin(0)
.remoteIpPrefix("string")
.updatedAt("string")
.build())
.servicesIpPool("string")
.servicesIpv6Pool("string")
.timeouts(K8sv2TimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.autoscalerConfig(Map.of("string", "string"))
.build());
k8sv2_resource = gcore.K8sv2("k8sv2Resource",
keypair="string",
version="string",
pools=[{
"flavor_id": "string",
"name": "string",
"min_node_count": 0,
"labels": {
"string": "string",
},
"boot_volume_type": "string",
"created_at": "string",
"is_public_ipv4": False,
"kubelet_config": {
"string": "string",
},
"auto_healing_enabled": False,
"max_node_count": 0,
"crio_config": {
"string": "string",
},
"boot_volume_size": 0,
"node_count": 0,
"servergroup_id": "string",
"servergroup_name": "string",
"servergroup_policy": "string",
"status": "string",
"taints": {
"string": "string",
},
}],
pods_ipv6_pool="string",
project_id=0,
is_ipv6=False,
k8sv2_id="string",
fixed_network="string",
name="string",
pods_ip_pool="string",
authentication={
"oidc": {
"client_id": "string",
"groups_claim": "string",
"groups_prefix": "string",
"issuer_url": "string",
"required_claims": {
"string": "string",
},
"signing_algs": ["string"],
"username_claim": "string",
"username_prefix": "string",
},
},
cni={
"cilium": {
"encryption": False,
"hubble_relay": False,
"hubble_ui": False,
"lb_acceleration": False,
"lb_mode": "string",
"mask_size": 0,
"mask_size_v6": 0,
"routing_mode": "string",
"tunnel": "string",
},
"provider": "string",
},
fixed_subnet="string",
project_name="string",
region_id=0,
region_name="string",
security_group_rules=[{
"direction": "string",
"ethertype": "string",
"protocol": "string",
"created_at": "string",
"description": "string",
"id": "string",
"port_range_max": 0,
"port_range_min": 0,
"remote_ip_prefix": "string",
"updated_at": "string",
}],
services_ip_pool="string",
services_ipv6_pool="string",
timeouts={
"create": "string",
"update": "string",
},
autoscaler_config={
"string": "string",
})
const k8sv2Resource = new gcore.K8sv2("k8sv2Resource", {
keypair: "string",
version: "string",
pools: [{
flavorId: "string",
name: "string",
minNodeCount: 0,
labels: {
string: "string",
},
bootVolumeType: "string",
createdAt: "string",
isPublicIpv4: false,
kubeletConfig: {
string: "string",
},
autoHealingEnabled: false,
maxNodeCount: 0,
crioConfig: {
string: "string",
},
bootVolumeSize: 0,
nodeCount: 0,
servergroupId: "string",
servergroupName: "string",
servergroupPolicy: "string",
status: "string",
taints: {
string: "string",
},
}],
podsIpv6Pool: "string",
projectId: 0,
isIpv6: false,
k8sv2Id: "string",
fixedNetwork: "string",
name: "string",
podsIpPool: "string",
authentication: {
oidc: {
clientId: "string",
groupsClaim: "string",
groupsPrefix: "string",
issuerUrl: "string",
requiredClaims: {
string: "string",
},
signingAlgs: ["string"],
usernameClaim: "string",
usernamePrefix: "string",
},
},
cni: {
cilium: {
encryption: false,
hubbleRelay: false,
hubbleUi: false,
lbAcceleration: false,
lbMode: "string",
maskSize: 0,
maskSizeV6: 0,
routingMode: "string",
tunnel: "string",
},
provider: "string",
},
fixedSubnet: "string",
projectName: "string",
regionId: 0,
regionName: "string",
securityGroupRules: [{
direction: "string",
ethertype: "string",
protocol: "string",
createdAt: "string",
description: "string",
id: "string",
portRangeMax: 0,
portRangeMin: 0,
remoteIpPrefix: "string",
updatedAt: "string",
}],
servicesIpPool: "string",
servicesIpv6Pool: "string",
timeouts: {
create: "string",
update: "string",
},
autoscalerConfig: {
string: "string",
},
});
type: gcore:K8sv2
properties:
authentication:
oidc:
clientId: string
groupsClaim: string
groupsPrefix: string
issuerUrl: string
requiredClaims:
string: string
signingAlgs:
- string
usernameClaim: string
usernamePrefix: string
autoscalerConfig:
string: string
cni:
cilium:
encryption: false
hubbleRelay: false
hubbleUi: false
lbAcceleration: false
lbMode: string
maskSize: 0
maskSizeV6: 0
routingMode: string
tunnel: string
provider: string
fixedNetwork: string
fixedSubnet: string
isIpv6: false
k8sv2Id: string
keypair: string
name: string
podsIpPool: string
podsIpv6Pool: string
pools:
- autoHealingEnabled: false
bootVolumeSize: 0
bootVolumeType: string
createdAt: string
crioConfig:
string: string
flavorId: string
isPublicIpv4: false
kubeletConfig:
string: string
labels:
string: string
maxNodeCount: 0
minNodeCount: 0
name: string
nodeCount: 0
servergroupId: string
servergroupName: string
servergroupPolicy: string
status: string
taints:
string: string
projectId: 0
projectName: string
regionId: 0
regionName: string
securityGroupRules:
- createdAt: string
description: string
direction: string
ethertype: string
id: string
portRangeMax: 0
portRangeMin: 0
protocol: string
remoteIpPrefix: string
updatedAt: string
servicesIpPool: string
servicesIpv6Pool: string
timeouts:
create: string
update: string
version: string
K8sv2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The K8sv2 resource accepts the following input properties:
- Keypair string
- Name of the keypair used for SSH access to nodes.
- Pools List<K8sv2Pool>
- Version string
- Kubernetes version.
- Authentication K8sv2Authentication
- Cluster authentication configuration.
- Autoscaler
Config Dictionary<string, string> - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- Cni K8sv2Cni
- Cluster CNI configuration.
- Fixed
Network string - Fixed network used to allocate network addresses for cluster nodes.
- Fixed
Subnet string - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- Is
Ipv6 bool - Enable public IPv6 address.
- K8sv2Id string
- The ID of this resource.
- Name string
- Cluster name.
- Pods
Ip stringPool - Pods IPv4 IP pool in CIDR notation.
- Pods
Ipv6Pool string - Pods IPv6 IP pool in CIDR notation.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Security
Group List<K8sv2SecurityRules Group Rule> - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- Services
Ip stringPool - Services IPv4 IP pool in CIDR notation.
- Services
Ipv6Pool string - Services IPv6 IP pool in CIDR notation.
- Timeouts K8sv2Timeouts
- Keypair string
- Name of the keypair used for SSH access to nodes.
- Pools
[]K8sv2Pool
Args - Version string
- Kubernetes version.
- Authentication
K8sv2Authentication
Args - Cluster authentication configuration.
- Autoscaler
Config map[string]string - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- Cni
K8sv2Cni
Args - Cluster CNI configuration.
- Fixed
Network string - Fixed network used to allocate network addresses for cluster nodes.
- Fixed
Subnet string - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- Is
Ipv6 bool - Enable public IPv6 address.
- K8sv2Id string
- The ID of this resource.
- Name string
- Cluster name.
- Pods
Ip stringPool - Pods IPv4 IP pool in CIDR notation.
- Pods
Ipv6Pool string - Pods IPv6 IP pool in CIDR notation.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Security
Group []K8sv2SecurityRules Group Rule Args - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- Services
Ip stringPool - Services IPv4 IP pool in CIDR notation.
- Services
Ipv6Pool string - Services IPv6 IP pool in CIDR notation.
- Timeouts
K8sv2Timeouts
Args
- keypair String
- Name of the keypair used for SSH access to nodes.
- pools List<K8sv2Pool>
- version String
- Kubernetes version.
- authentication K8sv2Authentication
- Cluster authentication configuration.
- autoscaler
Config Map<String,String> - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni K8sv2Cni
- Cluster CNI configuration.
- fixed
Network String - Fixed network used to allocate network addresses for cluster nodes.
- fixed
Subnet String - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is
Ipv6 Boolean - Enable public IPv6 address.
- k8sv2Id String
- The ID of this resource.
- name String
- Cluster name.
- pods
Ip StringPool - Pods IPv4 IP pool in CIDR notation.
- pods
Ipv6Pool String - Pods IPv6 IP pool in CIDR notation.
- project
Id Double - project
Name String - region
Id Double - region
Name String - security
Group List<K8sv2SecurityRules Group Rule> - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services
Ip StringPool - Services IPv4 IP pool in CIDR notation.
- services
Ipv6Pool String - Services IPv6 IP pool in CIDR notation.
- timeouts K8sv2Timeouts
- keypair string
- Name of the keypair used for SSH access to nodes.
- pools K8sv2Pool[]
- version string
- Kubernetes version.
- authentication K8sv2Authentication
- Cluster authentication configuration.
- autoscaler
Config {[key: string]: string} - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni K8sv2Cni
- Cluster CNI configuration.
- fixed
Network string - Fixed network used to allocate network addresses for cluster nodes.
- fixed
Subnet string - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is
Ipv6 boolean - Enable public IPv6 address.
- k8sv2Id string
- The ID of this resource.
- name string
- Cluster name.
- pods
Ip stringPool - Pods IPv4 IP pool in CIDR notation.
- pods
Ipv6Pool string - Pods IPv6 IP pool in CIDR notation.
- project
Id number - project
Name string - region
Id number - region
Name string - security
Group K8sv2SecurityRules Group Rule[] - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services
Ip stringPool - Services IPv4 IP pool in CIDR notation.
- services
Ipv6Pool string - Services IPv6 IP pool in CIDR notation.
- timeouts K8sv2Timeouts
- keypair str
- Name of the keypair used for SSH access to nodes.
- pools
Sequence[K8sv2Pool
Args] - version str
- Kubernetes version.
- authentication
K8sv2Authentication
Args - Cluster authentication configuration.
- autoscaler_
config Mapping[str, str] - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni
K8sv2Cni
Args - Cluster CNI configuration.
- fixed_
network str - Fixed network used to allocate network addresses for cluster nodes.
- fixed_
subnet str - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is_
ipv6 bool - Enable public IPv6 address.
- k8sv2_
id str - The ID of this resource.
- name str
- Cluster name.
- pods_
ip_ strpool - Pods IPv4 IP pool in CIDR notation.
- pods_
ipv6_ strpool - Pods IPv6 IP pool in CIDR notation.
- project_
id float - project_
name str - region_
id float - region_
name str - security_
group_ Sequence[K8sv2Securityrules Group Rule Args] - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services_
ip_ strpool - Services IPv4 IP pool in CIDR notation.
- services_
ipv6_ strpool - Services IPv6 IP pool in CIDR notation.
- timeouts
K8sv2Timeouts
Args
- keypair String
- Name of the keypair used for SSH access to nodes.
- pools List<Property Map>
- version String
- Kubernetes version.
- authentication Property Map
- Cluster authentication configuration.
- autoscaler
Config Map<String> - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni Property Map
- Cluster CNI configuration.
- fixed
Network String - Fixed network used to allocate network addresses for cluster nodes.
- fixed
Subnet String - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is
Ipv6 Boolean - Enable public IPv6 address.
- k8sv2Id String
- The ID of this resource.
- name String
- Cluster name.
- pods
Ip StringPool - Pods IPv4 IP pool in CIDR notation.
- pods
Ipv6Pool String - Pods IPv6 IP pool in CIDR notation.
- project
Id Number - project
Name String - region
Id Number - region
Name String - security
Group List<Property Map>Rules - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services
Ip StringPool - Services IPv4 IP pool in CIDR notation.
- services
Ipv6Pool String - Services IPv6 IP pool in CIDR notation.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the K8sv2 resource produces the following output properties:
- Created
At string - Cluster creation date.
- Creator
Task stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Public bool - True if the cluster is public.
- Security
Group stringId - Security group ID.
- Status string
- Cluster status.
- Task
Id string
- Created
At string - Cluster creation date.
- Creator
Task stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Public bool - True if the cluster is public.
- Security
Group stringId - Security group ID.
- Status string
- Cluster status.
- Task
Id string
- created
At String - Cluster creation date.
- creator
Task StringId - id String
- The provider-assigned unique ID for this managed resource.
- is
Public Boolean - True if the cluster is public.
- security
Group StringId - Security group ID.
- status String
- Cluster status.
- task
Id String
- created
At string - Cluster creation date.
- creator
Task stringId - id string
- The provider-assigned unique ID for this managed resource.
- is
Public boolean - True if the cluster is public.
- security
Group stringId - Security group ID.
- status string
- Cluster status.
- task
Id string
- created_
at str - Cluster creation date.
- creator_
task_ strid - id str
- The provider-assigned unique ID for this managed resource.
- is_
public bool - True if the cluster is public.
- security_
group_ strid - Security group ID.
- status str
- Cluster status.
- task_
id str
- created
At String - Cluster creation date.
- creator
Task StringId - id String
- The provider-assigned unique ID for this managed resource.
- is
Public Boolean - True if the cluster is public.
- security
Group StringId - Security group ID.
- status String
- Cluster status.
- task
Id String
Look up Existing K8sv2 Resource
Get an existing K8sv2 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?: K8sv2State, opts?: CustomResourceOptions): K8sv2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[K8sv2AuthenticationArgs] = None,
autoscaler_config: Optional[Mapping[str, str]] = None,
cni: Optional[K8sv2CniArgs] = None,
created_at: Optional[str] = None,
creator_task_id: Optional[str] = None,
fixed_network: Optional[str] = None,
fixed_subnet: Optional[str] = None,
is_ipv6: Optional[bool] = None,
is_public: Optional[bool] = None,
k8sv2_id: Optional[str] = None,
keypair: Optional[str] = None,
name: Optional[str] = None,
pods_ip_pool: Optional[str] = None,
pods_ipv6_pool: Optional[str] = None,
pools: Optional[Sequence[K8sv2PoolArgs]] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
security_group_id: Optional[str] = None,
security_group_rules: Optional[Sequence[K8sv2SecurityGroupRuleArgs]] = None,
services_ip_pool: Optional[str] = None,
services_ipv6_pool: Optional[str] = None,
status: Optional[str] = None,
task_id: Optional[str] = None,
timeouts: Optional[K8sv2TimeoutsArgs] = None,
version: Optional[str] = None) -> K8sv2
func GetK8sv2(ctx *Context, name string, id IDInput, state *K8sv2State, opts ...ResourceOption) (*K8sv2, error)
public static K8sv2 Get(string name, Input<string> id, K8sv2State? state, CustomResourceOptions? opts = null)
public static K8sv2 get(String name, Output<String> id, K8sv2State state, CustomResourceOptions options)
resources: _: type: gcore:K8sv2 get: id: ${id}
- 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.
- Authentication K8sv2Authentication
- Cluster authentication configuration.
- Autoscaler
Config Dictionary<string, string> - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- Cni K8sv2Cni
- Cluster CNI configuration.
- Created
At string - Cluster creation date.
- Creator
Task stringId - Fixed
Network string - Fixed network used to allocate network addresses for cluster nodes.
- Fixed
Subnet string - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- Is
Ipv6 bool - Enable public IPv6 address.
- Is
Public bool - True if the cluster is public.
- K8sv2Id string
- The ID of this resource.
- Keypair string
- Name of the keypair used for SSH access to nodes.
- Name string
- Cluster name.
- Pods
Ip stringPool - Pods IPv4 IP pool in CIDR notation.
- Pods
Ipv6Pool string - Pods IPv6 IP pool in CIDR notation.
- Pools List<K8sv2Pool>
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Security
Group stringId - Security group ID.
- Security
Group List<K8sv2SecurityRules Group Rule> - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- Services
Ip stringPool - Services IPv4 IP pool in CIDR notation.
- Services
Ipv6Pool string - Services IPv6 IP pool in CIDR notation.
- Status string
- Cluster status.
- Task
Id string - Timeouts K8sv2Timeouts
- Version string
- Kubernetes version.
- Authentication
K8sv2Authentication
Args - Cluster authentication configuration.
- Autoscaler
Config map[string]string - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- Cni
K8sv2Cni
Args - Cluster CNI configuration.
- Created
At string - Cluster creation date.
- Creator
Task stringId - Fixed
Network string - Fixed network used to allocate network addresses for cluster nodes.
- Fixed
Subnet string - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- Is
Ipv6 bool - Enable public IPv6 address.
- Is
Public bool - True if the cluster is public.
- K8sv2Id string
- The ID of this resource.
- Keypair string
- Name of the keypair used for SSH access to nodes.
- Name string
- Cluster name.
- Pods
Ip stringPool - Pods IPv4 IP pool in CIDR notation.
- Pods
Ipv6Pool string - Pods IPv6 IP pool in CIDR notation.
- Pools
[]K8sv2Pool
Args - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Security
Group stringId - Security group ID.
- Security
Group []K8sv2SecurityRules Group Rule Args - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- Services
Ip stringPool - Services IPv4 IP pool in CIDR notation.
- Services
Ipv6Pool string - Services IPv6 IP pool in CIDR notation.
- Status string
- Cluster status.
- Task
Id string - Timeouts
K8sv2Timeouts
Args - Version string
- Kubernetes version.
- authentication K8sv2Authentication
- Cluster authentication configuration.
- autoscaler
Config Map<String,String> - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni K8sv2Cni
- Cluster CNI configuration.
- created
At String - Cluster creation date.
- creator
Task StringId - fixed
Network String - Fixed network used to allocate network addresses for cluster nodes.
- fixed
Subnet String - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is
Ipv6 Boolean - Enable public IPv6 address.
- is
Public Boolean - True if the cluster is public.
- k8sv2Id String
- The ID of this resource.
- keypair String
- Name of the keypair used for SSH access to nodes.
- name String
- Cluster name.
- pods
Ip StringPool - Pods IPv4 IP pool in CIDR notation.
- pods
Ipv6Pool String - Pods IPv6 IP pool in CIDR notation.
- pools List<K8sv2Pool>
- project
Id Double - project
Name String - region
Id Double - region
Name String - security
Group StringId - Security group ID.
- security
Group List<K8sv2SecurityRules Group Rule> - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services
Ip StringPool - Services IPv4 IP pool in CIDR notation.
- services
Ipv6Pool String - Services IPv6 IP pool in CIDR notation.
- status String
- Cluster status.
- task
Id String - timeouts K8sv2Timeouts
- version String
- Kubernetes version.
- authentication K8sv2Authentication
- Cluster authentication configuration.
- autoscaler
Config {[key: string]: string} - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni K8sv2Cni
- Cluster CNI configuration.
- created
At string - Cluster creation date.
- creator
Task stringId - fixed
Network string - Fixed network used to allocate network addresses for cluster nodes.
- fixed
Subnet string - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is
Ipv6 boolean - Enable public IPv6 address.
- is
Public boolean - True if the cluster is public.
- k8sv2Id string
- The ID of this resource.
- keypair string
- Name of the keypair used for SSH access to nodes.
- name string
- Cluster name.
- pods
Ip stringPool - Pods IPv4 IP pool in CIDR notation.
- pods
Ipv6Pool string - Pods IPv6 IP pool in CIDR notation.
- pools K8sv2Pool[]
- project
Id number - project
Name string - region
Id number - region
Name string - security
Group stringId - Security group ID.
- security
Group K8sv2SecurityRules Group Rule[] - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services
Ip stringPool - Services IPv4 IP pool in CIDR notation.
- services
Ipv6Pool string - Services IPv6 IP pool in CIDR notation.
- status string
- Cluster status.
- task
Id string - timeouts K8sv2Timeouts
- version string
- Kubernetes version.
- authentication
K8sv2Authentication
Args - Cluster authentication configuration.
- autoscaler_
config Mapping[str, str] - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni
K8sv2Cni
Args - Cluster CNI configuration.
- created_
at str - Cluster creation date.
- creator_
task_ strid - fixed_
network str - Fixed network used to allocate network addresses for cluster nodes.
- fixed_
subnet str - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is_
ipv6 bool - Enable public IPv6 address.
- is_
public bool - True if the cluster is public.
- k8sv2_
id str - The ID of this resource.
- keypair str
- Name of the keypair used for SSH access to nodes.
- name str
- Cluster name.
- pods_
ip_ strpool - Pods IPv4 IP pool in CIDR notation.
- pods_
ipv6_ strpool - Pods IPv6 IP pool in CIDR notation.
- pools
Sequence[K8sv2Pool
Args] - project_
id float - project_
name str - region_
id float - region_
name str - security_
group_ strid - Security group ID.
- security_
group_ Sequence[K8sv2Securityrules Group Rule Args] - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services_
ip_ strpool - Services IPv4 IP pool in CIDR notation.
- services_
ipv6_ strpool - Services IPv6 IP pool in CIDR notation.
- status str
- Cluster status.
- task_
id str - timeouts
K8sv2Timeouts
Args - version str
- Kubernetes version.
- authentication Property Map
- Cluster authentication configuration.
- autoscaler
Config Map<String> - Cluster autoscaler configuration params. Keys and values are expected to follow the cluster-autoscaler option format.
- cni Property Map
- Cluster CNI configuration.
- created
At String - Cluster creation date.
- creator
Task StringId - fixed
Network String - Fixed network used to allocate network addresses for cluster nodes.
- fixed
Subnet String - Fixed subnet used to allocate network addresses for cluster nodes. Subnet should have a router.
- is
Ipv6 Boolean - Enable public IPv6 address.
- is
Public Boolean - True if the cluster is public.
- k8sv2Id String
- The ID of this resource.
- keypair String
- Name of the keypair used for SSH access to nodes.
- name String
- Cluster name.
- pods
Ip StringPool - Pods IPv4 IP pool in CIDR notation.
- pods
Ipv6Pool String - Pods IPv6 IP pool in CIDR notation.
- pools List<Property Map>
- project
Id Number - project
Name String - region
Id Number - region
Name String - security
Group StringId - Security group ID.
- security
Group List<Property Map>Rules - Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
- services
Ip StringPool - Services IPv4 IP pool in CIDR notation.
- services
Ipv6Pool String - Services IPv6 IP pool in CIDR notation.
- status String
- Cluster status.
- task
Id String - timeouts Property Map
- version String
- Kubernetes version.
Supporting Types
K8sv2Authentication, K8sv2AuthenticationArgs
- Oidc
K8sv2Authentication
Oidc - OpenID Connect configuration settings.
- Oidc
K8sv2Authentication
Oidc - OpenID Connect configuration settings.
- oidc
K8sv2Authentication
Oidc - OpenID Connect configuration settings.
- oidc
K8sv2Authentication
Oidc - OpenID Connect configuration settings.
- oidc
K8sv2Authentication
Oidc - OpenID Connect configuration settings.
- oidc Property Map
- OpenID Connect configuration settings.
K8sv2AuthenticationOidc, K8sv2AuthenticationOidcArgs
- Client
Id string - A client id that all tokens must be issued for.
- Groups
Claim string - JWT claim to use as the user's group.
- Groups
Prefix string - Prefix prepended to group claims to prevent clashes with existing names.
- Issuer
Url string - URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted.
- Required
Claims Dictionary<string, string> - A map describing required claims in the ID Token. Each claim is verified to be present in the ID Token with a matching value.
- Signing
Algs List<string> - Accepted signing algorithms. Supported values are: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
- Username
Claim string - JWT claim to use as the user name. When not specified, the
sub
claim will be used. - Username
Prefix string - Prefix prepended to username claims to prevent clashes with existing names.
- Client
Id string - A client id that all tokens must be issued for.
- Groups
Claim string - JWT claim to use as the user's group.
- Groups
Prefix string - Prefix prepended to group claims to prevent clashes with existing names.
- Issuer
Url string - URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted.
- Required
Claims map[string]string - A map describing required claims in the ID Token. Each claim is verified to be present in the ID Token with a matching value.
- Signing
Algs []string - Accepted signing algorithms. Supported values are: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
- Username
Claim string - JWT claim to use as the user name. When not specified, the
sub
claim will be used. - Username
Prefix string - Prefix prepended to username claims to prevent clashes with existing names.
- client
Id String - A client id that all tokens must be issued for.
- groups
Claim String - JWT claim to use as the user's group.
- groups
Prefix String - Prefix prepended to group claims to prevent clashes with existing names.
- issuer
Url String - URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted.
- required
Claims Map<String,String> - A map describing required claims in the ID Token. Each claim is verified to be present in the ID Token with a matching value.
- signing
Algs List<String> - Accepted signing algorithms. Supported values are: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
- username
Claim String - JWT claim to use as the user name. When not specified, the
sub
claim will be used. - username
Prefix String - Prefix prepended to username claims to prevent clashes with existing names.
- client
Id string - A client id that all tokens must be issued for.
- groups
Claim string - JWT claim to use as the user's group.
- groups
Prefix string - Prefix prepended to group claims to prevent clashes with existing names.
- issuer
Url string - URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted.
- required
Claims {[key: string]: string} - A map describing required claims in the ID Token. Each claim is verified to be present in the ID Token with a matching value.
- signing
Algs string[] - Accepted signing algorithms. Supported values are: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
- username
Claim string - JWT claim to use as the user name. When not specified, the
sub
claim will be used. - username
Prefix string - Prefix prepended to username claims to prevent clashes with existing names.
- client_
id str - A client id that all tokens must be issued for.
- groups_
claim str - JWT claim to use as the user's group.
- groups_
prefix str - Prefix prepended to group claims to prevent clashes with existing names.
- issuer_
url str - URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted.
- required_
claims Mapping[str, str] - A map describing required claims in the ID Token. Each claim is verified to be present in the ID Token with a matching value.
- signing_
algs Sequence[str] - Accepted signing algorithms. Supported values are: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
- username_
claim str - JWT claim to use as the user name. When not specified, the
sub
claim will be used. - username_
prefix str - Prefix prepended to username claims to prevent clashes with existing names.
- client
Id String - A client id that all tokens must be issued for.
- groups
Claim String - JWT claim to use as the user's group.
- groups
Prefix String - Prefix prepended to group claims to prevent clashes with existing names.
- issuer
Url String - URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted.
- required
Claims Map<String> - A map describing required claims in the ID Token. Each claim is verified to be present in the ID Token with a matching value.
- signing
Algs List<String> - Accepted signing algorithms. Supported values are: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
- username
Claim String - JWT claim to use as the user name. When not specified, the
sub
claim will be used. - username
Prefix String - Prefix prepended to username claims to prevent clashes with existing names.
K8sv2Cni, K8sv2CniArgs
- Cilium
K8sv2Cni
Cilium - Cilium CNI configuration.
- Provider string
- CNI provider to use when creating the cluster. Supported values are: calico, cilium. The default value is calico.
- Cilium
K8sv2Cni
Cilium - Cilium CNI configuration.
- Provider string
- CNI provider to use when creating the cluster. Supported values are: calico, cilium. The default value is calico.
- cilium
K8sv2Cni
Cilium - Cilium CNI configuration.
- provider String
- CNI provider to use when creating the cluster. Supported values are: calico, cilium. The default value is calico.
- cilium
K8sv2Cni
Cilium - Cilium CNI configuration.
- provider string
- CNI provider to use when creating the cluster. Supported values are: calico, cilium. The default value is calico.
- cilium
K8sv2Cni
Cilium - Cilium CNI configuration.
- provider str
- CNI provider to use when creating the cluster. Supported values are: calico, cilium. The default value is calico.
- cilium Property Map
- Cilium CNI configuration.
- provider String
- CNI provider to use when creating the cluster. Supported values are: calico, cilium. The default value is calico.
K8sv2CniCilium, K8sv2CniCiliumArgs
- Encryption bool
- Enables transparent network encryption. The default value is false.
- Hubble
Relay bool - Enables Hubble Relay. The default value is false.
- Hubble
Ui bool - Enables Hubble UI. Requires
hubble_relay=true
. The default value is false. - Lb
Acceleration bool - Enables load balancer acceleration via XDP. The default value is false.
- Lb
Mode string - The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- Mask
Size double - Specifies the size allocated from podsippool CIDR to node.ipam.podCIDRs. The default value is 24.
- Mask
Size doubleV6 - Specifies the size allocated from podsipv6pool CIDR to node.ipam.podCIDRs. The default value is 120.
- Routing
Mode string - Enables native-routing mode or tunneling mode. The default value is tunnel.
- Tunnel string
- Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.
- Encryption bool
- Enables transparent network encryption. The default value is false.
- Hubble
Relay bool - Enables Hubble Relay. The default value is false.
- Hubble
Ui bool - Enables Hubble UI. Requires
hubble_relay=true
. The default value is false. - Lb
Acceleration bool - Enables load balancer acceleration via XDP. The default value is false.
- Lb
Mode string - The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- Mask
Size float64 - Specifies the size allocated from podsippool CIDR to node.ipam.podCIDRs. The default value is 24.
- Mask
Size float64V6 - Specifies the size allocated from podsipv6pool CIDR to node.ipam.podCIDRs. The default value is 120.
- Routing
Mode string - Enables native-routing mode or tunneling mode. The default value is tunnel.
- Tunnel string
- Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.
- encryption Boolean
- Enables transparent network encryption. The default value is false.
- hubble
Relay Boolean - Enables Hubble Relay. The default value is false.
- hubble
Ui Boolean - Enables Hubble UI. Requires
hubble_relay=true
. The default value is false. - lb
Acceleration Boolean - Enables load balancer acceleration via XDP. The default value is false.
- lb
Mode String - The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- mask
Size Double - Specifies the size allocated from podsippool CIDR to node.ipam.podCIDRs. The default value is 24.
- mask
Size DoubleV6 - Specifies the size allocated from podsipv6pool CIDR to node.ipam.podCIDRs. The default value is 120.
- routing
Mode String - Enables native-routing mode or tunneling mode. The default value is tunnel.
- tunnel String
- Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.
- encryption boolean
- Enables transparent network encryption. The default value is false.
- hubble
Relay boolean - Enables Hubble Relay. The default value is false.
- hubble
Ui boolean - Enables Hubble UI. Requires
hubble_relay=true
. The default value is false. - lb
Acceleration boolean - Enables load balancer acceleration via XDP. The default value is false.
- lb
Mode string - The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- mask
Size number - Specifies the size allocated from podsippool CIDR to node.ipam.podCIDRs. The default value is 24.
- mask
Size numberV6 - Specifies the size allocated from podsipv6pool CIDR to node.ipam.podCIDRs. The default value is 120.
- routing
Mode string - Enables native-routing mode or tunneling mode. The default value is tunnel.
- tunnel string
- Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.
- encryption bool
- Enables transparent network encryption. The default value is false.
- hubble_
relay bool - Enables Hubble Relay. The default value is false.
- hubble_
ui bool - Enables Hubble UI. Requires
hubble_relay=true
. The default value is false. - lb_
acceleration bool - Enables load balancer acceleration via XDP. The default value is false.
- lb_
mode str - The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- mask_
size float - Specifies the size allocated from podsippool CIDR to node.ipam.podCIDRs. The default value is 24.
- mask_
size_ floatv6 - Specifies the size allocated from podsipv6pool CIDR to node.ipam.podCIDRs. The default value is 120.
- routing_
mode str - Enables native-routing mode or tunneling mode. The default value is tunnel.
- tunnel str
- Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.
- encryption Boolean
- Enables transparent network encryption. The default value is false.
- hubble
Relay Boolean - Enables Hubble Relay. The default value is false.
- hubble
Ui Boolean - Enables Hubble UI. Requires
hubble_relay=true
. The default value is false. - lb
Acceleration Boolean - Enables load balancer acceleration via XDP. The default value is false.
- lb
Mode String - The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- mask
Size Number - Specifies the size allocated from podsippool CIDR to node.ipam.podCIDRs. The default value is 24.
- mask
Size NumberV6 - Specifies the size allocated from podsipv6pool CIDR to node.ipam.podCIDRs. The default value is 120.
- routing
Mode String - Enables native-routing mode or tunneling mode. The default value is tunnel.
- tunnel String
- Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.
K8sv2Pool, K8sv2PoolArgs
- Flavor
Id string - Cluster pool node flavor ID. Changing the value of this attribute will trigger recreation of the cluster pool.
- Min
Node doubleCount - Minimum number of nodes in the cluster pool.
- Name string
- Cluster pool name. Changing the value of this attribute will trigger recreation of the cluster pool.
- Auto
Healing boolEnabled - Enable/disable auto healing of cluster pool nodes.
- Boot
Volume doubleSize - Cluster pool boot volume size. Must be set only for VM pools. Changing the value of this attribute will trigger recreation of the cluster pool.
- Boot
Volume stringType - Cluster pool boot volume type. Must be set only for VM pools. Available values are 'standard', 'ssd_hiiops', 'cold', 'ultra'. Changing the value of this attribute will trigger recreation of the cluster pool.
- Created
At string - Cluster pool creation date.
- Crio
Config Dictionary<string, string> - Crio configuration for pool nodes. Keys and values are expected to follow the crio option format.
- Is
Public boolIpv4 - Assign public IPv4 address to nodes in this pool. Changing the value of this attribute will trigger recreation of the cluster pool.
- Kubelet
Config Dictionary<string, string> - Kubelet configuration for pool nodes. Keys and values are expected to follow the kubelet configuration file format.
- Labels Dictionary<string, string>
- Labels applied to the cluster pool nodes.
- Max
Node doubleCount - Maximum number of nodes in the cluster pool.
- Node
Count double - Current node count in the cluster pool.
- Servergroup
Id string - Server group id
- Servergroup
Name string - Server group name
- Servergroup
Policy string - Server group policy: anti-affinity, soft-anti-affinity or affinity
- Status string
- Cluster pool status.
- Taints Dictionary<string, string>
- Taints applied to the cluster pool nodes.
- Flavor
Id string - Cluster pool node flavor ID. Changing the value of this attribute will trigger recreation of the cluster pool.
- Min
Node float64Count - Minimum number of nodes in the cluster pool.
- Name string
- Cluster pool name. Changing the value of this attribute will trigger recreation of the cluster pool.
- Auto
Healing boolEnabled - Enable/disable auto healing of cluster pool nodes.
- Boot
Volume float64Size - Cluster pool boot volume size. Must be set only for VM pools. Changing the value of this attribute will trigger recreation of the cluster pool.
- Boot
Volume stringType - Cluster pool boot volume type. Must be set only for VM pools. Available values are 'standard', 'ssd_hiiops', 'cold', 'ultra'. Changing the value of this attribute will trigger recreation of the cluster pool.
- Created
At string - Cluster pool creation date.
- Crio
Config map[string]string - Crio configuration for pool nodes. Keys and values are expected to follow the crio option format.
- Is
Public boolIpv4 - Assign public IPv4 address to nodes in this pool. Changing the value of this attribute will trigger recreation of the cluster pool.
- Kubelet
Config map[string]string - Kubelet configuration for pool nodes. Keys and values are expected to follow the kubelet configuration file format.
- Labels map[string]string
- Labels applied to the cluster pool nodes.
- Max
Node float64Count - Maximum number of nodes in the cluster pool.
- Node
Count float64 - Current node count in the cluster pool.
- Servergroup
Id string - Server group id
- Servergroup
Name string - Server group name
- Servergroup
Policy string - Server group policy: anti-affinity, soft-anti-affinity or affinity
- Status string
- Cluster pool status.
- Taints map[string]string
- Taints applied to the cluster pool nodes.
- flavor
Id String - Cluster pool node flavor ID. Changing the value of this attribute will trigger recreation of the cluster pool.
- min
Node DoubleCount - Minimum number of nodes in the cluster pool.
- name String
- Cluster pool name. Changing the value of this attribute will trigger recreation of the cluster pool.
- auto
Healing BooleanEnabled - Enable/disable auto healing of cluster pool nodes.
- boot
Volume DoubleSize - Cluster pool boot volume size. Must be set only for VM pools. Changing the value of this attribute will trigger recreation of the cluster pool.
- boot
Volume StringType - Cluster pool boot volume type. Must be set only for VM pools. Available values are 'standard', 'ssd_hiiops', 'cold', 'ultra'. Changing the value of this attribute will trigger recreation of the cluster pool.
- created
At String - Cluster pool creation date.
- crio
Config Map<String,String> - Crio configuration for pool nodes. Keys and values are expected to follow the crio option format.
- is
Public BooleanIpv4 - Assign public IPv4 address to nodes in this pool. Changing the value of this attribute will trigger recreation of the cluster pool.
- kubelet
Config Map<String,String> - Kubelet configuration for pool nodes. Keys and values are expected to follow the kubelet configuration file format.
- labels Map<String,String>
- Labels applied to the cluster pool nodes.
- max
Node DoubleCount - Maximum number of nodes in the cluster pool.
- node
Count Double - Current node count in the cluster pool.
- servergroup
Id String - Server group id
- servergroup
Name String - Server group name
- servergroup
Policy String - Server group policy: anti-affinity, soft-anti-affinity or affinity
- status String
- Cluster pool status.
- taints Map<String,String>
- Taints applied to the cluster pool nodes.
- flavor
Id string - Cluster pool node flavor ID. Changing the value of this attribute will trigger recreation of the cluster pool.
- min
Node numberCount - Minimum number of nodes in the cluster pool.
- name string
- Cluster pool name. Changing the value of this attribute will trigger recreation of the cluster pool.
- auto
Healing booleanEnabled - Enable/disable auto healing of cluster pool nodes.
- boot
Volume numberSize - Cluster pool boot volume size. Must be set only for VM pools. Changing the value of this attribute will trigger recreation of the cluster pool.
- boot
Volume stringType - Cluster pool boot volume type. Must be set only for VM pools. Available values are 'standard', 'ssd_hiiops', 'cold', 'ultra'. Changing the value of this attribute will trigger recreation of the cluster pool.
- created
At string - Cluster pool creation date.
- crio
Config {[key: string]: string} - Crio configuration for pool nodes. Keys and values are expected to follow the crio option format.
- is
Public booleanIpv4 - Assign public IPv4 address to nodes in this pool. Changing the value of this attribute will trigger recreation of the cluster pool.
- kubelet
Config {[key: string]: string} - Kubelet configuration for pool nodes. Keys and values are expected to follow the kubelet configuration file format.
- labels {[key: string]: string}
- Labels applied to the cluster pool nodes.
- max
Node numberCount - Maximum number of nodes in the cluster pool.
- node
Count number - Current node count in the cluster pool.
- servergroup
Id string - Server group id
- servergroup
Name string - Server group name
- servergroup
Policy string - Server group policy: anti-affinity, soft-anti-affinity or affinity
- status string
- Cluster pool status.
- taints {[key: string]: string}
- Taints applied to the cluster pool nodes.
- flavor_
id str - Cluster pool node flavor ID. Changing the value of this attribute will trigger recreation of the cluster pool.
- min_
node_ floatcount - Minimum number of nodes in the cluster pool.
- name str
- Cluster pool name. Changing the value of this attribute will trigger recreation of the cluster pool.
- auto_
healing_ boolenabled - Enable/disable auto healing of cluster pool nodes.
- boot_
volume_ floatsize - Cluster pool boot volume size. Must be set only for VM pools. Changing the value of this attribute will trigger recreation of the cluster pool.
- boot_
volume_ strtype - Cluster pool boot volume type. Must be set only for VM pools. Available values are 'standard', 'ssd_hiiops', 'cold', 'ultra'. Changing the value of this attribute will trigger recreation of the cluster pool.
- created_
at str - Cluster pool creation date.
- crio_
config Mapping[str, str] - Crio configuration for pool nodes. Keys and values are expected to follow the crio option format.
- is_
public_ boolipv4 - Assign public IPv4 address to nodes in this pool. Changing the value of this attribute will trigger recreation of the cluster pool.
- kubelet_
config Mapping[str, str] - Kubelet configuration for pool nodes. Keys and values are expected to follow the kubelet configuration file format.
- labels Mapping[str, str]
- Labels applied to the cluster pool nodes.
- max_
node_ floatcount - Maximum number of nodes in the cluster pool.
- node_
count float - Current node count in the cluster pool.
- servergroup_
id str - Server group id
- servergroup_
name str - Server group name
- servergroup_
policy str - Server group policy: anti-affinity, soft-anti-affinity or affinity
- status str
- Cluster pool status.
- taints Mapping[str, str]
- Taints applied to the cluster pool nodes.
- flavor
Id String - Cluster pool node flavor ID. Changing the value of this attribute will trigger recreation of the cluster pool.
- min
Node NumberCount - Minimum number of nodes in the cluster pool.
- name String
- Cluster pool name. Changing the value of this attribute will trigger recreation of the cluster pool.
- auto
Healing BooleanEnabled - Enable/disable auto healing of cluster pool nodes.
- boot
Volume NumberSize - Cluster pool boot volume size. Must be set only for VM pools. Changing the value of this attribute will trigger recreation of the cluster pool.
- boot
Volume StringType - Cluster pool boot volume type. Must be set only for VM pools. Available values are 'standard', 'ssd_hiiops', 'cold', 'ultra'. Changing the value of this attribute will trigger recreation of the cluster pool.
- created
At String - Cluster pool creation date.
- crio
Config Map<String> - Crio configuration for pool nodes. Keys and values are expected to follow the crio option format.
- is
Public BooleanIpv4 - Assign public IPv4 address to nodes in this pool. Changing the value of this attribute will trigger recreation of the cluster pool.
- kubelet
Config Map<String> - Kubelet configuration for pool nodes. Keys and values are expected to follow the kubelet configuration file format.
- labels Map<String>
- Labels applied to the cluster pool nodes.
- max
Node NumberCount - Maximum number of nodes in the cluster pool.
- node
Count Number - Current node count in the cluster pool.
- servergroup
Id String - Server group id
- servergroup
Name String - Server group name
- servergroup
Policy String - Server group policy: anti-affinity, soft-anti-affinity or affinity
- status String
- Cluster pool status.
- taints Map<String>
- Taints applied to the cluster pool nodes.
K8sv2SecurityGroupRule, K8sv2SecurityGroupRuleArgs
- Direction string
- Available value is 'ingress', 'egress'
- Ethertype string
- Available value is 'IPv4', 'IPv6'
- Protocol string
- Available value is udp,tcp,any,ipv6-icmp,ipv6-route,ipv6-opts,ipv6-nonxt,ipv6-frag,ipv6-encap,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,50,112,0,4,ipip,ipencap
- Created
At string - Description string
- Id string
- Port
Range doubleMax - Port
Range doubleMin - Remote
Ip stringPrefix - Updated
At string
- Direction string
- Available value is 'ingress', 'egress'
- Ethertype string
- Available value is 'IPv4', 'IPv6'
- Protocol string
- Available value is udp,tcp,any,ipv6-icmp,ipv6-route,ipv6-opts,ipv6-nonxt,ipv6-frag,ipv6-encap,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,50,112,0,4,ipip,ipencap
- Created
At string - Description string
- Id string
- Port
Range float64Max - Port
Range float64Min - Remote
Ip stringPrefix - Updated
At string
- direction String
- Available value is 'ingress', 'egress'
- ethertype String
- Available value is 'IPv4', 'IPv6'
- protocol String
- Available value is udp,tcp,any,ipv6-icmp,ipv6-route,ipv6-opts,ipv6-nonxt,ipv6-frag,ipv6-encap,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,50,112,0,4,ipip,ipencap
- created
At String - description String
- id String
- port
Range DoubleMax - port
Range DoubleMin - remote
Ip StringPrefix - updated
At String
- direction string
- Available value is 'ingress', 'egress'
- ethertype string
- Available value is 'IPv4', 'IPv6'
- protocol string
- Available value is udp,tcp,any,ipv6-icmp,ipv6-route,ipv6-opts,ipv6-nonxt,ipv6-frag,ipv6-encap,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,50,112,0,4,ipip,ipencap
- created
At string - description string
- id string
- port
Range numberMax - port
Range numberMin - remote
Ip stringPrefix - updated
At string
- direction str
- Available value is 'ingress', 'egress'
- ethertype str
- Available value is 'IPv4', 'IPv6'
- protocol str
- Available value is udp,tcp,any,ipv6-icmp,ipv6-route,ipv6-opts,ipv6-nonxt,ipv6-frag,ipv6-encap,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,50,112,0,4,ipip,ipencap
- created_
at str - description str
- id str
- port_
range_ floatmax - port_
range_ floatmin - remote_
ip_ strprefix - updated_
at str
- direction String
- Available value is 'ingress', 'egress'
- ethertype String
- Available value is 'IPv4', 'IPv6'
- protocol String
- Available value is udp,tcp,any,ipv6-icmp,ipv6-route,ipv6-opts,ipv6-nonxt,ipv6-frag,ipv6-encap,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,50,112,0,4,ipip,ipencap
- created
At String - description String
- id String
- port
Range NumberMax - port
Range NumberMin - remote
Ip StringPrefix - updated
At String
K8sv2Timeouts, K8sv2TimeoutsArgs
Import
import using <project_id>:<region_id>:<cluster_name> format
$ pulumi import gcore:index/k8sv2:K8sv2 cluster1 1:6:cluster1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.