Skip to content

Commit

Permalink
update helm chart for sriov
Browse files Browse the repository at this point in the history
Signed-off-by: cyclinder [email protected]
  • Loading branch information
cyclinder committed Jul 11, 2022
1 parent 49fbeda commit 0c78289
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sriov/templates/configMap_sriov_device_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-{{ .Chart.Version }}-config
namespace: kube-system
data:
dp-conf.json: |-
config.json: |-
{{ toJson .Values.config.sriov_device_plugin | indent 4 }}
{{- end }}
{{- end }}
10 changes: 9 additions & 1 deletion sriov/templates/daemonSet_sriov_device_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ spec:
mountPath: {{ .Values.config.sdpMountPaths.log }}
- name: config-volume
mountPath: {{ .Values.config.sdpMountPaths.configVolume }}
subPath: "dp-conf.json"
- name: device-info
mountPath: {{ .Values.config.sdpMountPaths.deviceInfoPath }}
volumes:
- name: devicesock
hostPath:
Expand All @@ -71,5 +72,12 @@ spec:
- name: config-volume
configMap:
name: {{ .Release.Name }}-{{ .Chart.Name }}-{{ .Chart.Version }}-config
items:
- key: config.json
path: config.json
- name: device-info
hostPath:
path: {{ .Values.config.sdpMountPaths.deviceInfoPath }}
type: DirectoryOrCreate
{{- end }}
{{- end }}
25 changes: 15 additions & 10 deletions sriov/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
images:
registry: docker.io
sriovCni:
repository: nfvpe/sriov-cni
tag: v2.2
repository: ghcr.io/k8snetworkplumbingwg/sriov-cni
tag: v2.6.3
sriovDevicePlugin:
repository: nfvpe/sriov-device-plugin
tag: v3.1
repository: ghcr.io/k8snetworkplumbingwg/sriov-network-device-plugin
tag: v3.5.1
pullPolicy: IfNotPresent

#imagePullSecrets: []
Expand Down Expand Up @@ -89,9 +89,10 @@ config:
scMountPaths:
cnibin: "/host/opt/cni/bin"
sdpMountPaths:
deviceSock: "/var/lib/kubelet/device-plugins/"
deviceSock: "/var/lib/kubelet"
log: "/var/log"
configVolume: "/etc/pcidp/config.json"
configVolume: "/etc/pcidp/"
deviceInfoPath: "/var/run/k8s.cni.cncf.io/devinfo/dp"
sriov_device_plugin:
resourceList:
- resourceName: intel_sriov_netdevice
Expand All @@ -101,16 +102,19 @@ config:
devices:
- 154c
- 10ed
- 1889
drivers:
- i40evf
- ixgbevf
- iavf
- resourceName: intel_sriov_dpdk
selectors:
vendors:
- '8086'
devices:
- 154c
- 10ed
- 1889
drivers:
- vfio-pci
pfNames:
Expand All @@ -125,6 +129,7 @@ config:
- '1018'
drivers:
- mlx5_ib
- mlx5_core
netAttachDef:
dpdkName: 30-intel-sriov-dpdk
dpdkResourceName: intel.com/intel_sriov_dpdk
Expand Down Expand Up @@ -155,10 +160,10 @@ manifests:
configMap_sriov_device_plugin: true
daemonSet_sriov_device_plugin: true
daemonSet_sriov_cni: true
net_attach_def_netdev: true
net_attach_def_dpdk: true
test_netdevice: true
test_dpdk: true
net_attach_def_netdev: false
net_attach_def_dpdk: false
test_netdevice: false
test_dpdk: false

#tolerations: []

Expand Down

0 comments on commit 0c78289

Please sign in to comment.