Skip to content

Commit 8a49b9f

Browse files
authored
Merge pull request #1764 from shiftstack/network-example-doc-fixes
📖 Fix network-related docs for API v1alpha7
2 parents d5f5101 + fc76995 commit 8a49b9f

File tree

2 files changed

+71
-56
lines changed

2 files changed

+71
-56
lines changed

docs/book/src/clusteropenstack/configuration.md

Lines changed: 70 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@ metadata:
303303
name: <cluster-name>-controlplane
304304
namespace: <cluster-name>
305305
spec:
306-
networks:
307-
- filter:
308-
name: <network-name>
306+
template:
307+
spec:
308+
ports:
309+
- network:
310+
name: <network-name>
309311
```
310312

311313
## Multiple Networks
@@ -319,12 +321,17 @@ metadata:
319321
name: <cluster-name>-controlplane
320322
namespace: <cluster-name>
321323
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
328335
```
329336

330337
## Subnet Filters
@@ -338,12 +345,14 @@ metadata:
338345
name: <cluster-name>-controlplane
339346
namespace: <cluster-name>
340347
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>
347356
```
348357

349358
## Ports
@@ -357,26 +366,28 @@ metadata:
357366
name: <cluster-name>-controlplane
358367
namespace: <cluster-name>
359368
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>
380391
```
381392

382393
Any such ports are created in addition to ports used for connections to networks or subnets.
@@ -453,12 +464,14 @@ metadata:
453464
name: <cluster-name>-controlplane
454465
namespace: <cluster-name>
455466
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+
...
462475
```
463476

464477
## Security groups
@@ -554,20 +567,22 @@ spec:
554567

555568
For example in `OpenStackMachineTemplate` set `spec.rootVolume.diskSize` to something greater than `0` means boot from volume.
556569

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+
```
571586

572587
If `volumeType` is not specified, cinder will use the default volume type.
573588

versions.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
MDBOOK_VERSION := v0.4.5
15+
MDBOOK_VERSION := v0.4.35
1616
PLANTUML_VERSION := 1.2022.6
1717
GH_VERSION := 1.2.0

0 commit comments

Comments
 (0)