Skip to content

Commit 39ee0ac

Browse files
Merge pull request #377 from Nordix/minor-fix/adil
Improvements and fixes in baremetal guide
2 parents 95aebb3 + 5ce6db8 commit 39ee0ac

File tree

1 file changed

+45
-33
lines changed

1 file changed

+45
-33
lines changed

docs/user-guide/src/baremetal/guide.md

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,47 @@ This is a separate machine, e.g. your laptop or one of the servers, that has acc
113113

114114
```bash
115115
kubectl create namespace metal3
116-
clusterctl init --core cluster-api:v1.4.2 --bootstrap kubeadm:v1.4.2 --control-plane kubeadm:v1.4.2 --infrastructure=metal3:v1.4.0 -v5
116+
clusterctl init --core cluster-api --bootstrap kubeadm --control-plane kubeadm --infrastructure metal3
117+
# NOTE: In clusterctl init you can change the version of provider like this "cluster-api:v1.6.0",
118+
# if no version is given by deafult latest stable release will be used.
117119
```
118120

119121
## Install provisioning components
120122

123+
* Exporting necessary variables for baremetal operator and Ironic deployment.
124+
125+
```bash
126+
# The URL of the kernel to deploy.
127+
export DEPLOY_KERNEL_URL="http://172.22.0.1:6180/images/ironic-python-agent.kernel"
128+
129+
# The URL of the ramdisk to deploy.
130+
export DEPLOY_RAMDISK_URL="http://172.22.0.1:6180/images/ironic-python-agent.initramfs"
131+
132+
# The URL of the Ironic endpoint.
133+
export IRONIC_URL="http://172.22.0.1:6385/v1/"
134+
135+
# The URL of the Ironic inspector endpoint.
136+
export IRONIC_INSPECTOR_URL="http://172.22.0.1:5050/v1/"
137+
138+
# Do not use a dedicated CA certificate for Ironic API.
139+
# Any value provided in this variable disables additional CA certificate validation.
140+
# To provide a CA certificate, leave this variable unset.
141+
# If unset, then IRONIC_CA_CERT_B64 must be set.
142+
export IRONIC_NO_CA_CERT=true
143+
144+
# Disables basic authentication for Ironic API.
145+
# Any value provided in this variable disables authentication.
146+
# To enable authentication, leave this variable unset.
147+
# If unset, then IRONIC_USERNAME and IRONIC_PASSWORD must be set.
148+
export IRONIC_NO_BASIC_AUTH=true
149+
150+
# Disables basic authentication for Ironic inspector API.
151+
# Any value provided in this variable disables authentication.
152+
# To enable authentication, leave this variable unset.
153+
# If unset, then IRONIC_INSPECTOR_USERNAME and IRONIC_INSPECTOR_PASSWORD must be set.
154+
export IRONIC_INSPECTOR_NO_BASIC_AUTH=true
155+
```
156+
121157
* Launch baremetal operator.
122158

123159
```bash
@@ -178,44 +214,20 @@ This is a separate machine, e.g. your laptop or one of the servers, that has acc
178214
## Create and apply cluster, controlplane and worker template
179215

180216
```bash
181-
# The URL of the kernel to deploy.
182-
export DEPLOY_KERNEL_URL="http://172.22.0.1:6180/images/ironic-python-agent.kernel"
183-
184-
# The URL of the ramdisk to deploy.
185-
export DEPLOY_RAMDISK_URL="http://172.22.0.1:6180/images/ironic-python-agent.initramfs"
186-
187-
# The URL of the Ironic endpoint.
188-
export IRONIC_URL="http://172.22.0.1:6385/v1/"
189-
190-
# The URL of the Ironic inspector endpoint.
191-
export IRONIC_INSPECTOR_URL="http://172.22.0.1:5050/v1/"
192-
193-
# Do not use a dedicated CA certificate for Ironic API.
194-
# Any value provided in this variable disables additional CA certificate validation.
195-
# To provide a CA certificate, leave this variable unset.
196-
# If unset, then IRONIC_CA_CERT_B64 must be set.
197-
export IRONIC_NO_CA_CERT=true
198-
199-
# Disables basic authentication for Ironic API.
200-
# Any value provided in this variable disables authentication.
201-
# To enable authentication, leave this variable unset.
202-
# If unset, then IRONIC_USERNAME and IRONIC_PASSWORD must be set.
203-
export IRONIC_NO_BASIC_AUTH=true
204-
205-
# Disables basic authentication for Ironic inspector API.
206-
# Any value provided in this variable disables authentication.
207-
# To enable authentication, leave this variable unset.
208-
# If unset, then IRONIC_INSPECTOR_USERNAME and IRONIC_INSPECTOR_PASSWORD must be set.
209-
export IRONIC_INSPECTOR_NO_BASIC_AUTH=true
217+
#API endpoint IP and port for target cluster
218+
export CLUSTER_APIENDPOINT_HOST="192.168.111.249"
219+
export CLUSTER_APIENDPOINT_PORT="6443"
210220

211221
# Export node image variable and node image hash varibale that we created before.
212222
# Change name according to what was downlowded from artifactory
213-
export IMAGE_RAW_URL=http://172.22.0.1/images/CENTOS_9_NODE_IMAGE_K8S_v1.27.1-raw.img
214-
export IMAGE_RAW_CHECKSUM=http://172.22.0.1/images/CENTOS_9_NODE_IMAGE_K8S_v1.27.1-raw.img.sha256sum
223+
export IMAGE_URL=http://172.22.0.1/images/CENTOS_9_NODE_IMAGE_K8S_v1.27.1-raw.img
224+
export IMAGE_CHECKSUM=http://172.22.0.1/images/CENTOS_9_NODE_IMAGE_K8S_v1.27.1-raw.img.sha256sum
225+
export IMAGE_CHECKSUM_TYPE=sha256
226+
export IMAGE_FORMAT=raw
215227

216228
# Generate templates with clusterctl, change control plane and worker count according to
217229
# the number of BareMetalHosts
218-
clusterctl generate cluster capm3-cluster --flavor development \
230+
clusterctl generate cluster capm3-cluster \
219231
--kubernetes-version v1.27.0 \
220232
--control-plane-machine-count=3 \
221233
--worker-machine-count=3 \

0 commit comments

Comments
 (0)