-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path19_nad-localnet.yaml
More file actions
29 lines (28 loc) · 847 Bytes
/
19_nad-localnet.yaml
File metadata and controls
29 lines (28 loc) · 847 Bytes
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
---
- name: Create NetworkAttachmentDefinition for localnet network
hosts: localhost
gather_facts: no
tasks:
- name: Create NetworkAttachmentDefinition object
k8s:
state: present
definition:
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: localnet-nad
namespace: default
spec:
config: |
{
"cniVersion": "0.3.1",
"name": "localnet-network",
"type": "ovn-k8s-cni-overlay",
"topology": "localnet",
"netAttachDefName": "default/localnet-nad",
"mtu": 1400,
"parameters": {
"bridge": "br-ex",
"netType": "localnet"
}
}