|
| 1 | +// This is included in the following assemblies: |
| 2 | +// |
| 3 | +// installing_bare_metal_ipi/ipi-install-expanding-the-cluster.adoc |
| 4 | + |
| 5 | +[id="preparing-to-deploy-with-virtual-media-on-the-baremetal-network_{context}"] |
| 6 | += Preparing to deploy with Virtual Media on the baremetal network |
| 7 | + |
| 8 | +If the `provisioning` network is enabled and you want to expand the cluster using Virtual Media on the `baremetal` network, use the following procedure. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | + |
| 12 | +* There is an existing cluster with a `baremetal` network and a `provisioning` network. |
| 13 | + |
| 14 | +.Procedure |
| 15 | + |
| 16 | +. Edit the `provisioning` custom resource (CR) to enable deploying with Virtual Media on the `baremetal` network: |
| 17 | ++ |
| 18 | +[source,terminmal] |
| 19 | +---- |
| 20 | +oc edit provisioning |
| 21 | +---- |
| 22 | ++ |
| 23 | +[source,yaml] |
| 24 | +---- |
| 25 | + apiVersion: metal3.io/v1alpha1 |
| 26 | + kind: Provisioning |
| 27 | + metadata: |
| 28 | + creationTimestamp: "2021-08-05T18:51:50Z" |
| 29 | + finalizers: |
| 30 | + - provisioning.metal3.io |
| 31 | + generation: 8 |
| 32 | + name: provisioning-configuration |
| 33 | + resourceVersion: "551591" |
| 34 | + uid: f76e956f-24c6-4361-aa5b-feaf72c5b526 |
| 35 | + spec: |
| 36 | + preProvisioningOSDownloadURLs: {} |
| 37 | + provisioningDHCPRange: 172.22.0.10,172.22.0.254 |
| 38 | + provisioningIP: 172.22.0.3 |
| 39 | + provisioningInterface: enp1s0 |
| 40 | + provisioningNetwork: Managed |
| 41 | + provisioningNetworkCIDR: 172.22.0.0/24 |
| 42 | + provisioningOSDownloadURL: http://192.168.111.1/images/rhcos-<version>.x86_64.qcow2.gz?sha256=<sha256> |
| 43 | + virtualMediaViaExternalNetwork: true <1> |
| 44 | + status: |
| 45 | + generations: |
| 46 | + - group: apps |
| 47 | + hash: "" |
| 48 | + lastGeneration: 7 |
| 49 | + name: metal3 |
| 50 | + namespace: openshift-machine-api |
| 51 | + resource: deployments |
| 52 | + - group: apps |
| 53 | + hash: "" |
| 54 | + lastGeneration: 1 |
| 55 | + name: metal3-image-cache |
| 56 | + namespace: openshift-machine-api |
| 57 | + resource: daemonsets |
| 58 | + observedGeneration: 8 |
| 59 | + readyReplicas: 0 |
| 60 | +---- |
| 61 | ++ |
| 62 | +<1> Add `virtualMediaViaExternalNetwork: true` to the `provisioning` CR. |
| 63 | + |
| 64 | + |
| 65 | +. Edit the machineset to use the API VIP address: |
| 66 | ++ |
| 67 | +[source,terminal] |
| 68 | +---- |
| 69 | +oc edit machineset |
| 70 | +---- |
| 71 | ++ |
| 72 | +[source,yaml] |
| 73 | +---- |
| 74 | + apiVersion: machine.openshift.io/v1beta1 |
| 75 | + kind: MachineSet |
| 76 | + metadata: |
| 77 | + creationTimestamp: "2021-08-05T18:51:52Z" |
| 78 | + generation: 11 |
| 79 | + labels: |
| 80 | + machine.openshift.io/cluster-api-cluster: ostest-hwmdt |
| 81 | + machine.openshift.io/cluster-api-machine-role: worker |
| 82 | + machine.openshift.io/cluster-api-machine-type: worker |
| 83 | + name: ostest-hwmdt-worker-0 |
| 84 | + namespace: openshift-machine-api |
| 85 | + resourceVersion: "551513" |
| 86 | + uid: fad1c6e0-b9da-4d4a-8d73-286f78788931 |
| 87 | + spec: |
| 88 | + replicas: 2 |
| 89 | + selector: |
| 90 | + matchLabels: |
| 91 | + machine.openshift.io/cluster-api-cluster: ostest-hwmdt |
| 92 | + machine.openshift.io/cluster-api-machineset: ostest-hwmdt-worker-0 |
| 93 | + template: |
| 94 | + metadata: |
| 95 | + labels: |
| 96 | + machine.openshift.io/cluster-api-cluster: ostest-hwmdt |
| 97 | + machine.openshift.io/cluster-api-machine-role: worker |
| 98 | + machine.openshift.io/cluster-api-machine-type: worker |
| 99 | + machine.openshift.io/cluster-api-machineset: ostest-hwmdt-worker-0 |
| 100 | + spec: |
| 101 | + metadata: {} |
| 102 | + providerSpec: |
| 103 | + value: |
| 104 | + apiVersion: baremetal.cluster.k8s.io/v1alpha1 |
| 105 | + hostSelector: {} |
| 106 | + image: |
| 107 | + checksum: http:/172.22.0.3:6181/images/rhcos-<version>.x86_64.qcow2.<md5sum> <1> |
| 108 | + url: http://172.22.0.3:6181/images/rhcos-<version>.x86_64.qcow2 <2> |
| 109 | + kind: BareMetalMachineProviderSpec |
| 110 | + metadata: |
| 111 | + creationTimestamp: null |
| 112 | + userData: |
| 113 | + name: worker-user-data |
| 114 | + status: |
| 115 | + availableReplicas: 2 |
| 116 | + fullyLabeledReplicas: 2 |
| 117 | + observedGeneration: 11 |
| 118 | + readyReplicas: 2 |
| 119 | + replicas: 2 |
| 120 | +---- |
| 121 | ++ |
| 122 | +<1> Edit the `checksum` URL to use the API VIP address. |
| 123 | +<2> Edit the `url` URL to use the API VIP address. |
0 commit comments