summaryrefslogtreecommitdiffstats
path: root/src/arm/cni-deploy/roles/vhost-vpp/files/vhostuser-obj.yml
blob: 1e9bc66ede2ceea7c4c522b8d9c402a28a8f1ca1 (plain)
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
---
apiVersion: "kubernetes.com/v1"
kind: Network
metadata:
  name: vhostuser-networkobj
plugin: vhostuser
args: '[
  {
    "type": "vhostuser",
    "name": "vhostuser-network",
    "if0name": "net1",
    "vhost": {
      "vhost_tool": "/opt/cni/bin/vpp-config.py"
    },
    "ipam": {
      "type": "host-local",
      "subnet": "10.56.217.0/24",
      "rangeStart": "10.56.217.131",
      "rangeEnd": "10.56.217.190",
      "routes": [
        {
          "dst": "0.0.0.0/0"
        }
      ],
      "gateway": "10.56.217.1"
    }
  }
]'