Skip to content

Commit 17fcb80

Browse files
authored
Merge pull request #94725 from johnwilkins/OSDOCS-14842.1
OSDOCS-14842: Added fixes for OSDOCS-14842
2 parents c64f292 + 8d10e45 commit 17fcb80

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

modules/capi-yaml-machine-set-bare-metal.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The compute machine set also references the cluster resource and machine templat
1111

1212
[source,yaml]
1313
----
14-
apiVersion: cluster.x-k8s.io/v1
14+
apiVersion: cluster.x-k8s.io/v1beta1
1515
kind: MachineSet
1616
metadata:
1717
name: <machine_set_name> # <1>
@@ -32,13 +32,13 @@ spec:
3232
test: example
3333
cluster.x-k8s.io/cluster-name: <cluster_name>
3434
cluster.x-k8s.io/set-name: <machine_set_name>
35-
node-role.kubernetes.io/<role>: ""
35+
node-role.kubernetes.io/worker: ""
3636
spec:
3737
bootstrap:
38-
dataSecretName: worker-user-data
38+
dataSecretName: worker-user-data-managed
3939
clusterName: <cluster_name>
4040
infrastructureRef:
41-
apiVersion: infrastructure.cluster.x-k8s.io/v1
41+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
4242
kind: Metal3MachineTemplate # <3>
4343
name: <template_name> # <4>
4444
----

modules/capi-yaml-machine-template-bare-metal.adoc

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,27 @@ The compute machine set references this template when creating machines.
1111

1212
[source,yaml]
1313
----
14-
apiVersion: infrastructure.cluster.x-k8s.io/v1
14+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
1515
kind: Metal3MachineTemplate # <1>
1616
metadata:
17-
name: <template_name> # <2>
17+
name: <template_name> # <2>
1818
namespace: openshift-cluster-api
1919
spec:
2020
template:
2121
spec: # <3>
2222
customDeploy: install_coreos
23-
userData: worker-user-data
23+
userData:
24+
name: worker-user-data-managed # <4>
2425
----
2526
<1> Specify the machine template kind.
2627
This value must match the value for your platform.
2728
<2> Specify a name for the machine template.
28-
<3> Specify the details for your environment.
29-
The values here are examples.
29+
<3> Specify the details for your environment. The values here are examples.
30+
<4> The `userData` parameter refers to the Ignition configuration, which the Machine API Operator generates during installation. You must apply the `openshift-cluster-api` namespace to ensure the cluster can access the secret by running the following command:
31+
+
32+
[source,terminal]
33+
----
34+
$ oc get secret worker-user-data-managed \
35+
-n openshift-machine-api -o yaml | \
36+
sed 's/namespace: .*/namespace: openshift-cluster-api/' | oc apply -f -
37+
----

0 commit comments

Comments
 (0)