You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"./test/infrastructure/docker/templates"]}): A map of providers to directories containing cluster templates. An example of the field is given below. See [Deploying a workload cluster](#deploying-a-workload-cluster) for how this is used.
76
+
77
+
```yaml
78
+
template_dirs:
79
+
docker:
80
+
- ./test/infrastructure/docker/templates
81
+
- <other-template-dir>
82
+
azure:
83
+
- <azure-template-dir>
84
+
aws:
85
+
- <aws-template-dir>
86
+
gcp:
87
+
- <gcp-template-dir>
88
+
```
89
+
74
90
**kustomize_substitutions** (Map{String: String}, default={}): An optional map of substitutions for `${}`-style placeholders in the
75
-
provider's yaml. **Note**: When running E2E tests locally using an existing cluster managed by Tilt, the following substitutions are required for successful tests:
91
+
provider's yaml. These substitutions are also used when deploying cluster templates. See [Deploying a workload cluster](#deploying-a-workload-cluster).
92
+
93
+
**Note**: When running E2E tests locally using an existing cluster managed by Tilt, the following substitutions are required for successful tests:
76
94
```yaml
77
95
kustomize_substitutions:
78
96
CLUSTER_TOPOLOGY: "true"
@@ -258,7 +276,27 @@ create a cluster. There are [example worker cluster
After your kind management cluster is up and running with Tilt, you can deploy a workload clusters in the Tilt web UI based off of YAML templates from specified directories. By default, templates are read from `./test/infrastructure/docker/templates`.
282
+
283
+
These deployment resources are found in the Tilt web UI under the label grouping `<provider>-cluster-templates` and `<provider>-clusterclasses` for each specified provider, i.e. `docker-cluster-templates` and `docker-clusterclasses`.
284
+
285
+
The `<provider>-cluster-templates` category contains cluster templates, you can create a cluster by clicking "Create cluster" or the clockwise arrow icon ⟳. Note that each time a cluster template is deployed, it deploys a new workload cluster in addition to the existing ones. To delete all clusters based off of a template, click on "Delete \<cluster-template\> cluster," and click on "Delete all workload clusters" to delete all workload clusters.
286
+
287
+
The `<provider>-clusterclasses` category contains ClusterClass definitions and you can create them by clicking on the "Create clusterclass" or the clockwise arrow icon ⟳ and delete them by clicking on "Delete clusterclass".
288
+
289
+
Variables in a cluster template are substituted with values from `kustomize_substitutions` in `tilt-settings.yaml`. The default substitutions are:
290
+
291
+
```yaml
292
+
kustomize_substitutions:
293
+
NAMESPACE: default
294
+
KUBERNETES_VERSION: v1.24.0
295
+
CONTROL_PLANE_MACHINE_COUNT: 1
296
+
WORKER_MACHINE_COUNT: 3
297
+
```
298
+
299
+
Lastly, cluster template directories can be specified from the `template_dirs` field in `tilt-settings.yaml`. See [tilt-settings fields](#tilt-settings-fields) for an example.
0 commit comments