Add SDWAN build and test script
[icn.git] / sdwan / test / ovn-pod.yml
1 # Create 2 OVN Networks
2 ---
3 apiVersion: k8s.plugin.opnfv.org/v1alpha1
4 kind: Network
5 metadata:
6   name: ovn-port-net
7 spec:
8   cniType : ovn4nfv
9   ipv4Subnets:
10   - subnet: 172.16.33.0/24
11     name: subnet1
12     gateway: 172.16.33.1/24
13
14 ---
15 apiVersion: k8s.plugin.opnfv.org/v1alpha1
16 kind: Network
17 metadata:
18   name: ovn-priv-net
19 spec:
20   cniType : ovn4nfv
21   ipv4Subnets:
22   - subnet: 172.16.44.0/24
23     name: subnet1
24     gateway: 172.16.44.1/24
25
26 ---
27 apiVersion: v1
28 kind: Pod
29 metadata:
30   name: ovn-pod
31   annotations:
32     k8s.v1.cni.cncf.io/networks: '[{ "name": "ovn-networkobj"}]'
33     k8s.plugin.opnfv.org/nfn-network: '{ "type": "ovn4nfv", "interface": [{ "name": "ovn-port-net", "interface": "net0" , "defaultGateway": "false"},
34        { "name": "ovn-priv-net", "interface": "net1" , "defaultGateway": "false"}]}'
35 spec:
36   containers:
37   - name: ovn-pod
38     image: docker.io/centos/tools:latest
39     command:
40     - /sbin/init