Skip to content

Commit

Permalink
Merge pull request #500 from e0ne/dp-volumes
Browse files Browse the repository at this point in the history
Update device plugins volumes mounts
  • Loading branch information
SchSeba authored Oct 1, 2023
2 parents 70efb55 + 6be5718 commit aff8970
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
30 changes: 24 additions & 6 deletions deployments/sriovdp-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ spec:
memory: "200Mi"
volumeMounts:
- name: devicesock
mountPath: /var/lib/kubelet/
mountPath: /var/lib/kubelet/device-plugins
readOnly: false
- name: plugins-registry
mountPath: /var/lib/kubelet/plugins_registry
readOnly: false
- name: log
mountPath: /var/log
Expand All @@ -65,7 +68,10 @@ spec:
volumes:
- name: devicesock
hostPath:
path: /var/lib/kubelet/
path: /var/lib/kubelet/device-plugins
- name: plugins-registry
hostPath:
path: /var/lib/kubelet/plugins_registry
- name: log
hostPath:
path: /var/log
Expand Down Expand Up @@ -126,7 +132,10 @@ spec:
memory: "200Mi"
volumeMounts:
- name: devicesock
mountPath: /var/lib/kubelet/
mountPath: /var/lib/kubelet/device-plugins
readOnly: false
- name: plugins-registry
mountPath: /var/lib/kubelet/plugins_registry
readOnly: false
- name: log
mountPath: /var/log
Expand All @@ -137,7 +146,10 @@ spec:
volumes:
- name: devicesock
hostPath:
path: /var/lib/kubelet/
path: /var/lib/kubelet/device-plugins
- name: plugins-registry
hostPath:
path: /var/lib/kubelet/plugins_registry
- name: log
hostPath:
path: /var/log
Expand Down Expand Up @@ -197,7 +209,10 @@ spec:
memory: "200Mi"
volumeMounts:
- name: devicesock
mountPath: /var/lib/kubelet/
mountPath: /var/lib/kubelet/device-plugins
readOnly: false
- name: plugins-registry
mountPath: /var/lib/kubelet/plugins_registry
readOnly: false
- name: log
mountPath: /var/log
Expand All @@ -208,7 +223,10 @@ spec:
volumes:
- name: devicesock
hostPath:
path: /var/lib/kubelet/
path: /var/lib/kubelet/device-plugins
- name: plugins-registry
hostPath:
path: /var/lib/kubelet/plugins_registry
- name: log
hostPath:
path: /var/log
Expand Down
2 changes: 1 addition & 1 deletion images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Note: The likely best practice here is to build your own image given the Dockerf
Example docker run command:

```
$ docker run -it -v /var/lib/kubelet/:/var/lib/kubelet/ -v /sys/class/net:/sys/class/net --entrypoint=/bin/bash ghcr.io/k8snetworkplumbingwg/sriov-network-device-plugin
$ docker run -it -v /var/lib/kubelet/device-plugins:/var/lib/kubelet/device-plugins -v /var/lib/kubelet/plugins_registry:/var/lib/kubelet/plugins_registry -v /sys/class/net:/sys/class/net --entrypoint=/bin/bash ghcr.io/k8snetworkplumbingwg/sriov-network-device-plugin
```

Originally inspired by and is a portmanteau of the [Flannel daemonset](https://github.com/coreos/flannel/blob/master/Documentation/kube-flannel.yml), the [Calico Daemonset](https://github.com/projectcalico/calico/blob/master/v2.0/getting-started/kubernetes/installation/hosted/k8s-backend-addon-manager/calico-daemonset.yaml), and the [Calico CNI install bash script](https://github.com/projectcalico/cni-plugin/blob/be4df4db2e47aa7378b1bdf6933724bac1f348d0/k8s-install/scripts/install-cni.sh#L104-L153).

0 comments on commit aff8970

Please sign in to comment.