terraform-provider-stackitp.../docs/resources/ske_kubeconfig.md
Alexander Dahmen 3adff492b6
Update kubeconfig when invalid (#627)
- kubeconfig expires
- credentials rotation
- cluster recreation

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-01-20 14:18:49 +01:00

1.5 KiB

page_title subcategory description
stackit_ske_kubeconfig Resource - stackit SKE kubeconfig resource schema. Must have a region specified in the provider configuration.

stackit_ske_kubeconfig (Resource)

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
}

Schema

Required

  • cluster_name (String) Name of the SKE cluster.
  • project_id (String) STACKIT project ID to which the cluster is associated.

Optional

  • 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

Read-Only

  • creation_time (String) Date-time when the kubeconfig was created
  • expires_at (String) Timestamp when the kubeconfig expires
  • id (String) Terraform's internal resource ID. It is structured as "project_id,cluster_name,kube_config_id".
  • kube_config (String, Sensitive) Raw short-lived admin kubeconfig.
  • kube_config_id (String) Internally generated UUID to identify a kubeconfig resource in Terraform, since the SKE API doesnt return a kubeconfig identifier