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
fee3de39
Commit
fee3de39
authored
Nov 05, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for host networking and host paths
parent
937a26e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
test/ix-chart/2010.0.2/questions.yaml
test/ix-chart/2010.0.2/questions.yaml
+29
-0
test/ix-chart/2010.0.2/templates/_containers.tpl
test/ix-chart/2010.0.2/templates/_containers.tpl
+5
-1
No files found.
test/ix-chart/2010.0.2/questions.yaml
View file @
fee3de39
...
...
@@ -293,6 +293,35 @@ questions:
schema
:
type
:
string
-
variable
:
hostNetwork
label
:
"
Provide
access
to
node
network
namespace
for
the
workload"
group
:
"
Networking"
schema
:
type
:
boolean
default
:
false
-
variable
:
hostPortsList
label
:
"
Specify
host
ports
for
the
workload"
description
:
"
Only
use
host
ports
if
scaling
of
a
workload
is
not
required"
schema
:
type
:
list
items
:
-
variable
:
hostPortConfiguration
label
:
"
Host
Port
Configuration"
schema
:
type
:
dict
attrs
:
-
variable
:
containerPort
label
:
"
Container
Port"
schema
:
type
:
string
required
:
true
-
variable
:
hostPort
label
:
"
Host
Port"
schema
:
type
:
string
required
:
true
-
variable
:
portForwardingList
label
:
"
Specify
Node
ports
to
forward
to
workload"
group
:
"
Networking"
...
...
test/ix-chart/2010.0.2/templates/_containers.tpl
View file @
fee3de39
...
...
@@ -53,11 +53,15 @@ livenessProbe:
Container
Ports
*/
}
}
{{- define "containerPorts" }}
{{- if
.Values.portForwarding
List }}
{{- if
or .Values.portForwardingList .Values.hostPorts
List }}
ports:
{{- range $index, $config := .Values.portForwardingList }}
- containerPort: {{ $config.containerPort }}
{{- end }}
{{- range $index, $config := .Values.hostPortsList }}
- containerPort: {{ $config.containerPort }}
hostPort: {{ $config.hostPort }}
{{- end }}
{{- 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