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
At this point, you should be able to apply the `dev-test` ClusterClass and start creating/deleting `development` clusters through the Tilt UI.
38
69
39
70
## Using your own capi-openstack controller image for testing cluster creation or deletion
40
71
@@ -61,6 +92,15 @@ make docker-build docker-push
61
92
62
93
After generating `infrastructure-components.yaml`, replace the `us.gcr.io/k8s-artifacts-prod/capi-openstack/capi-openstack-controller:v0.3.4` with your image.
63
94
95
+
## Automatically Adding Images to OpenStack
96
+
97
+
Before you can create a Cluster, you will need a suitable image in OpenStack.
98
+
There is a convenient template available in `templates/images-template.yaml` for this purpose.
## Testing Cluster Creation using the 'dev-test' ClusterClass with Tilt
65
105
66
106
This guide demonstrates how to create a Kubernetes cluster using a ClusterClass, specifically designed for a development environment. It includes configuring secrets, applying the ClusterClass, and creating a cluster with Tilt.
# See templates/cluster-template-development.yaml and
137
+
# templates/clusterclass-dev-test.yaml for more variables.
96
138
97
139
# [Optional] Automatically apply a kustomization, e.g. for adding the clouds.yaml secret
98
140
additional_kustomizations:
@@ -107,8 +149,7 @@ After a while, you should be able to find resources called `CAPO.clusterclasses`
107
149
These shoud correspond to what exists in the `templates` folder and you should see widgets for applying and deleting them.
108
150
109
151
**Note:** When you apply a cluster template, there will be a `KUBERNETES_VERSION` variable.
110
-
This variable is used to pick the image used!
111
-
Ensure that an image named `ubuntu-2204-kube-{{ KUBERNETES_VERSION }}` is available in your environment, corresponding to that Kubernetes version.
152
+
Make sure that the image or sysext overlay you use exists for and works with that version!
112
153
113
154
**Note:** All clusters created from the dev-test ClusterClass will require a secret named `dev-test-cloud-config` with the `clouds.yaml` to be used by CAPO for interacting with OpenStack.
114
155
You can create it manually or see below how to make Tilt automate it.
Create a cluster using the development template, that makes use of the ClusterClass:
@@ -324,8 +365,9 @@ The entry point for the creation of the DevStack environment is the [create_devs
324
365
- AWS: [aws-project.sh][hack-ci-aws-project]
325
366
- GCE: [gce-project.sh][hack-ci-gce-project]
326
367
- OpenStack: [openstack.sh][hack-ci-openstack]
368
+
- Libvirt: [libvirt.sh][hack-ci-libvirt]
327
369
328
-
You can switch between these cloud providers, by setting the `RESOURCE_TYPE` environment variable to `aws-project`, `gce-project`or `openstack` respectively.
370
+
You can switch between these cloud providers, by setting the `RESOURCE_TYPE` environment variable to `aws-project`, `gce-project`, `openstack` or `libvirt` respectively.
0 commit comments