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
5f85618c
Commit
5f85618c
authored
Oct 16, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add port configuration to k8s pod
parent
a88f0ad2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
charts/ix-chart/2010.0.1/templates/_containers.tpl
charts/ix-chart/2010.0.1/templates/_containers.tpl
+12
-0
charts/ix-chart/2010.0.1/templates/_workload.tpl
charts/ix-chart/2010.0.1/templates/_workload.tpl
+1
-0
charts/ix-chart/2010.0.1/templates/service.yaml
charts/ix-chart/2010.0.1/templates/service.yaml
+1
-1
No files found.
charts/ix-chart/2010.0.1/templates/_containers.tpl
View file @
5f85618c
...
...
@@ -48,3 +48,15 @@ livenessProbe:
periodSeconds: {{ .Values.periodSeconds }}
{{- end }}
{{- end }}
{
{
/*
Container
Ports
*/
}
}
{{- define "containerPorts" }}
{{- if .Values.portForwardingList }}
ports:
{{- range $index, $config := .Values.portForwardingList }}
- containerPort: {{ $config.containerPort }}
{{- end }}
{{- end }}
{{- end }}
charts/ix-chart/2010.0.1/templates/_workload.tpl
View file @
5f85618c
...
...
@@ -62,6 +62,7 @@ containers:
{{- include "containerArgs" . | indent 2 }}
{{- include "containerEnvVariables" . | indent 2 }}
{{- include "containerLivenssProbe" . | indent 2 }}
{{- include "containerPorts" . | indent 2 }}
{{- include "volumeConfiguration" . }}
{{- include "dnsConfiguration" . }}
{{- end }}
...
...
charts/ix-chart/2010.0.1/service.yaml
→
charts/ix-chart/2010.0.1/
templates/
service.yaml
View file @
5f85618c
...
...
@@ -2,7 +2,7 @@
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
-
include "ix-chart.fullname" .
}}
name
:
{{
include "ix-chart.fullname" .
}}
labels
:
{{
- include "ix-chart.labels" . | nindent 4
}}
spec
:
...
...
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