-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path20_network-nncp.yaml
More file actions
47 lines (44 loc) · 1.28 KB
/
20_network-nncp.yaml
File metadata and controls
47 lines (44 loc) · 1.28 KB
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
---
- name: Configure OVN-Kubernetes secondary network
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Create NodeNetworkConfigurationPolicy mapping
k8s:
state: present
definition:
apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: br-ex
spec:
desiredState:
ovn:
bridge-mappings:
- bridge: br-ex
localnet: localnet-network
state: present
- name: Create NetworkAttachmentDefinition localnet-nad
k8s:
state: present
definition:
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: localnet-nad
namespace: default
spec:
config: |-
{
"cniVersion": "0.4.0",
"name": "localnet-network",
"type": "ovn-k8s-cni-overlay",
"topology": "localnet",
"netAttachDefName": "default/localnet-nad",
"mtu": 1400,
"parameters": {
"bridge": "br-ex",
"netType": "localnet"
}
}