Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update helm chart for sriov #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sriov/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ name: {{ .Values.serviceAccount.name }}
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
{{- if index .Values "tolerations" }}
{{- if gt (len .Values.tolerations) 0 }}
{{ toYaml .Values.tolerations }}
Expand Down
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