From aa72e525dff698f5c7091c4c9e2b95fb3aa4302b Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Mon, 7 Dec 2020 20:17:02 +0500 Subject: [PATCH] Add GPU support --- test/plex/2.1.0/questions.yaml | 9 +++++++++ test/plex/2.1.0/templates/deployment.yaml | 5 +++++ test/plex/2.1.0/values.yaml | 2 ++ 3 files changed, 16 insertions(+) diff --git a/test/plex/2.1.0/questions.yaml b/test/plex/2.1.0/questions.yaml index 3be8e1a419c..e2328f9e339 100644 --- a/test/plex/2.1.0/questions.yaml +++ b/test/plex/2.1.0/questions.yaml @@ -263,3 +263,12 @@ questions: type: string default: "ix-plex_config" editable: false + + # Specify GPU configuration + - variable: gpuConfiguration + label: "GPU Configuration" + group: "Resource Reservation" + schema: + type: dict + $ref: + - "definitions/gpuConfiguration" diff --git a/test/plex/2.1.0/templates/deployment.yaml b/test/plex/2.1.0/templates/deployment.yaml index 2a83f538407..acbc425aced 100644 --- a/test/plex/2.1.0/templates/deployment.yaml +++ b/test/plex/2.1.0/templates/deployment.yaml @@ -136,6 +136,11 @@ spec: mountPath: /shared - name: shared-logs mountPath: "/config/Library/Application Support/Plex Media Server/Logs" + {{- if .Values.gpuConfiguration }} + resources: + limits: + {{- toYaml .Values.gpuConfiguration | nindent 14 }} + {{- end }} volumes: - name: data hostPath: diff --git a/test/plex/2.1.0/values.yaml b/test/plex/2.1.0/values.yaml index 0daf7fe4554..668423ea8ea 100644 --- a/test/plex/2.1.0/values.yaml +++ b/test/plex/2.1.0/values.yaml @@ -71,3 +71,5 @@ proxy: # http: "http://proxy:8080" # https: "https://proxy:8080" # noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12" + +gpuConfiguration: {}