# rancher/cluster-template-examples architecture

> Architecture diagram of the GitHub repository rancher/cluster-template-examples, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rancher/cluster-template-examples
- Repository: https://github.com/rancher/cluster-template-examples

## Overview

This repository is a Helm chart for configuring and creating RKE2 clusters. The documented workflow is to choose general and provider-specific values, then install the chart through Helm; Rancher Manager is also documented as a way to add the chart repository. The README identifies Helm release history as the versioning and rollback mechanism. Source excerpts were not provided, so the chart’s internal template relationships are not expanded beyond what the README supports.

Main entry points: [`charts/values.yaml`](https://github.com/rancher/cluster-template-examples/blob/main/charts/values.yaml) (General values), [`charts/templates`](https://github.com/rancher/cluster-template-examples/tree/main/charts/templates) (Cluster templates), [`charts/values-aws.yaml`](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-aws.yaml) (AWS values), [`charts/values-azure.yaml`](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-azure.yaml) (Azure values)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_configuration["Cluster configuration"]
  node_general_values["General values<br/>[values.yaml]"]
  node_aws_values["AWS values<br/>[values-aws.yaml]"]
  node_azure_values["Azure values<br/>[values-azure.yaml]"]
  node_do_values["DigitalOcean values<br/>[values-do.yaml]"]
  node_harvester_values["Harvester values"]
  node_vsphere_values["vSphere values"]
end

subgraph group_chart["Helm chart"]
  node_chart_templates["Cluster templates"]
end

subgraph group_operations["Cluster operations"]
  node_rke2_cluster[("RKE2 cluster")]
  node_release_history[("Release history")]
end

node_operator(("Cluster operator"))
node_helm{{"Helm"}}
node_rancher_manager["Rancher Manager"]

node_operator -->|"configures"| node_general_values
node_operator -->|"selects provider"| node_aws_values
node_operator -->|"selects provider"| node_azure_values
node_operator -->|"selects provider"| node_do_values
node_operator -->|"selects provider"| node_harvester_values
node_operator -->|"selects provider"| node_vsphere_values
node_operator -->|"installs chart"| node_helm
node_general_values -->|"provides configuration"| node_helm
node_helm -->|"applies chart"| node_chart_templates
node_chart_templates -->|"creates cluster"| node_rke2_cluster
node_helm -->|"tracks releases"| node_release_history
node_operator -->|"uses UI"| node_rancher_manager
node_rancher_manager -->|"adds chart repository"| node_helm

click node_general_values "https://github.com/rancher/cluster-template-examples/blob/main/charts/values.yaml"
click node_aws_values "https://github.com/rancher/cluster-template-examples/blob/main/charts/values-aws.yaml"
click node_azure_values "https://github.com/rancher/cluster-template-examples/blob/main/charts/values-azure.yaml"
click node_do_values "https://github.com/rancher/cluster-template-examples/blob/main/charts/values-do.yaml"
click node_harvester_values "https://github.com/rancher/cluster-template-examples/blob/main/charts/values-harvester.yaml"
click node_vsphere_values "https://github.com/rancher/cluster-template-examples/blob/main/charts/values-vsphere.yaml"
click node_chart_templates "https://github.com/rancher/cluster-template-examples/tree/main/charts/templates"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_general_values,node_aws_values,node_azure_values,node_do_values,node_harvester_values,node_vsphere_values toneBlue
class node_chart_templates toneAmber
class node_rke2_cluster,node_release_history toneMint
class node_operator,node_helm,node_rancher_manager toneIndigo
```

## Components

### Cluster configuration

- [General values](https://github.com/rancher/cluster-template-examples/blob/main/charts/values.yaml): `charts/values.yaml`
- [AWS values](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-aws.yaml): `charts/values-aws.yaml`
- [Azure values](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-azure.yaml): `charts/values-azure.yaml`
- [DigitalOcean values](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-do.yaml): `charts/values-do.yaml`
- [Harvester values](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-harvester.yaml): `charts/values-harvester.yaml`
- [vSphere values](https://github.com/rancher/cluster-template-examples/blob/main/charts/values-vsphere.yaml): `charts/values-vsphere.yaml`

### Helm chart

- [Cluster templates](https://github.com/rancher/cluster-template-examples/tree/main/charts/templates): `charts/templates`

### Cluster operations

- **RKE2 cluster**
- **Release history**

### Other components

- **Cluster operator**
- **Helm**
- **Rancher Manager**

## Connections

- Cluster operator → General values: configures (evidence: `README.md`)
- Cluster operator → AWS values: selects provider (evidence: `README.md`)
- Cluster operator → Azure values: selects provider (evidence: `README.md`)
- Cluster operator → DigitalOcean values: selects provider (evidence: `README.md`)
- Cluster operator → Harvester values: selects provider (evidence: `README.md`)
- Cluster operator → vSphere values: selects provider (evidence: `README.md`)
- Cluster operator → Helm: installs chart (evidence: `README.md`)
- General values → Helm: provides configuration (evidence: `README.md`)
- Helm → Cluster templates: applies chart (evidence: `README.md`)
- Cluster templates → RKE2 cluster: creates cluster (evidence: `README.md`)
- Helm → Release history: tracks releases (evidence: `README.md`)
- Cluster operator → Rancher Manager: uses UI (evidence: `README.md`)
- Rancher Manager → Helm: adds chart repository (evidence: `README.md`)
