Skip to content

Commit cc3ec8a

Browse files
authored
Merge pull request #28776 from codyhoag/winc-char-limit-azure
Warning for Azure Windows machine set name length restriction
2 parents a9ce15d + f7f6a2b commit cc3ec8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/windows-machineset-azure.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ kind: MachineSet
1414
metadata:
1515
labels:
1616
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
17-
name: <infrastructure_id>-windows-worker-<region> <2>
17+
name: <windows_machine_set_name> <2>
1818
namespace: openshift-machine-api
1919
spec:
2020
replicas: 1
2121
selector:
2222
matchLabels:
2323
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
24-
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-windows-worker-<region> <2>
24+
machine.openshift.io/cluster-api-machineset: <windows_machine_set_name> <2>
2525
template:
2626
metadata:
2727
labels:
2828
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
2929
machine.openshift.io/cluster-api-machine-role: worker
3030
machine.openshift.io/cluster-api-machine-type: worker
31-
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-windows-worker-<region> <2>
31+
machine.openshift.io/cluster-api-machineset: <windows_machine_set_name> <2>
3232
machine.openshift.io/os-id: Windows <3>
3333
spec:
3434
metadata:
@@ -71,7 +71,7 @@ spec:
7171
----
7272
$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster
7373
----
74-
<2> Specify the infrastructure ID, worker label, and region.
74+
<2> Specify the Windows machine set name. Windows machine names on Azure cannot be more than 15 characters long. Therefore, the machine set name cannot be more than 9 characters long, due to the way machine names are generated from it.
7575
<3> Configure the machine set as a Windows machine.
7676
<4> Configure the Windows node as a compute machine.
7777
<5> Specify a `WindowsServer` image offering that defines the `2019-Datacenter-with-Containers` SKU with version `17763.1457.2009030514` or earlier.

0 commit comments

Comments
 (0)