Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | --- |
| 17 | apiVersion: "k8s.cni.cncf.io/v1" |
| 18 | kind: NetworkAttachmentDefinition |
| 19 | metadata: |
| 20 | name: s1u-net |
| 21 | annotations: |
| 22 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov |
| 23 | spec: |
| 24 | config: '{ |
| 25 | "type": "sriov", |
| 26 | "name": "s1u-net", |
| 27 | "ipam": { |
Wei-Yu Chen | 4a95f85 | 2019-01-22 17:03:02 -0800 | [diff] [blame] | 28 | "type": "centralip", |
| 29 | "ipType": "cluster", |
| 30 | "etcdURL": "http://node1:32379", |
| 31 | "network": "119.0.0.0/24" |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 32 | } |
| 33 | }' |
| 34 | --- |
| 35 | apiVersion: "k8s.cni.cncf.io/v1" |
| 36 | kind: NetworkAttachmentDefinition |
| 37 | metadata: |
| 38 | name: sgi-net |
| 39 | annotations: |
| 40 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov |
| 41 | spec: |
| 42 | config: '{ |
| 43 | "type": "sriov", |
| 44 | "name": "sgi-net", |
| 45 | "ipam": { |
Wei-Yu Chen | 4a95f85 | 2019-01-22 17:03:02 -0800 | [diff] [blame] | 46 | "type": "centralip", |
| 47 | "ipType": "cluster", |
| 48 | "etcdURL": "http://node1:32379", |
| 49 | "network": "13.1.1.0/24" |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 50 | } |
| 51 | }' |