Compare commits

..

1 Commits

Author SHA1 Message Date
nιcнolaѕ wιlde
671ff5362b Migrated to common library (#903)
Signed-off-by: Nicholas Wilde <ncwilde43@gmail.com>

Co-authored-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2021-05-10 08:46:22 +02:00
10 changed files with 121 additions and 218 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: intel-gpu-plugin
version: 1.2.3
version: 2.0.0
appVersion: 0.20.0
description: The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware
keywords:
@@ -15,3 +15,7 @@ sources:
maintainers:
- name: billimek
email: jeff@billimek.com
dependencies:
- name: common
version: 2.5.0
repository: https://library-charts.k8s-at-home.com

View File

@@ -1,6 +1,6 @@
# intel-gpu-plugin
![Version: 1.2.3](https://img.shields.io/badge/Version-1.2.3-informational?style=flat-square) ![AppVersion: 0.20.0](https://img.shields.io/badge/AppVersion-0.20.0-informational?style=flat-square)
![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![AppVersion: 0.20.0](https://img.shields.io/badge/AppVersion-0.20.0-informational?style=flat-square)
The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware
@@ -16,6 +16,7 @@ The Intel GPU plugin facilitates offloading the processing of computation intens
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.5.0 |
## TL;DR
@@ -86,24 +87,37 @@ affinity:
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"intel/intel-gpu-plugin"` | Image repository |
| image.tag | string | `"0.20.0"` | Image tag. Possible values listed [here](https://hub.docker.com/r/intel/intel-gpu-plugin/tags) |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | Key-value pairs to add as pod annotations |
| podSecurityContext | object | `{}` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| serviceAccount.annotations | object | `{}` | |
| args[0] | string | `"-shared-dev-num"` | |
| args[1] | string | `"1"` | |
| controllerType | string | `"daemonset"` | |
| envValueFrom.NODE_NAME.fieldRef.fieldPath | string | `"spec.nodeName"` | |
| hostPathMounts[0].emptyDir | bool | `false` | |
| hostPathMounts[0].enabled | bool | `true` | |
| hostPathMounts[0].hostPath | string | `"/dev/dri"` | |
| hostPathMounts[0].mountPath | string | `"/dev/dri"` | |
| hostPathMounts[0].name | string | `"devfs"` | |
| hostPathMounts[0].readOnly | bool | `true` | |
| hostPathMounts[1].emptyDir | bool | `false` | |
| hostPathMounts[1].enabled | bool | `true` | |
| hostPathMounts[1].hostPath | string | `"/sys/class/drm"` | |
| hostPathMounts[1].mountPath | string | `"/sys/class/drm"` | |
| hostPathMounts[1].name | string | `"sysfs"` | |
| hostPathMounts[1].readOnly | bool | `true` | |
| hostPathMounts[2].emptyDir | bool | `false` | |
| hostPathMounts[2].enabled | bool | `true` | |
| hostPathMounts[2].hostPath | string | `"/var/lib/kubelet/device-plugins"` | |
| hostPathMounts[2].mountPath | string | `"/var/lib/kubelet/device-plugins"` | |
| hostPathMounts[2].name | string | `"kubeletsockets"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"intel/intel-gpu-plugin"` | |
| image.tag | string | `"0.20.0"` | |
| ingress.enabled | bool | `false` | |
| probes.liveness.enabled | bool | `false` | |
| probes.readiness.enabled | bool | `false` | |
| probes.startup.enabled | bool | `false` | |
| service.enabled | bool | `false` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| sharedDeviceNumber | int | 1 | Number of containers sharing the same GPU device |
| strategyType | string | `"Recreate"` | Specifies the strategy used to replace old Pods by new ones |
| tolerations | list | `[]` | |
| strategy.type | string | `"Recreate"` | |
## Changelog
@@ -111,6 +125,20 @@ 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).
### [2.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate to the common library, a lot of configuration has changed.
#### Removed
- N/A
### [1.2.0]
#### Fixed
@@ -145,9 +173,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[1.2.0]: #1.2.0
[1.1.0]: #1.1.0
[1.0.1]: #1.0.1
[2.0.0]: #200
[1.2.0]: #120
[1.1.0]: #110
[1.0.1]: #101
## Support

View File

@@ -143,3 +143,4 @@ helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -
{{ template "custom.support" . }}
{{ template "helm-docs.versionFooter" . }}
{{ "" }}

View File

@@ -9,6 +9,20 @@ 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).
### [2.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate to the common library, a lot of configuration has changed.
#### Removed
- N/A
### [1.2.0]
#### Fixed
@@ -44,7 +58,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[1.2.0]: #1.2.0
[1.1.0]: #1.1.0
[1.0.1]: #1.0.1
[2.0.0]: #200
[1.2.0]: #120
[1.1.0]: #110
[1.0.1]: #101
{{- end -}}

View File

@@ -0,0 +1 @@
{{- include "common.notes.defaultNotes" . -}}

View File

@@ -1,62 +0,0 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "intel-gpu-plugin.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "intel-gpu-plugin.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "intel-gpu-plugin.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "intel-gpu-plugin.labels" -}}
helm.sh/chart: {{ include "intel-gpu-plugin.chart" . }}
{{ include "intel-gpu-plugin.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "intel-gpu-plugin.selectorLabels" -}}
app.kubernetes.io/name: {{ include "intel-gpu-plugin.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "intel-gpu-plugin.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "intel-gpu-plugin.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@@ -1,74 +0,0 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "intel-gpu-plugin.fullname" . }}
labels:
{{- include "intel-gpu-plugin.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "intel-gpu-plugin.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "intel-gpu-plugin.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "intel-gpu-plugin.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
args:
- -shared-dev-num
- {{ .Values.sharedDeviceNumber | quote }}
volumeMounts:
- name: devfs
mountPath: /dev/dri
readOnly: true
- name: sysfs
mountPath: /sys/class/drm
readOnly: true
- name: kubeletsockets
mountPath: /var/lib/kubelet/device-plugins
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: devfs
hostPath:
path: /dev/dri
- name: sysfs
hostPath:
path: /sys/class/drm
- name: kubeletsockets
hostPath:
path: /var/lib/kubelet/device-plugins
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -1,12 +0,0 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "intel-gpu-plugin.serviceAccountName" . }}
labels:
{{- include "intel-gpu-plugin.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@@ -1,61 +1,61 @@
# Default values for intel-gpu-plugin.
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#
image:
# -- Image repository
repository: intel/intel-gpu-plugin
# -- Image pull policy
pullPolicy: IfNotPresent
# -- Image tag. Possible values listed [here](https://hub.docker.com/r/intel/intel-gpu-plugin/tags)
tag: 0.20.0
# -- Specifies the strategy used to replace old Pods by new ones
strategyType: Recreate
controllerType: daemonset
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
strategy:
type: Recreate
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# -- Number of containers sharing the same GPU device
# @default -- 1
sharedDeviceNumber: 1
args:
- -shared-dev-num
- "1"
# -- Key-value pairs to add as pod annotations
podAnnotations: {}
envValueFrom:
NODE_NAME:
fieldRef:
fieldPath: spec.nodeName
podSecurityContext: {}
# fsGroup: 2000
hostPathMounts:
- name: "devfs"
enabled: true
emptyDir: false
mountPath: "/dev/dri"
hostPath: "/dev/dri"
readOnly: true
- name: "sysfs"
enabled: true
emptyDir: false
mountPath: "/sys/class/drm"
hostPath: "/sys/class/drm"
readOnly: true
- name: "kubeletsockets"
enabled: true
emptyDir: false
mountPath: "/var/lib/kubelet/device-plugins"
hostPath: "/var/lib/kubelet/device-plugins"
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
ingress:
enabled: false
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
service:
enabled: false
nodeSelector: {}
tolerations: []
affinity: {}
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false