-
Notifications
You must be signed in to change notification settings - Fork 3
/
vmi-sriov.yaml
52 lines (52 loc) · 1.07 KB
/
vmi-sriov.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
name: vmi-300
namespace: default
labels:
kubevirt.io/domain: vm
debugLogs: "true"
spec:
tolerations:
- key: node.kubernetes.io/unschedulable
effect: NoSchedule
operator: Exists
nodeSelector:
sriov: "true"
domain:
devices:
disks:
- name: containerdisk
disk:
bus: virtio
- name: cloudinitdisk
disk:
bus: virtio
interfaces:
- name: default
masquerade: {}
- name: sriov-ens1
sriov: {}
- name: sriov-ens2
sriov: {}
resources:
requests:
memory: 2G
networks:
- name: default
pod: {}
- name: sriov-ens1
multus:
networkName: default/sriov-ens1
- name: sriov-ens2
multus:
networkName: default/sriov-ens2
volumes:
- name: containerdisk
containerDisk:
image: kubevirt73/xenial:latest
- name: cloudinitdisk
cloudInitNoCloud:
userData: |
#!/bin/bash
echo "fedora" |passwd fedora --stdin