blob: 5b0b62fb99e46c8c90237cbab3d5591b50dfbb1e [file] [log] [blame]
Wei-Yu Chen450a98a2019-01-15 16:56:30 -08001---
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---
17apiVersion: "k8s.cni.cncf.io/v1"
18kind: NetworkAttachmentDefinition
19metadata:
20 name: s1u-net
21 annotations:
22 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov
23spec:
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---
36apiVersion: "k8s.cni.cncf.io/v1"
37kind: NetworkAttachmentDefinition
38metadata:
39 name: sgi-net
40 annotations:
41 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov
42spec:
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}'