-
Notifications
You must be signed in to change notification settings - Fork 5
/
template-nad-vlan-cnv-bridge.yaml
48 lines (44 loc) · 1.31 KB
/
template-nad-vlan-cnv-bridge.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: nad-vlan-cnv-bridge
annotations:
description: >-
A NetworkAttachmentDefinition resource to enable access to a VLAN via a Linux bridge interface.
Results can be used to multi-home pods using Multus.
iconClass: icon-load-balancer
openshift.io/provider-display-name: GUIFreeLife
openshift.io/documentation-url: https://github.com/dlbewley/demo-virt
openshift.io/support-url: https://github.com/dlbewley/demo-virt/issues
tags: "networking,nmstate"
objects:
- apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
annotations:
description: ${DESCRIPTION}
k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/br-${VLAN}
labels:
template: nad-vlan-vnc-bridge
name: vlan-${VLAN}
namespace: ${NAMESPACE}
spec:
config: |
{
"name": "vlan-${VLAN}",
"bridge": "br-${VLAN}",
"cniVersion": "0.3.1",
"type": "cnv-bridge",
"macspoofchk": true
}
parameters:
- description: VLAN ID
name: VLAN
required: true
- description: Namespace
name: NAMESPACE
value: default
- description: Net-attach-def description
name: DESCRIPTION
value: Attachment to br-${VLAN}