rancher2_cluster_v2Nivis Nix constructor for the rancher2_cluster_v2 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,
kubernetes_version,
annotations ? null,
cloud_credential_secret_name ? null,
default_cluster_role_for_project_members ? null,
default_pod_security_admission_configuration_template_name ? null,
enable_network_policy ? null,
fleet_namespace ? null,
id ? null,
labels ? null,
cfg_name ? null,
agent_env_vars ? null,
cluster_agent_deployment_customization ? null,
fleet_agent_deployment_customization ? null,
local_auth_endpoint ? null,
rke_config ? null,
timeouts ? null,
overrides ? {}
}Required arguments
kubernetes_version
Optional arguments
annotations(defaults tonull)cloud_credential_secret_name(defaults tonull)default_cluster_role_for_project_members(defaults tonull)default_pod_security_admission_configuration_template_name(defaults tonull)enable_network_policy(defaults tonull)fleet_namespace(defaults tonull)id(defaults tonull)labels(defaults tonull)cfg_name(defaults tonull)agent_env_vars(defaults tonull)cluster_agent_deployment_customization(defaults tonull)fleet_agent_deployment_customization(defaults tonull)local_auth_endpoint(defaults tonull)rke_config(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
cluster_registration_tokencluster_v1_idkube_configlocal_auth_endpoint_ca_sync_requiredresource_version
Example
rancher2_cluster_v2 {
name = "cluster_v2";
kubernetes_version = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.