From 895fb8258e10e02ba37c67e957bfb1608f4715da Mon Sep 17 00:00:00 2001 From: Jan Knipper Date: Thu, 13 Jul 2023 13:05:08 +0200 Subject: [PATCH] Remove gpu from contrib --- .../nvidia-gpu/device-plugin-damonset.yaml | 63 ------------------- contrib/nvidia-gpu/device-plugin.yaml | 62 ------------------ contrib/nvidia-gpu/driver-daemonset.yaml | 52 --------------- 3 files changed, 177 deletions(-) delete mode 100644 contrib/nvidia-gpu/device-plugin-damonset.yaml delete mode 100644 contrib/nvidia-gpu/device-plugin.yaml delete mode 100644 contrib/nvidia-gpu/driver-daemonset.yaml diff --git a/contrib/nvidia-gpu/device-plugin-damonset.yaml b/contrib/nvidia-gpu/device-plugin-damonset.yaml deleted file mode 100644 index 55bb432a7a..0000000000 --- a/contrib/nvidia-gpu/device-plugin-damonset.yaml +++ /dev/null @@ -1,63 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: nvidia-gpu-device-plugin - namespace: kube-system - labels: - k8s-app: nvidia-gpu-device-plugin - addonmanager.kubernetes.io/mode: Reconcile -spec: - selector: - matchLabels: - k8s-app: nvidia-gpu-device-plugin - template: - metadata: - labels: - k8s-app: nvidia-gpu-device-plugin - annotations: - scheduler.alpha.kubernetes.io/critical-pod: '' - spec: - priorityClassName: system-node-critical - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: gpu - operator: Exists - tolerations: - - operator: "Exists" - effect: "NoExecute" - - operator: "Exists" - effect: "NoSchedule" - volumes: - - name: device-plugin - hostPath: - path: /var/lib/kubelet/device-plugins - - name: dev - hostPath: - path: /dev - containers: - - image: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:c8ad9bb0b192c7cd156747e12ad1a091ef7ae8af2852fb08a96b61477807b279" - command: - - /usr/bin/nvidia-gpu-device-plugin - - -logtostderr - - -host-path=/usr/lib64 - - -container-path=/usr/local/nvidia/lib64 - name: nvidia-gpu-device-plugin - resources: - requests: - cpu: 50m - memory: 10Mi - limits: - cpu: 50m - memory: 10Mi - securityContext: - privileged: true - volumeMounts: - - name: device-plugin - mountPath: /device-plugin - - name: dev - mountPath: /dev - updateStrategy: - type: RollingUpdate diff --git a/contrib/nvidia-gpu/device-plugin.yaml b/contrib/nvidia-gpu/device-plugin.yaml deleted file mode 100644 index 28fbbb06e3..0000000000 --- a/contrib/nvidia-gpu/device-plugin.yaml +++ /dev/null @@ -1,62 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: nvidia-gpu-device-plugin - namespace: kube-system - labels: - k8s-app: nvidia-gpu-device-plugin - addonmanager.kubernetes.io/mode: Reconcile -spec: - selector: - matchLabels: - k8s-app: nvidia-gpu-device-plugin - template: - metadata: - labels: - k8s-app: nvidia-gpu-device-plugin - annotations: - scheduler.alpha.kubernetes.io/critical-pod: '' - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: gpu - operator: Exists - tolerations: - - operator: "Exists" - effect: "NoExecute" - - operator: "Exists" - effect: "NoSchedule" - volumes: - - name: device-plugin - hostPath: - path: /var/lib/kubelet/device-plugins - - name: dev - hostPath: - path: /dev - containers: - - image: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:0842734032018be107fa2490c98156992911e3e1f2a21e059ff0105b07dd8e9e" - command: - - /usr/bin/nvidia-gpu-device-plugin - - -logtostderr - - -host-path=/opt/nvidia/current/lib64 - - -container-path=/usr/local/nvidia/lib64 - name: nvidia-gpu-device-plugin - resources: - requests: - cpu: 50m - memory: 10Mi - limits: - cpu: 50m - memory: 10Mi - securityContext: - privileged: true - volumeMounts: - - name: device-plugin - mountPath: /device-plugin - - name: dev - mountPath: /dev - updateStrategy: - type: RollingUpdate diff --git a/contrib/nvidia-gpu/driver-daemonset.yaml b/contrib/nvidia-gpu/driver-daemonset.yaml deleted file mode 100644 index 32239ad4e9..0000000000 --- a/contrib/nvidia-gpu/driver-daemonset.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: nvidia-driver-installer - namespace: kube-system - labels: - k8s-app: nvidia-driver-installer -spec: - selector: - matchLabels: - k8s-app: nvidia-driver-installer - updateStrategy: - type: RollingUpdate - template: - metadata: - labels: - name: nvidia-driver-installer - k8s-app: nvidia-driver-installer - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: gpu - operator: Exists - tolerations: - - key: "nvidia.com/gpu" - effect: "NoSchedule" - operator: "Exists" - hostNetwork: true - hostPID: true - volumes: - - name: rootfs - hostPath: - path: / - initContainers: - - image: bugroger/coreos-nvidia-driver:stable-396.44-tesla - name: nvidia-driver-installer - imagePullPolicy: Always - resources: - requests: - cpu: 0.15 - securityContext: - privileged: true - volumeMounts: - - name: rootfs - mountPath: /root - mountPropagation: Bidirectional - containers: - - image: "gcr.io/google-containers/pause:2.0" - name: pause