Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
34fb0ce2
Commit
34fb0ce2
authored
Oct 16, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gpu resource to workload if requested
parent
5f85618c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
charts/ix-chart/2010.0.1/questions.yaml
charts/ix-chart/2010.0.1/questions.yaml
+11
-0
charts/ix-chart/2010.0.1/templates/_containers.tpl
charts/ix-chart/2010.0.1/templates/_containers.tpl
+11
-0
No files found.
charts/ix-chart/2010.0.1/questions.yaml
View file @
34fb0ce2
...
...
@@ -17,6 +17,8 @@ groups:
description
:
"
Configure
how
pods
are
replaced
when
configuration
is
upgraded"
-
name
:
"
Restart
Policy"
description
:
"
Configure
when
pod
should
be
restarted
in
case
of
failure"
-
name
:
"
Resource
Reservation"
description
:
"
Specify
resources
to
be
allocated
to
workload"
questions
:
# Workload type
...
...
@@ -395,3 +397,12 @@ questions:
schema
:
type
:
int
default
:
10
# Specify GPU configuration
-
variable
:
gpuConfiguration
label
:
"
GPU
Configuration"
group
:
"
Resource
Reservation"
schema
:
type
:
dict
$ref
:
-
"
definitions/gpuConfiguration"
charts/ix-chart/2010.0.1/templates/_containers.tpl
View file @
34fb0ce2
...
...
@@ -60,3 +60,14 @@ ports:
{{- end }}
{{- end }}
{{- end }}
{
{
/*
Container
Resource
Configuration
*/
}
}
{{- define "containerResourceConfiguration" }}
{{- if .Values.gpuConfiguration }}
resources:
limits:
{{- toYaml .Values.gpuConfiguration | nindent 4 }}
{{- end }}
{{- end }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment