published on Tuesday, Nov 10, 2026 by UpCloudLtd
UpCloudpublished on Tuesday, Nov 10, 2026 by UpCloudLtd
This resource represents a Managed Kubernetes cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as upcloud from "@upcloud/pulumi-upcloud";
// Create a network for the Kubernetes cluster
const example = new upcloud.Network("example", {
name: "example-network",
zone: "de-fra1",
ipNetwork: {
address: "172.16.1.0/24",
dhcp: true,
family: "IPv4",
},
}, {
ignoreChanges: ["router"],
});
// Create a Kubernetes cluster
const exampleKubernetesCluster = new upcloud.KubernetesCluster("example", {
controlPlaneIpFilters: ["0.0.0.0/0"],
name: "exampleapp",
network: example.id,
zone: "de-fra1",
});
// Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
const example2 = new upcloud.Router("example2", {name: "example2-router"});
const example2Gateway = new upcloud.Gateway("example2", {
name: "example2-nat-gateway",
zone: "de-fra1",
features: ["nat"],
router: {
id: example2.id,
},
});
const example2Network = new upcloud.Network("example2", {
name: "example2-network",
zone: "de-fra1",
ipNetwork: {
address: "10.10.0.0/24",
dhcp: true,
family: "IPv4",
dhcpDefaultRoute: true,
},
router: example2.id,
});
const example2KubernetesCluster = new upcloud.KubernetesCluster("example2", {
controlPlaneIpFilters: ["0.0.0.0/0"],
name: "example2-cluster",
network: example2Network.id,
zone: "de-fra1",
plan: "prod-md",
privateNodeGroups: true,
});
import pulumi
import pulumi_upcloud as upcloud
# Create a network for the Kubernetes cluster
example = upcloud.Network("example",
name="example-network",
zone="de-fra1",
ip_network={
"address": "172.16.1.0/24",
"dhcp": True,
"family": "IPv4",
},
opts = pulumi.ResourceOptions(ignore_changes=["router"]))
# Create a Kubernetes cluster
example_kubernetes_cluster = upcloud.KubernetesCluster("example",
control_plane_ip_filters=["0.0.0.0/0"],
name="exampleapp",
network=example.id,
zone="de-fra1")
# Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
example2 = upcloud.Router("example2", name="example2-router")
example2_gateway = upcloud.Gateway("example2",
name="example2-nat-gateway",
zone="de-fra1",
features=["nat"],
router={
"id": example2.id,
})
example2_network = upcloud.Network("example2",
name="example2-network",
zone="de-fra1",
ip_network={
"address": "10.10.0.0/24",
"dhcp": True,
"family": "IPv4",
"dhcp_default_route": True,
},
router=example2.id)
example2_kubernetes_cluster = upcloud.KubernetesCluster("example2",
control_plane_ip_filters=["0.0.0.0/0"],
name="example2-cluster",
network=example2_network.id,
zone="de-fra1",
plan="prod-md",
private_node_groups=True)
package main
import (
"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a network for the Kubernetes cluster
example, err := upcloud.NewNetwork(ctx, "example", &upcloud.NetworkArgs{
Name: pulumi.String("example-network"),
Zone: pulumi.String("de-fra1"),
IpNetwork: &upcloud.NetworkIpNetworkArgs{
Address: pulumi.String("172.16.1.0/24"),
Dhcp: pulumi.Bool(true),
Family: pulumi.String("IPv4"),
},
}, pulumi.IgnoreChanges([]string{
"router",
}))
if err != nil {
return err
}
// Create a Kubernetes cluster
_, err = upcloud.NewKubernetesCluster(ctx, "example", &upcloud.KubernetesClusterArgs{
ControlPlaneIpFilters: pulumi.StringArray{
pulumi.String("0.0.0.0/0"),
},
Name: pulumi.String("exampleapp"),
Network: example.ID(),
Zone: pulumi.String("de-fra1"),
})
if err != nil {
return err
}
// Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
example2, err := upcloud.NewRouter(ctx, "example2", &upcloud.RouterArgs{
Name: pulumi.String("example2-router"),
})
if err != nil {
return err
}
_, err = upcloud.NewGateway(ctx, "example2", &upcloud.GatewayArgs{
Name: pulumi.String("example2-nat-gateway"),
Zone: pulumi.String("de-fra1"),
Features: pulumi.StringArray{
pulumi.String("nat"),
},
Router: &upcloud.GatewayRouterArgs{
Id: example2.ID(),
},
})
if err != nil {
return err
}
example2Network, err := upcloud.NewNetwork(ctx, "example2", &upcloud.NetworkArgs{
Name: pulumi.String("example2-network"),
Zone: pulumi.String("de-fra1"),
IpNetwork: &upcloud.NetworkIpNetworkArgs{
Address: pulumi.String("10.10.0.0/24"),
Dhcp: pulumi.Bool(true),
Family: pulumi.String("IPv4"),
DhcpDefaultRoute: pulumi.Bool(true),
},
Router: example2.ID(),
})
if err != nil {
return err
}
_, err = upcloud.NewKubernetesCluster(ctx, "example2", &upcloud.KubernetesClusterArgs{
ControlPlaneIpFilters: pulumi.StringArray{
pulumi.String("0.0.0.0/0"),
},
Name: pulumi.String("example2-cluster"),
Network: example2Network.ID(),
Zone: pulumi.String("de-fra1"),
Plan: pulumi.String("prod-md"),
PrivateNodeGroups: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using UpCloud = UpCloud.Pulumi.UpCloud;
return await Deployment.RunAsync(() =>
{
// Create a network for the Kubernetes cluster
var example = new UpCloud.Network("example", new()
{
Name = "example-network",
Zone = "de-fra1",
IpNetwork = new UpCloud.Inputs.NetworkIpNetworkArgs
{
Address = "172.16.1.0/24",
Dhcp = true,
Family = "IPv4",
},
}, new CustomResourceOptions
{
IgnoreChanges =
{
"router",
},
});
// Create a Kubernetes cluster
var exampleKubernetesCluster = new UpCloud.KubernetesCluster("example", new()
{
ControlPlaneIpFilters = new[]
{
"0.0.0.0/0",
},
Name = "exampleapp",
Network = example.Id,
Zone = "de-fra1",
});
// Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
var example2 = new UpCloud.Router("example2", new()
{
Name = "example2-router",
});
var example2Gateway = new UpCloud.Gateway("example2", new()
{
Name = "example2-nat-gateway",
Zone = "de-fra1",
Features = new[]
{
"nat",
},
Router = new UpCloud.Inputs.GatewayRouterArgs
{
Id = example2.Id,
},
});
var example2Network = new UpCloud.Network("example2", new()
{
Name = "example2-network",
Zone = "de-fra1",
IpNetwork = new UpCloud.Inputs.NetworkIpNetworkArgs
{
Address = "10.10.0.0/24",
Dhcp = true,
Family = "IPv4",
DhcpDefaultRoute = true,
},
Router = example2.Id,
});
var example2KubernetesCluster = new UpCloud.KubernetesCluster("example2", new()
{
ControlPlaneIpFilters = new[]
{
"0.0.0.0/0",
},
Name = "example2-cluster",
Network = example2Network.Id,
Zone = "de-fra1",
Plan = "prod-md",
PrivateNodeGroups = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.upcloud.Network;
import com.pulumi.upcloud.NetworkArgs;
import com.pulumi.upcloud.inputs.NetworkIpNetworkArgs;
import com.pulumi.upcloud.KubernetesCluster;
import com.pulumi.upcloud.KubernetesClusterArgs;
import com.pulumi.upcloud.Router;
import com.pulumi.upcloud.RouterArgs;
import com.pulumi.upcloud.Gateway;
import com.pulumi.upcloud.GatewayArgs;
import com.pulumi.upcloud.inputs.GatewayRouterArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
// Create a network for the Kubernetes cluster
var example = new Network("example", NetworkArgs.builder()
.name("example-network")
.zone("de-fra1")
.ipNetwork(NetworkIpNetworkArgs.builder()
.address("172.16.1.0/24")
.dhcp(true)
.family("IPv4")
.build())
.build(), CustomResourceOptions.builder()
.ignoreChanges("router")
.build());
// Create a Kubernetes cluster
var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
.controlPlaneIpFilters("0.0.0.0/0")
.name("exampleapp")
.network(example.id())
.zone("de-fra1")
.build());
// Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
var example2 = new Router("example2", RouterArgs.builder()
.name("example2-router")
.build());
var example2Gateway = new Gateway("example2Gateway", GatewayArgs.builder()
.name("example2-nat-gateway")
.zone("de-fra1")
.features("nat")
.router(GatewayRouterArgs.builder()
.id(example2.id())
.build())
.build());
var example2Network = new Network("example2Network", NetworkArgs.builder()
.name("example2-network")
.zone("de-fra1")
.ipNetwork(NetworkIpNetworkArgs.builder()
.address("10.10.0.0/24")
.dhcp(true)
.family("IPv4")
.dhcpDefaultRoute(true)
.build())
.router(example2.id())
.build());
var example2KubernetesCluster = new KubernetesCluster("example2KubernetesCluster", KubernetesClusterArgs.builder()
.controlPlaneIpFilters("0.0.0.0/0")
.name("example2-cluster")
.network(example2Network.id())
.zone("de-fra1")
.plan("prod-md")
.privateNodeGroups(true)
.build());
}
}
resources:
# Create a network for the Kubernetes cluster
example:
type: upcloud:Network
properties:
name: example-network
zone: de-fra1
ipNetwork:
address: 172.16.1.0/24
dhcp: true
family: IPv4
options:
ignoreChanges:
- router
# Create a Kubernetes cluster
exampleKubernetesCluster:
type: upcloud:KubernetesCluster
name: example
properties:
controlPlaneIpFilters:
- 0.0.0.0/0
name: exampleapp
network: ${example.id}
zone: de-fra1
# Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
example2:
type: upcloud:Router
properties:
name: example2-router
example2Gateway:
type: upcloud:Gateway
name: example2
properties:
name: example2-nat-gateway
zone: de-fra1
features:
- nat
router:
id: ${example2.id}
example2Network:
type: upcloud:Network
name: example2
properties:
name: example2-network
zone: de-fra1
ipNetwork:
address: 10.10.0.0/24
dhcp: true
family: IPv4
dhcpDefaultRoute: true
router: ${example2.id}
example2KubernetesCluster:
type: upcloud:KubernetesCluster
name: example2
properties:
controlPlaneIpFilters:
- 0.0.0.0/0
name: example2-cluster
network: ${example2Network.id}
zone: de-fra1
plan: prod-md
privateNodeGroups: true
Example coming soon!
Create KubernetesCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesCluster(name: string, args: KubernetesClusterArgs, opts?: CustomResourceOptions);@overload
def KubernetesCluster(resource_name: str,
args: KubernetesClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
control_plane_ip_filters: Optional[Sequence[str]] = None,
network: Optional[str] = None,
zone: Optional[str] = None,
fetch_kubeconfig: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
plan: Optional[str] = None,
private_node_groups: Optional[bool] = None,
storage_encryption: Optional[str] = None,
upgrade_strategy_type: Optional[str] = None,
version: Optional[str] = None)func NewKubernetesCluster(ctx *Context, name string, args KubernetesClusterArgs, opts ...ResourceOption) (*KubernetesCluster, error)public KubernetesCluster(string name, KubernetesClusterArgs args, CustomResourceOptions? opts = null)
public KubernetesCluster(String name, KubernetesClusterArgs args)
public KubernetesCluster(String name, KubernetesClusterArgs args, CustomResourceOptions options)
type: upcloud:KubernetesCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "upcloud_kubernetes_cluster" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args KubernetesClusterArgs
- 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 KubernetesClusterArgs
- 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 KubernetesClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesClusterArgs
- 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 kubernetesClusterResource = new UpCloud.KubernetesCluster("kubernetesClusterResource", new()
{
ControlPlaneIpFilters = new[]
{
"string",
},
Network = "string",
Zone = "string",
FetchKubeconfig = false,
Labels =
{
{ "string", "string" },
},
Name = "string",
Plan = "string",
PrivateNodeGroups = false,
StorageEncryption = "string",
UpgradeStrategyType = "string",
Version = "string",
});
example, err := upcloud.NewKubernetesCluster(ctx, "kubernetesClusterResource", &upcloud.KubernetesClusterArgs{
ControlPlaneIpFilters: pulumi.StringArray{
pulumi.String("string"),
},
Network: pulumi.String("string"),
Zone: pulumi.String("string"),
FetchKubeconfig: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Plan: pulumi.String("string"),
PrivateNodeGroups: pulumi.Bool(false),
StorageEncryption: pulumi.String("string"),
UpgradeStrategyType: pulumi.String("string"),
Version: pulumi.String("string"),
})
resource "upcloud_kubernetes_cluster" "kubernetesClusterResource" {
lifecycle {
create_before_destroy = true
}
control_plane_ip_filters = ["string"]
network = "string"
zone = "string"
fetch_kubeconfig = false
labels = {
"string" = "string"
}
name = "string"
plan = "string"
private_node_groups = false
storage_encryption = "string"
upgrade_strategy_type = "string"
version = "string"
}
var kubernetesClusterResource = new KubernetesCluster("kubernetesClusterResource", KubernetesClusterArgs.builder()
.controlPlaneIpFilters("string")
.network("string")
.zone("string")
.fetchKubeconfig(false)
.labels(Map.of("string", "string"))
.name("string")
.plan("string")
.privateNodeGroups(false)
.storageEncryption("string")
.upgradeStrategyType("string")
.version("string")
.build());
kubernetes_cluster_resource = upcloud.KubernetesCluster("kubernetesClusterResource",
control_plane_ip_filters=["string"],
network="string",
zone="string",
fetch_kubeconfig=False,
labels={
"string": "string",
},
name="string",
plan="string",
private_node_groups=False,
storage_encryption="string",
upgrade_strategy_type="string",
version="string")
const kubernetesClusterResource = new upcloud.KubernetesCluster("kubernetesClusterResource", {
controlPlaneIpFilters: ["string"],
network: "string",
zone: "string",
fetchKubeconfig: false,
labels: {
string: "string",
},
name: "string",
plan: "string",
privateNodeGroups: false,
storageEncryption: "string",
upgradeStrategyType: "string",
version: "string",
});
type: upcloud:KubernetesCluster
properties:
controlPlaneIpFilters:
- string
fetchKubeconfig: false
labels:
string: string
name: string
network: string
plan: string
privateNodeGroups: false
storageEncryption: string
upgradeStrategyType: string
version: string
zone: string
KubernetesCluster 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 KubernetesCluster resource accepts the following input properties:
- Control
Plane List<string>Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - Network string
- Network ID for the cluster to run in.
- Zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - Fetch
Kubeconfig bool - Labels Dictionary<string, string>
- User defined key-value pairs to classify the cluster.
- Name string
- Cluster name. Needs to be unique within the account.
- Plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - Private
Node boolGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- Storage
Encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - Upgrade
Strategy stringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - Version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
- Control
Plane []stringIp Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - Network string
- Network ID for the cluster to run in.
- Zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - Fetch
Kubeconfig bool - Labels map[string]string
- User defined key-value pairs to classify the cluster.
- Name string
- Cluster name. Needs to be unique within the account.
- Plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - Private
Node boolGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- Storage
Encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - Upgrade
Strategy stringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - Version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
- control_
plane_ list(string)ip_ filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - network string
- Network ID for the cluster to run in.
- zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - fetch_
kubeconfig bool - labels map(string)
- User defined key-value pairs to classify the cluster.
- name string
- Cluster name. Needs to be unique within the account.
- plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private_
node_ boolgroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- storage_
encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade_
strategy_ stringtype - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
- control
Plane List<String>Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - network String
- Network ID for the cluster to run in.
- zone String
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - fetch
Kubeconfig Boolean - labels Map<String,String>
- User defined key-value pairs to classify the cluster.
- name String
- Cluster name. Needs to be unique within the account.
- plan String
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private
Node BooleanGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- storage
Encryption String - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade
Strategy StringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version String
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
- control
Plane string[]Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - network string
- Network ID for the cluster to run in.
- zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - fetch
Kubeconfig boolean - labels {[key: string]: string}
- User defined key-value pairs to classify the cluster.
- name string
- Cluster name. Needs to be unique within the account.
- plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private
Node booleanGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- storage
Encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade
Strategy stringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
- control_
plane_ Sequence[str]ip_ filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - network str
- Network ID for the cluster to run in.
- zone str
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - fetch_
kubeconfig bool - labels Mapping[str, str]
- User defined key-value pairs to classify the cluster.
- name str
- Cluster name. Needs to be unique within the account.
- plan str
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private_
node_ boolgroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- storage_
encryption str - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade_
strategy_ strtype - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version str
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
- control
Plane List<String>Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - network String
- Network ID for the cluster to run in.
- zone String
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list. - fetch
Kubeconfig Boolean - labels Map<String>
- User defined key-value pairs to classify the cluster.
- name String
- Cluster name. Needs to be unique within the account.
- plan String
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private
Node BooleanGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- storage
Encryption String - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade
Strategy StringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version String
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesCluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig
Up
Cloud. Pulumi. Up Cloud. Outputs. Kubernetes Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - Network
Cidr string - Network CIDR for the given network. Computed automatically.
- Node
Groups List<string> - Names of the node groups configured to cluster
- State string
- Operational state of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig
Kubernetes
Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - Network
Cidr string - Network CIDR for the given network. Computed automatically.
- Node
Groups []string - Names of the node groups configured to cluster
- State string
- Operational state of the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- kubeconfig object
- Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - network_
cidr string - Network CIDR for the given network. Computed automatically.
- node_
groups list(string) - Names of the node groups configured to cluster
- state string
- Operational state of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Kubernetes
Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - network
Cidr String - Network CIDR for the given network. Computed automatically.
- node
Groups List<String> - Names of the node groups configured to cluster
- state String
- Operational state of the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Kubernetes
Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - network
Cidr string - Network CIDR for the given network. Computed automatically.
- node
Groups string[] - Names of the node groups configured to cluster
- state string
- Operational state of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Kubernetes
Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - network_
cidr str - Network CIDR for the given network. Computed automatically.
- node_
groups Sequence[str] - Names of the node groups configured to cluster
- state str
- Operational state of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- kubeconfig Property Map
- Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - network
Cidr String - Network CIDR for the given network. Computed automatically.
- node
Groups List<String> - Names of the node groups configured to cluster
- state String
- Operational state of the cluster.
Look up Existing KubernetesCluster Resource
Get an existing KubernetesCluster 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?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesCluster@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
control_plane_ip_filters: Optional[Sequence[str]] = None,
fetch_kubeconfig: Optional[bool] = None,
kubeconfig: Optional[KubernetesClusterKubeconfigArgs] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network: Optional[str] = None,
network_cidr: Optional[str] = None,
node_groups: Optional[Sequence[str]] = None,
plan: Optional[str] = None,
private_node_groups: Optional[bool] = None,
state: Optional[str] = None,
storage_encryption: Optional[str] = None,
upgrade_strategy_type: Optional[str] = None,
version: Optional[str] = None,
zone: Optional[str] = None) -> KubernetesClusterfunc GetKubernetesCluster(ctx *Context, name string, id IDInput, state *KubernetesClusterState, opts ...ResourceOption) (*KubernetesCluster, error)public static KubernetesCluster Get(string name, Input<string> id, KubernetesClusterState? state, CustomResourceOptions? opts = null)public static KubernetesCluster get(String name, Output<String> id, KubernetesClusterState state, CustomResourceOptions options)resources: existingKubernetesCluster: type: upcloud:KubernetesCluster get: id: ${id}import {
to = upcloud_kubernetes_cluster.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state KubernetesClusterState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state KubernetesClusterState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state KubernetesClusterState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state KubernetesClusterState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Control
Plane List<string>Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - Fetch
Kubeconfig bool - Kubeconfig
Up
Cloud. Pulumi. Up Cloud. Inputs. Kubernetes Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - Labels Dictionary<string, string>
- User defined key-value pairs to classify the cluster.
- Name string
- Cluster name. Needs to be unique within the account.
- Network string
- Network ID for the cluster to run in.
- Network
Cidr string - Network CIDR for the given network. Computed automatically.
- Node
Groups List<string> - Names of the node groups configured to cluster
- Plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - Private
Node boolGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- State string
- Operational state of the cluster.
- Storage
Encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - Upgrade
Strategy stringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - Version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - Zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
- Control
Plane []stringIp Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - Fetch
Kubeconfig bool - Kubeconfig
Kubernetes
Cluster Kubeconfig Args - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - Labels map[string]string
- User defined key-value pairs to classify the cluster.
- Name string
- Cluster name. Needs to be unique within the account.
- Network string
- Network ID for the cluster to run in.
- Network
Cidr string - Network CIDR for the given network. Computed automatically.
- Node
Groups []string - Names of the node groups configured to cluster
- Plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - Private
Node boolGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- State string
- Operational state of the cluster.
- Storage
Encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - Upgrade
Strategy stringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - Version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - Zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
- control_
plane_ list(string)ip_ filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - fetch_
kubeconfig bool - kubeconfig object
- Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - labels map(string)
- User defined key-value pairs to classify the cluster.
- name string
- Cluster name. Needs to be unique within the account.
- network string
- Network ID for the cluster to run in.
- network_
cidr string - Network CIDR for the given network. Computed automatically.
- node_
groups list(string) - Names of the node groups configured to cluster
- plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private_
node_ boolgroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- state string
- Operational state of the cluster.
- storage_
encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade_
strategy_ stringtype - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
- control
Plane List<String>Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - fetch
Kubeconfig Boolean - kubeconfig
Kubernetes
Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - labels Map<String,String>
- User defined key-value pairs to classify the cluster.
- name String
- Cluster name. Needs to be unique within the account.
- network String
- Network ID for the cluster to run in.
- network
Cidr String - Network CIDR for the given network. Computed automatically.
- node
Groups List<String> - Names of the node groups configured to cluster
- plan String
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private
Node BooleanGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- state String
- Operational state of the cluster.
- storage
Encryption String - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade
Strategy StringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version String
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - zone String
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
- control
Plane string[]Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - fetch
Kubeconfig boolean - kubeconfig
Kubernetes
Cluster Kubeconfig - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - labels {[key: string]: string}
- User defined key-value pairs to classify the cluster.
- name string
- Cluster name. Needs to be unique within the account.
- network string
- Network ID for the cluster to run in.
- network
Cidr string - Network CIDR for the given network. Computed automatically.
- node
Groups string[] - Names of the node groups configured to cluster
- plan string
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private
Node booleanGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- state string
- Operational state of the cluster.
- storage
Encryption string - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade
Strategy stringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version string
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - zone string
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
- control_
plane_ Sequence[str]ip_ filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - fetch_
kubeconfig bool - kubeconfig
Kubernetes
Cluster Kubeconfig Args - Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - labels Mapping[str, str]
- User defined key-value pairs to classify the cluster.
- name str
- Cluster name. Needs to be unique within the account.
- network str
- Network ID for the cluster to run in.
- network_
cidr str - Network CIDR for the given network. Computed automatically.
- node_
groups Sequence[str] - Names of the node groups configured to cluster
- plan str
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private_
node_ boolgroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- state str
- Operational state of the cluster.
- storage_
encryption str - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade_
strategy_ strtype - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version str
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - zone str
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
- control
Plane List<String>Ip Filters - IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use
["0.0.0.0/0"]. To deny access from all sources, use[]. Values set here do not restrict access to node groups or exposed Kubernetes services. - fetch
Kubeconfig Boolean - kubeconfig Property Map
- Cluster kubeconfig and connection details. Set only when
fetch_kubeconfigistrue. - labels Map<String>
- User defined key-value pairs to classify the cluster.
- name String
- Cluster name. Needs to be unique within the account.
- network String
- Network ID for the cluster to run in.
- network
Cidr String - Network CIDR for the given network. Computed automatically.
- node
Groups List<String> - Names of the node groups configured to cluster
- plan String
- The pricing plan used for the cluster. You can list available plans with
upctl kubernetes plans. - private
Node BooleanGroups - Enable private node groups. Private node groups requires a network that is routed through NAT gateway.
- state String
- Operational state of the cluster.
- storage
Encryption String - Set default storage encryption strategy for all nodes in the cluster. Valid values are
data-at-restandnone. - upgrade
Strategy StringType - The upgrade strategy to use when changing the cluster
version. If not set,manualstrategy will be used by default. When usingmanualstrategy, you must replace the existing node-groups to update them. - version String
- Kubernetes version ID, e.g.
1.31. You can list available version IDs withupctl kubernetes versions.Note that when changing the cluster version, `upgrade_strategy` will be taken into account. - zone String
- Zone in which the Kubernetes cluster will be hosted, e.g.
de-fra1. You can list available zones withupctl zone list.
Supporting Types
KubernetesClusterKubeconfig, KubernetesClusterKubeconfigArgs
- Client
Certificate string - TLS authentication client certificate, encoded (PEM).
- Client
Key string - Key to pair with
client_certificate, encoded (PEM). - Cluster
Ca stringCertificate - TLS authentication root certificate bundle, encoded (PEM).
- Host string
- Hostname of the cluster API. Defined as URI.
- Kubeconfig string
- Kubernetes config file contents for the cluster.
- Client
Certificate string - TLS authentication client certificate, encoded (PEM).
- Client
Key string - Key to pair with
client_certificate, encoded (PEM). - Cluster
Ca stringCertificate - TLS authentication root certificate bundle, encoded (PEM).
- Host string
- Hostname of the cluster API. Defined as URI.
- Kubeconfig string
- Kubernetes config file contents for the cluster.
- client_
certificate string - TLS authentication client certificate, encoded (PEM).
- client_
key string - Key to pair with
client_certificate, encoded (PEM). - cluster_
ca_ stringcertificate - TLS authentication root certificate bundle, encoded (PEM).
- host string
- Hostname of the cluster API. Defined as URI.
- kubeconfig string
- Kubernetes config file contents for the cluster.
- client
Certificate String - TLS authentication client certificate, encoded (PEM).
- client
Key String - Key to pair with
client_certificate, encoded (PEM). - cluster
Ca StringCertificate - TLS authentication root certificate bundle, encoded (PEM).
- host String
- Hostname of the cluster API. Defined as URI.
- kubeconfig String
- Kubernetes config file contents for the cluster.
- client
Certificate string - TLS authentication client certificate, encoded (PEM).
- client
Key string - Key to pair with
client_certificate, encoded (PEM). - cluster
Ca stringCertificate - TLS authentication root certificate bundle, encoded (PEM).
- host string
- Hostname of the cluster API. Defined as URI.
- kubeconfig string
- Kubernetes config file contents for the cluster.
- client_
certificate str - TLS authentication client certificate, encoded (PEM).
- client_
key str - Key to pair with
client_certificate, encoded (PEM). - cluster_
ca_ strcertificate - TLS authentication root certificate bundle, encoded (PEM).
- host str
- Hostname of the cluster API. Defined as URI.
- kubeconfig str
- Kubernetes config file contents for the cluster.
- client
Certificate String - TLS authentication client certificate, encoded (PEM).
- client
Key String - Key to pair with
client_certificate, encoded (PEM). - cluster
Ca StringCertificate - TLS authentication root certificate bundle, encoded (PEM).
- host String
- Hostname of the cluster API. Defined as URI.
- kubeconfig String
- Kubernetes config file contents for the cluster.
Package Details
- Repository
- upcloud UpCloudLtd/pulumi-upcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upcloudTerraform Provider.
UpCloudpublished on Tuesday, Nov 10, 2026 by UpCloudLtd