rancher2_clusterNivis Nix constructor for the rancher2_cluster resource (provider rancher2). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
annotations ? null,
default_pod_security_admission_configuration_template_name ? null,
description ? null,
desired_agent_image ? null,
desired_auth_image ? null,
docker_root_dir ? null,
driver ? null,
enable_network_policy ? null,
fleet_workspace_name ? null,
id ? null,
labels ? null,
cfg_name ? null,
windows_prefered_cluster ? null,
agent_env_vars ? null,
aks_config_v2 ? null,
cluster_agent_deployment_customization ? null,
cluster_auth_endpoint ? null,
eks_config_v2 ? null,
fleet_agent_deployment_customization ? null,
gke_config_v2 ? null,
imported_config ? null,
k3s_config ? null,
oke_config ? null,
rke2_config ? null,
timeouts ? null,
overrides ? {}
}Required arguments
_None._
Optional arguments
annotations(defaults tonull)default_pod_security_admission_configuration_template_name(defaults tonull)description(defaults tonull)desired_agent_image(defaults tonull)desired_auth_image(defaults tonull)docker_root_dir(defaults tonull)driver(defaults tonull)enable_network_policy(defaults tonull)fleet_workspace_name(defaults tonull)id(defaults tonull)labels(defaults tonull)cfg_name(defaults tonull)windows_prefered_cluster(defaults tonull)agent_env_vars(defaults tonull)aks_config_v2(defaults tonull)cluster_agent_deployment_customization(defaults tonull)cluster_auth_endpoint(defaults tonull)eks_config_v2(defaults tonull)fleet_agent_deployment_customization(defaults tonull)gke_config_v2(defaults tonull)imported_config(defaults tonull)k3s_config(defaults tonull)oke_config(defaults tonull)rke2_config(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
ca_certcluster_registration_tokendefault_project_idenable_cluster_istioistio_enabledkube_configsystem_project_id
Example
rancher2_cluster {
name = "cluster";
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.