[intel-gpu-plugin] Allow GPU sharing (#658)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-03-12 17:34:43 +01:00 committed by GitHub
parent a4b9ef649d
commit 47f775ff1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 9 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
name: intel-gpu-plugin name: intel-gpu-plugin
version: 1.0.1 version: 1.1.0
appVersion: 0.18.1 appVersion: 0.19.0
description: The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware description: The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware
keywords: keywords:
- kubernetes - kubernetes

View File

@ -1,6 +1,6 @@
# intel-gpu-plugin # intel-gpu-plugin
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![AppVersion: 0.18.1](https://img.shields.io/badge/AppVersion-0.18.1-informational?style=flat-square) ![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![AppVersion: 0.19.0](https://img.shields.io/badge/AppVersion-0.19.0-informational?style=flat-square)
The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware
@ -101,6 +101,7 @@ affinity:
| serviceAccount.annotations | object | `{}` | | | serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | | | serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | | | serviceAccount.name | string | `""` | |
| shared_device_number | int | 1 | Number of containers sharing the same GPU device |
| strategyType | string | `"Recreate"` | Specifies the strategy used to replace old Pods by new ones | | strategyType | string | `"Recreate"` | Specifies the strategy used to replace old Pods by new ones |
| tolerations | list | `[]` | | | tolerations | list | `[]` | |
@ -110,7 +111,21 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [0.18.1] ### [1.1.0]
#### Added
- This chart now supports the `shared-dev-num` value. This allows setting the number of containers sharing the same GPU device.
#### Changed
- Bumped the image version to 0.19.0.
#### Fixed
- Changelog versions
### [1.0.1]
#### Added #### Added
@ -124,7 +139,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
[0.18.1]: #0.18.1 [1.1.0]: #1.1.0
[1.0.1]: #1.0.1
## Support ## Support

View File

@ -9,7 +9,22 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [0.18.1] ### [1.1.0]
#### Added
- This chart now supports the `shared-dev-num` value. This allows setting the number of containers sharing the same GPU device.
#### Changed
- Bumped the image version to 0.19.0.
#### Fixed
- Changelog versions
### [1.0.1]
#### Added #### Added
@ -23,5 +38,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
[0.18.1]: #0.18.1 [1.1.0]: #1.1.0
[1.0.1]: #1.0.1
{{- end -}} {{- end -}}

View File

@ -36,6 +36,9 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
args:
- -shared-dev-num
- {{ .Values.shared_device_number | quote }}
volumeMounts: volumeMounts:
- name: devfs - name: devfs
mountPath: /dev/dri mountPath: /dev/dri

View File

@ -6,7 +6,7 @@ image:
# -- Image pull policy # -- Image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# -- Image tag. Possible values listed [here](https://hub.docker.com/r/intel/intel-gpu-plugin/tags) # -- Image tag. Possible values listed [here](https://hub.docker.com/r/intel/intel-gpu-plugin/tags)
tag: 0.18.1 tag: 0.19.0
# -- Specifies the strategy used to replace old Pods by new ones # -- Specifies the strategy used to replace old Pods by new ones
strategyType: Recreate strategyType: Recreate
@ -24,6 +24,10 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: "" name: ""
# -- Number of containers sharing the same GPU device
# @default -- 1
shared_device_number: 1
# -- Key-value pairs to add as pod annotations # -- Key-value pairs to add as pod annotations
podAnnotations: {} podAnnotations: {}