Created
April 14, 2021 17:39
-
-
Save pandeybk/f5d3831d25d220d737914e1631c2199e to your computer and use it in GitHub Desktop.
different-nad-settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: sriov-kernelnet0 | |
annotations: | |
k8s.v1.cni.cncf.io/resourceName: intel.com/intel_sriov_kernel0 | |
spec: | |
config: '{ | |
"type": "sriov", | |
"name": "sriov-kernelnet0", | |
"spoofchk": "off", | |
"type": "sriov", | |
"vlan": 202, | |
"ipam": { | |
"type": "whereabouts", | |
"range": "192.168.80.0/24", | |
"range_start": "192.168.80.20", | |
"range_end": "192.168.80.50", | |
"gateway": "192.168.80.1" | |
} | |
}' | |
--- | |
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: whereabouts-conf-ipvlan | |
spec: | |
config: '{ | |
"cniVersion": "0.3.0", | |
"name": "ipvlan-conf-1", | |
"type": "ipvlan", | |
"master": "enp59s0f0.203", | |
"mode": "l2", | |
"ipam": { | |
"type": "whereabouts", | |
"range": "192.168.70.0/24", | |
"range_start": "192.168.70.20", | |
"range_end": "192.168.70.50", | |
"gateway": "192.168.70.1" | |
} | |
}' | |
--- | |
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: whereabouts-conf-macvlan | |
spec: | |
config: '{ | |
"cniVersion": "0.3.0", | |
"type": "macvlan", | |
"master": "enp59s0f0.201", | |
"mode": "bridge", | |
"ipam": { | |
"type": "whereabouts", | |
"range": "192.168.60.0/24", | |
"range_start": "192.168.60.20", | |
"range_end": "192.168.60.50", | |
"gateway": "192.168.60.1" | |
} | |
}' | |
--- | |
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: macvlan-conf-n3-core | |
spec: | |
config: '{ | |
"cniVersion": "0.3.0", | |
"type": "macvlan", | |
"master": "ens2f0", | |
"mode": "bridge", | |
"ipam": { | |
"type": "host-local", | |
"subnet": "192.168.5.0/24", | |
"rangeStart": "192.168.5.6", | |
"rangeEnd": "192.168.5.50", | |
"routes": [ | |
{ "dst": "0.0.0.0/0" } | |
], | |
"gateway": "192.168.5.254" | |
} | |
}' | |
--- | |
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: sriov-dpdk-net2000 | |
annotations: | |
k8s.v1.cni.cncf.io/resourceName: intel.com/intel_x710vfio | |
spec: | |
config: '{ | |
"type": "sriov", | |
"name": "sriov-vfio2000", | |
"vlan": 2000 | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment