@@ -303,9 +303,11 @@ metadata:
303
303
name: <cluster-name>-controlplane
304
304
namespace: <cluster-name>
305
305
spec:
306
- networks:
307
- - filter:
308
- name: <network-name>
306
+ template:
307
+ spec:
308
+ ports:
309
+ - network:
310
+ name: <network-name>
309
311
` ` `
310
312
311
313
# # Multiple Networks
@@ -319,12 +321,17 @@ metadata:
319
321
name: <cluster-name>-controlplane
320
322
namespace: <cluster-name>
321
323
spec:
322
- networks:
323
- - filter:
324
- name: myNetwork
325
- tags: myTag
326
- - uuid: your_network_id
327
- - subnet_id: your_subnet_id
324
+ template:
325
+ spec:
326
+ ports:
327
+ - network:
328
+ name: myNetwork
329
+ tags: myTag
330
+ - network:
331
+ id: your_network_id
332
+ - fixedIPs:
333
+ - subnet:
334
+ id: your_subnet_id
328
335
` ` `
329
336
330
337
# # Subnet Filters
@@ -338,12 +345,14 @@ metadata:
338
345
name: <cluster-name>-controlplane
339
346
namespace: <cluster-name>
340
347
spec:
341
- networks:
342
- - filter:
343
- name: <network-name>
344
- subnets:
345
- - filter:
346
- name: <subnet-name>
348
+ template:
349
+ spec:
350
+ ports:
351
+ - network:
352
+ name: <network-name>
353
+ fixedIPs:
354
+ - subnet:
355
+ name: <subnet-name>
347
356
` ` `
348
357
349
358
# # Ports
@@ -357,26 +366,28 @@ metadata:
357
366
name: <cluster-name>-controlplane
358
367
namespace: <cluster-name>
359
368
spec:
360
- ports:
361
- - network:
362
- id: <your-network-id>
363
- fixedIPs:
364
- - subnet:
365
- id: <your-subnet-id>
366
- ipAddress: <your-fixed-ip>
367
- - subnet:
368
- name: <your-subnet-name>
369
- tags:
370
- - tag1
371
- - tag2
372
- nameSuffix: <your-port-name>
373
- description: <your-custom-port-description>
374
- vnicType: normal
375
- securityGroups:
376
- - <your-security-group-id>
377
- profile:
378
- capabilities:
379
- - <capability>
369
+ template:
370
+ spec:
371
+ ports:
372
+ - network:
373
+ id: <your-network-id>
374
+ fixedIPs:
375
+ - subnet:
376
+ id: <your-subnet-id>
377
+ ipAddress: <your-fixed-ip>
378
+ - subnet:
379
+ name: <your-subnet-name>
380
+ tags:
381
+ - tag1
382
+ - tag2
383
+ nameSuffix: <your-port-name>
384
+ description: <your-custom-port-description>
385
+ vnicType: normal
386
+ securityGroups:
387
+ - <your-security-group-id>
388
+ profile:
389
+ capabilities:
390
+ - <capability>
380
391
` ` `
381
392
382
393
Any such ports are created in addition to ports used for connections to networks or subnets.
@@ -453,12 +464,14 @@ metadata:
453
464
name: <cluster-name>-controlplane
454
465
namespace: <cluster-name>
455
466
spec:
456
- ports:
457
- - network:
458
- id: <your-network-id>
459
- ...
460
- disablePortSecurity: true
461
- ...
467
+ template:
468
+ spec:
469
+ ports:
470
+ - network:
471
+ id: <your-network-id>
472
+ ...
473
+ disablePortSecurity: true
474
+ ...
462
475
` ` `
463
476
464
477
# # Security groups
@@ -554,20 +567,22 @@ spec:
554
567
555
568
For example in `OpenStackMachineTemplate` set `spec.rootVolume.diskSize` to something greater than `0` means boot from volume.
556
569
557
- ` ` ` yaml
558
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
559
- kind: OpenStackMachineTemplate
560
- metadata:
561
- name: <cluster-name>-controlplane
562
- namespace: <cluster-name>
563
- spec:
564
- ...
565
- rootVolume:
566
- diskSize: <image size>
567
- volumeType: <a cinder volume type (*optional)>
568
- availabilityZone: <the cinder availability zone for the root volume (*optional)>
569
- ...
570
- ` ` `
570
+ ` ` ` yaml
571
+ apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
572
+ kind: OpenStackMachineTemplate
573
+ metadata:
574
+ name: <cluster-name>-controlplane
575
+ namespace: <cluster-name>
576
+ spec:
577
+ template:
578
+ spec:
579
+ ...
580
+ rootVolume:
581
+ diskSize: <image size>
582
+ volumeType: <a cinder volume type (*optional)>
583
+ availabilityZone: <the cinder availability zone for the root volume (*optional)>
584
+ ...
585
+ ` ` `
571
586
572
587
If `volumeType` is not specified, cinder will use the default volume type.
573
588
0 commit comments