| page_title | cozystack_kubernetes Data Source - cozystack |
|---|---|
| subcategory | |
| description | Read an existing Cozystack Kubernetes cluster by name and namespace. |
Read an existing Cozystack Kubernetes cluster by name and namespace.
data "cozystack_kubernetes" "cluster" {
name = "cluster"
namespace = "tenant-root"
}
# The platform materialises its own defaults on read, so the effective Talos
# release is reported even for a cluster that never pinned one.
output "cluster_talos_version" {
value = data.cozystack_kubernetes.cluster.talos.version
}
output "cluster_oidc_mode" {
value = data.cozystack_kubernetes.cluster.oidc.mode
}name(String) Kubernetes cluster name.namespace(String) Tenant namespace.
chart_version(String) Deployed chart version.control_plane(Attributes) Tenant control-plane configuration. (see below for nested schema)host(String) External hostname for the cluster.id(String) Synthetic identifiernamespace/name.images(Attributes) Image overrides for air-gapped or rate-limited registries. (see below for nested schema)kubeconfig(String, Sensitive) Admin kubeconfig for the cluster.oidc(Attributes) OIDC authentication and per-user RBAC for the tenant kube-apiserver. (see below for nested schema)ready(Boolean) Whether the application'sReadycondition is true.storage_class(String) StorageClass used to store the data.talos(Attributes) Talos worker OS image coordinates. (see below for nested schema)uid(String) Server-assigned object UID (metadata.uid).version(String) Kubernetes version.
Read-Only:
api_server(Attributes) API-server passthrough configuration. (see below for nested schema)
Read-Only:
extra_args(List of String) Extra kube-apiserver command-line flags.extra_volume_mounts(List of String) Extra kube-apiserver volume mounts, as JSON documents.extra_volumes(List of String) Extra control-plane volumes, as JSON documents.
Read-Only:
kubectl(String) Bootstrap-token Job image.talos_csr_signer(String) talos-csr-signer sidecar image.wait_for_kubeconfig(String) wait-for-kubeconfig init container image.
Read-Only:
custom_config(Attributes) Tenant-supplied AuthenticationConfiguration. (see below for nested schema)mode(String) Identity mode.users(Attributes List) Users granted access to the tenant cluster. (see below for nested schema)
Read-Only:
config(String) Inline AuthenticationConfiguration YAML.secret_ref(Attributes) Secret holding the AuthenticationConfiguration. (see below for nested schema)
Read-Only:
name(String) Secret name.
Read-Only:
email(String) Email claim matched for this binding.role(String) Bound role.
Read-Only:
image_factory_url(String) Talos Image Factory base URL.installer_repository(String) Talos installer OCI repository prefix.schematic_id(String) Talos image-factory schematic ID.version(String) Talos release used for workers.