@@ -19,7 +19,7 @@ Spectro Cloud public images
1919## Custom Image Generation
2020Refer [ image-generation/] ( image-generation/README.md )
2121
22- ## Set up
22+ ## Hello world
2323
2424- Create kind cluster
2525``` bash
@@ -29,13 +29,35 @@ kind create cluster --name=maas-cluster
2929- Install clusterctl v1beta1
3030https://release-1-1.cluster-api.sigs.k8s.io/user/quick-start.html
3131
32+ - Setup clusterctl configuration ` ~/.cluster-api/clusterctl.yaml `
33+ ```
34+ # MAAS access endpoint and key
35+ MAAS_API_KEY: <maas-api-key>
36+ MAAS_ENDPOINT: http://<maas-endpoint>/MAAS
37+ MAAS_DNS_DOMAIN: maas.domain
38+
39+ # Cluster configuration
40+ KUBERNETES_VERSION: v1.26.4
41+ CONTROL_PLANE_MACHINE_IMAGE: custom/u-2204-0-k-1264-0
42+ CONTROL_PLANE_MACHINE_MINCPU: 4
43+ CONTROL_PLANE_MACHINE_MINMEMORY: 8192
44+ WORKER_MACHINE_IMAGE: custom/u-2204-0-k-1264-0
45+ WORKER_MACHINE_MINCPU: 4
46+ WORKER_MACHINE_MINMEMORY: 8192
47+
48+ # Selecting machine based on resourcepool (optional) and machine tag (optional)
49+ CONTROL_PLANE_MACHINE_RESOURCEPOOL: resorcepool-controller
50+ CONTROL_PLANE_MACHINE_TAG: hello-world
51+ WORKER_MACHINE_RESOURCEPOOL: resourcepool-worker
52+ WORKER_MACHINE_TAG: hello-world
53+ ```
3254- Initialize infrastructure
3355``` bash
3456clusterctl init --infrastructure maas:v0.5.0
3557```
3658- Generate and create cluster
3759```
38- clusterctl generate cluster t-cluster --infrastructure=maas:v0.5.0 | kubectl apply -f -
60+ clusterctl generate cluster t-cluster --infrastructure=maas:v0.5.0 --kubernetes-version v1.26.4 --control-plane-machine-count=1 --worker-machine-count=3 | kubectl apply -f -
3961```
4062
4163## Developer Guide
@@ -79,7 +101,6 @@ clusterctl init --infrastructure maas:v0.5.0
79101
80102
81103## Install CRDs
82-
83104### v1beta1 v0.5.0 release
84105- Generate cluster using
85106``` shell
0 commit comments