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": { |
| 28 | "type": "host-local", |
| 29 | "subnet": "119.0.0.0/24", |
| 30 | "routes": [ |
| 31 | { "dst": "0.0.0.0/0" } |
| 32 | ] |
| 33 | } |
| 34 | }' |
| 35 | --- |
| 36 | apiVersion: "k8s.cni.cncf.io/v1" |
| 37 | kind: NetworkAttachmentDefinition |
| 38 | metadata: |
| 39 | name: sgi-net |
| 40 | annotations: |
| 41 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov |
| 42 | spec: |
| 43 | config: '{ |
| 44 | "type": "sriov", |
| 45 | "name": "sgi-net", |
| 46 | "ipam": { |
| 47 | "type": "host-local", |
| 48 | "subnet": "13.1.1.0/24", |
| 49 | "routes": [ |
| 50 | { "dst": "0.0.0.0/0" } |
| 51 | ] |
| 52 | } |
| 53 | }' |