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
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,13 @@ Next install our CAPMS provider into the cluster.
18
18
make push-to-capi-lab
19
19
```
20
20
21
-
Before creating a cluster some manual steps are required beforehand: you need to allocate a node network.
21
+
Before creating a cluster the control plane IP needs to be created first:
22
22
23
23
```bash
24
-
make -C capi-lab node-network control-plane-ip
24
+
make -C capi-lab control-plane-ip
25
25
```
26
26
27
-
A basic cluster configuration that relies on `config/clusterctl-templates/cluster-template.yaml` and uses the aforementioned node network can be generated and applied to the management cluster using a make target.
27
+
A basic cluster configuration that relies on `config/clusterctl-templates/cluster-template-calico.yaml` and uses the aforementioned IP can be generated and applied to the management cluster using a make target.
28
28
29
29
```bash
30
30
make -C capi-lab apply-sample-cluster
@@ -159,7 +159,6 @@ export METAL_API_URL=
159
159
160
160
export METAL_PARTITION=
161
161
export METAL_PROJECT_ID=
162
-
export METAL_NODE_NETWORK_ID=
163
162
export CONTROL_PLANE_IP=
164
163
165
164
export FIREWALL_MACHINE_IMAGE=
@@ -183,11 +182,10 @@ export project_name=
183
182
export tenant_name=
184
183
```
185
184
186
-
Create project, node network and control plane ip if needed:
185
+
Create project and control plane ip if needed:
187
186
188
187
```bash
189
188
metalctl project create --name $project_name --tenant $tenant_name --description "Cluster API test project"
export CONTROL_PLANE_IP=$(metalctl network ip create --network internet --project $METAL_PROJECT_ID --name "$CLUSTER_NAME-vip" --type static -o template --template "{{ .ipaddress }}")
77
69
```
78
70
79
71
For your first cluster, it is advised to start with our generated template. Ensure that the namespaced cluster name is unique within the metal stack project.
Apply the generated manifest from the `clusterctl` output.
@@ -100,51 +92,7 @@ Apply the generated manifest from the `clusterctl` output.
100
92
kubectl apply -f <manifest>
101
93
```
102
94
103
-
Once your control plane and worker machines have been provisioned, you need to install your CNI of choice into your created cluster. This is required due to CAPI. An example is provided below:
104
-
105
-
```bash
106
-
# get the kubeconfig
107
-
clusterctl get kubeconfig metal-test > capms-cluster.kubeconfig
Meanwhile, the `metal-ccm` has to be deployed for the machines to reach `Running` phase. For this use the [`config/target-cluster/metal-ccm.yaml` template](config/target-cluster/metal-ccm.yaml) and fill in the required variables.
0 commit comments