mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
node: device-mgr: sample device plugin: manifest to avoid registration
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
This commit is contained in:
parent
2c8fc26b89
commit
7ea35d0cd8
@ -22,7 +22,7 @@ import (
|
|||||||
e2etestfiles "k8s.io/kubernetes/test/e2e/framework/testfiles"
|
e2etestfiles "k8s.io/kubernetes/test/e2e/framework/testfiles"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed cluster-dns flexvolume guestbook kubectl sample-device-plugin.yaml scheduling/nvidia-driver-installer.yaml statefulset storage-csi
|
//go:embed cluster-dns flexvolume guestbook kubectl sample-device-plugin scheduling/nvidia-driver-installer.yaml statefulset storage-csi
|
||||||
var e2eTestingManifestsFS embed.FS
|
var e2eTestingManifestsFS embed.FS
|
||||||
|
|
||||||
func GetE2ETestingManifestsFS() e2etestfiles.EmbeddedFileSource {
|
func GetE2ETestingManifestsFS() e2etestfiles.EmbeddedFileSource {
|
||||||
|
@ -0,0 +1,52 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
name: sample-device-plugin-beta
|
||||||
|
namespace: kube-system
|
||||||
|
labels:
|
||||||
|
k8s-app: sample-device-plugin
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: sample-device-plugin
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: sample-device-plugin
|
||||||
|
annotations:
|
||||||
|
spec:
|
||||||
|
priorityClassName: system-node-critical
|
||||||
|
tolerations:
|
||||||
|
- operator: "Exists"
|
||||||
|
effect: "NoExecute"
|
||||||
|
- operator: "Exists"
|
||||||
|
effect: "NoSchedule"
|
||||||
|
volumes:
|
||||||
|
- name: device-plugin
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/kubelet/device-plugins
|
||||||
|
- name: plugins-registry-probe-mode
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/kubelet/plugins_registry
|
||||||
|
- name: dev
|
||||||
|
hostPath:
|
||||||
|
path: /dev
|
||||||
|
containers:
|
||||||
|
- image: registry.k8s.io/e2e-test-images/sample-device-plugin:1.5
|
||||||
|
name: sample-device-plugin
|
||||||
|
env:
|
||||||
|
- name: PLUGIN_SOCK_DIR
|
||||||
|
value: "/var/lib/kubelet/device-plugins"
|
||||||
|
- name: REGISTER_CONTROL_FILE
|
||||||
|
value: "/var/lib/kubelet/device-plugins/sample/registration"
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- name: device-plugin
|
||||||
|
mountPath: /var/lib/kubelet/device-plugins
|
||||||
|
- name: plugins-registry-probe-mode
|
||||||
|
mountPath: /var/lib/kubelet/plugins_registry
|
||||||
|
- name: dev
|
||||||
|
mountPath: /dev
|
||||||
|
updateStrategy:
|
||||||
|
type: RollingUpdate
|
@ -22,7 +22,8 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// SampleDevicePluginDSYAML is the path of the daemonset template of the sample device plugin. // TODO: Parametrize it by making it a feature in TestFramework.
|
// SampleDevicePluginDSYAML is the path of the daemonset template of the sample device plugin. // TODO: Parametrize it by making it a feature in TestFramework.
|
||||||
SampleDevicePluginDSYAML = "test/e2e/testing-manifests/sample-device-plugin.yaml"
|
SampleDevicePluginDSYAML = "test/e2e/testing-manifests/sample-device-plugin.yaml"
|
||||||
|
SampleDevicePluginControlRegistrationDSYAML = "test/e2e/testing-manifests/sample-device-plugin/sample-device-plugin-control-registration.yaml"
|
||||||
|
|
||||||
// SampleDevicePluginName is the name of the device plugin pod
|
// SampleDevicePluginName is the name of the device plugin pod
|
||||||
SampleDevicePluginName = "sample-device-plugin"
|
SampleDevicePluginName = "sample-device-plugin"
|
||||||
|
Loading…
Reference in New Issue
Block a user