rancher2_cluster

Nivis 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 to null)
  • default_pod_security_admission_configuration_template_name (defaults to null)
  • description (defaults to null)
  • desired_agent_image (defaults to null)
  • desired_auth_image (defaults to null)
  • docker_root_dir (defaults to null)
  • driver (defaults to null)
  • enable_network_policy (defaults to null)
  • fleet_workspace_name (defaults to null)
  • id (defaults to null)
  • labels (defaults to null)
  • cfg_name (defaults to null)
  • windows_prefered_cluster (defaults to null)
  • agent_env_vars (defaults to null)
  • aks_config_v2 (defaults to null)
  • cluster_agent_deployment_customization (defaults to null)
  • cluster_auth_endpoint (defaults to null)
  • eks_config_v2 (defaults to null)
  • fleet_agent_deployment_customization (defaults to null)
  • gke_config_v2 (defaults to null)
  • imported_config (defaults to null)
  • k3s_config (defaults to null)
  • oke_config (defaults to null)
  • rke2_config (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • ca_cert
  • cluster_registration_token
  • default_project_id
  • enable_cluster_istio
  • istio_enabled
  • kube_config
  • system_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.