Browse Source

30MiB for gpu-device-plugin (#4227)

* 30MiB for gpu-device-plugin

* use vars for easier configuration
pull/4305/head
hikoz 5 years ago
committed by Kubernetes Prow Robot
parent
commit
3d25b4dfc1
2 changed files with 3 additions and 2 deletions
  1. 1
      roles/kubernetes-apps/container_engine_accelerator/nvidia_gpu/defaults/main.yml
  2. 4
      roles/kubernetes-apps/container_engine_accelerator/nvidia_gpu/templates/k8s-device-plugin-nvidia-daemonset.yml.j2

1
roles/kubernetes-apps/container_engine_accelerator/nvidia_gpu/defaults/main.yml

@ -11,3 +11,4 @@ nvidia_driver_install_ubuntu_container: gcr.io/google-containers/ubuntu-nvidia-d
nvidia_driver_install_supported: false nvidia_driver_install_supported: false
nvidia_gpu_device_plugin_container: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:0842734032018be107fa2490c98156992911e3e1f2a21e059ff0105b07dd8e9e" nvidia_gpu_device_plugin_container: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:0842734032018be107fa2490c98156992911e3e1f2a21e059ff0105b07dd8e9e"
nvidia_gpu_nodes: [] nvidia_gpu_nodes: []
nvidia_gpu_device_plugin_memory: 30Mi

4
roles/kubernetes-apps/container_engine_accelerator/nvidia_gpu/templates/k8s-device-plugin-nvidia-daemonset.yml.j2

@ -44,10 +44,10 @@ spec:
resources: resources:
requests: requests:
cpu: 50m cpu: 50m
memory: 10Mi
memory: {{ nvidia_gpu_device_plugin_memory }}
limits: limits:
cpu: 50m cpu: 50m
memory: 10Mi
memory: {{ nvidia_gpu_device_plugin_memory }}
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:

Loading…
Cancel
Save