published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
SKE kubeconfig resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_ske_kubeconfig" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
cluster_name = "example-cluster"
refresh = true
expiration = 7200 # 2 hours
refresh_before = 3600 # 1 hour
}
Create SkeKubeconfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SkeKubeconfig(name: string, args: SkeKubeconfigArgs, opts?: CustomResourceOptions);@overload
def SkeKubeconfig(resource_name: str,
args: SkeKubeconfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SkeKubeconfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
project_id: Optional[str] = None,
expiration: Optional[int] = None,
refresh: Optional[bool] = None,
refresh_before: Optional[int] = None,
region: Optional[str] = None)func NewSkeKubeconfig(ctx *Context, name string, args SkeKubeconfigArgs, opts ...ResourceOption) (*SkeKubeconfig, error)public SkeKubeconfig(string name, SkeKubeconfigArgs args, CustomResourceOptions? opts = null)
public SkeKubeconfig(String name, SkeKubeconfigArgs args)
public SkeKubeconfig(String name, SkeKubeconfigArgs args, CustomResourceOptions options)
type: stackit:SkeKubeconfig
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 SkeKubeconfigArgs
- 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 SkeKubeconfigArgs
- 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 SkeKubeconfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SkeKubeconfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SkeKubeconfigArgs
- 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 skeKubeconfigResource = new Stackit.SkeKubeconfig("skeKubeconfigResource", new()
{
ClusterName = "string",
ProjectId = "string",
Expiration = 0,
Refresh = false,
RefreshBefore = 0,
Region = "string",
});
example, err := stackit.NewSkeKubeconfig(ctx, "skeKubeconfigResource", &stackit.SkeKubeconfigArgs{
ClusterName: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Expiration: pulumi.Int(0),
Refresh: pulumi.Bool(false),
RefreshBefore: pulumi.Int(0),
Region: pulumi.String("string"),
})
var skeKubeconfigResource = new SkeKubeconfig("skeKubeconfigResource", SkeKubeconfigArgs.builder()
.clusterName("string")
.projectId("string")
.expiration(0)
.refresh(false)
.refreshBefore(0)
.region("string")
.build());
ske_kubeconfig_resource = stackit.SkeKubeconfig("skeKubeconfigResource",
cluster_name="string",
project_id="string",
expiration=0,
refresh=False,
refresh_before=0,
region="string")
const skeKubeconfigResource = new stackit.SkeKubeconfig("skeKubeconfigResource", {
clusterName: "string",
projectId: "string",
expiration: 0,
refresh: false,
refreshBefore: 0,
region: "string",
});
type: stackit:SkeKubeconfig
properties:
clusterName: string
expiration: 0
projectId: string
refresh: false
refreshBefore: 0
region: string
SkeKubeconfig 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 SkeKubeconfig resource accepts the following input properties:
- Cluster
Name string - Name of the SKE cluster.
- Project
Id string - STACKIT project ID to which the cluster is associated.
- Expiration int
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - Refresh bool
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- Refresh
Before int - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- Region string
- The resource region. If not defined, the provider region is used.
- Cluster
Name string - Name of the SKE cluster.
- Project
Id string - STACKIT project ID to which the cluster is associated.
- Expiration int
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - Refresh bool
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- Refresh
Before int - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- Region string
- The resource region. If not defined, the provider region is used.
- cluster
Name String - Name of the SKE cluster.
- project
Id String - STACKIT project ID to which the cluster is associated.
- expiration Integer
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - refresh Boolean
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh
Before Integer - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region String
- The resource region. If not defined, the provider region is used.
- cluster
Name string - Name of the SKE cluster.
- project
Id string - STACKIT project ID to which the cluster is associated.
- expiration number
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - refresh boolean
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh
Before number - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region string
- The resource region. If not defined, the provider region is used.
- cluster_
name str - Name of the SKE cluster.
- project_
id str - STACKIT project ID to which the cluster is associated.
- expiration int
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - refresh bool
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh_
before int - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region str
- The resource region. If not defined, the provider region is used.
- cluster
Name String - Name of the SKE cluster.
- project
Id String - STACKIT project ID to which the cluster is associated.
- expiration Number
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - refresh Boolean
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh
Before Number - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region String
- The resource region. If not defined, the provider region is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the SkeKubeconfig resource produces the following output properties:
- Creation
Time string - Date-time when the kubeconfig was created
- Expires
At string - Timestamp when the kubeconfig expires
- Id string
- The provider-assigned unique ID for this managed resource.
- Kube
Config string - Raw short-lived admin kubeconfig.
- Kube
Config stringId
- Creation
Time string - Date-time when the kubeconfig was created
- Expires
At string - Timestamp when the kubeconfig expires
- Id string
- The provider-assigned unique ID for this managed resource.
- Kube
Config string - Raw short-lived admin kubeconfig.
- Kube
Config stringId
- creation
Time String - Date-time when the kubeconfig was created
- expires
At String - Timestamp when the kubeconfig expires
- id String
- The provider-assigned unique ID for this managed resource.
- kube
Config String - Raw short-lived admin kubeconfig.
- kube
Config StringId
- creation
Time string - Date-time when the kubeconfig was created
- expires
At string - Timestamp when the kubeconfig expires
- id string
- The provider-assigned unique ID for this managed resource.
- kube
Config string - Raw short-lived admin kubeconfig.
- kube
Config stringId
- creation_
time str - Date-time when the kubeconfig was created
- expires_
at str - Timestamp when the kubeconfig expires
- id str
- The provider-assigned unique ID for this managed resource.
- kube_
config str - Raw short-lived admin kubeconfig.
- kube_
config_ strid
- creation
Time String - Date-time when the kubeconfig was created
- expires
At String - Timestamp when the kubeconfig expires
- id String
- The provider-assigned unique ID for this managed resource.
- kube
Config String - Raw short-lived admin kubeconfig.
- kube
Config StringId
Look up Existing SkeKubeconfig Resource
Get an existing SkeKubeconfig 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?: SkeKubeconfigState, opts?: CustomResourceOptions): SkeKubeconfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
creation_time: Optional[str] = None,
expiration: Optional[int] = None,
expires_at: Optional[str] = None,
kube_config: Optional[str] = None,
kube_config_id: Optional[str] = None,
project_id: Optional[str] = None,
refresh: Optional[bool] = None,
refresh_before: Optional[int] = None,
region: Optional[str] = None) -> SkeKubeconfigfunc GetSkeKubeconfig(ctx *Context, name string, id IDInput, state *SkeKubeconfigState, opts ...ResourceOption) (*SkeKubeconfig, error)public static SkeKubeconfig Get(string name, Input<string> id, SkeKubeconfigState? state, CustomResourceOptions? opts = null)public static SkeKubeconfig get(String name, Output<String> id, SkeKubeconfigState state, CustomResourceOptions options)resources: _: type: stackit:SkeKubeconfig 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.
- Cluster
Name string - Name of the SKE cluster.
- Creation
Time string - Date-time when the kubeconfig was created
- Expiration int
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - Expires
At string - Timestamp when the kubeconfig expires
- Kube
Config string - Raw short-lived admin kubeconfig.
- Kube
Config stringId - Project
Id string - STACKIT project ID to which the cluster is associated.
- Refresh bool
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- Refresh
Before int - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- Region string
- The resource region. If not defined, the provider region is used.
- Cluster
Name string - Name of the SKE cluster.
- Creation
Time string - Date-time when the kubeconfig was created
- Expiration int
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - Expires
At string - Timestamp when the kubeconfig expires
- Kube
Config string - Raw short-lived admin kubeconfig.
- Kube
Config stringId - Project
Id string - STACKIT project ID to which the cluster is associated.
- Refresh bool
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- Refresh
Before int - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- Region string
- The resource region. If not defined, the provider region is used.
- cluster
Name String - Name of the SKE cluster.
- creation
Time String - Date-time when the kubeconfig was created
- expiration Integer
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - expires
At String - Timestamp when the kubeconfig expires
- kube
Config String - Raw short-lived admin kubeconfig.
- kube
Config StringId - project
Id String - STACKIT project ID to which the cluster is associated.
- refresh Boolean
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh
Before Integer - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region String
- The resource region. If not defined, the provider region is used.
- cluster
Name string - Name of the SKE cluster.
- creation
Time string - Date-time when the kubeconfig was created
- expiration number
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - expires
At string - Timestamp when the kubeconfig expires
- kube
Config string - Raw short-lived admin kubeconfig.
- kube
Config stringId - project
Id string - STACKIT project ID to which the cluster is associated.
- refresh boolean
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh
Before number - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region string
- The resource region. If not defined, the provider region is used.
- cluster_
name str - Name of the SKE cluster.
- creation_
time str - Date-time when the kubeconfig was created
- expiration int
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - expires_
at str - Timestamp when the kubeconfig expires
- kube_
config str - Raw short-lived admin kubeconfig.
- kube_
config_ strid - project_
id str - STACKIT project ID to which the cluster is associated.
- refresh bool
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh_
before int - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region str
- The resource region. If not defined, the provider region is used.
- cluster
Name String - Name of the SKE cluster.
- creation
Time String - Date-time when the kubeconfig was created
- expiration Number
- Expiration time of the kubeconfig, in seconds. Defaults to
3600 - expires
At String - Timestamp when the kubeconfig expires
- kube
Config String - Raw short-lived admin kubeconfig.
- kube
Config StringId - project
Id String - STACKIT project ID to which the cluster is associated.
- refresh Boolean
- If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
- refresh
Before Number - Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
- region String
- The resource region. If not defined, the provider region is used.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
