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
3179fabc
Commit
3179fabc
authored
Nov 20, 2021
by
Muhammad Rehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cluster IP services
parent
31a84fce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
test/machinaris/1.0.11/charts/common-2105.0.0.tgz
test/machinaris/1.0.11/charts/common-2105.0.0.tgz
+0
-0
test/machinaris/1.0.11/templates/service.yaml
test/machinaris/1.0.11/templates/service.yaml
+12
-1
No files found.
test/machinaris/1.0.11/charts/common-2105.0.0.tgz
View file @
3179fabc
No preview for this file type
test/machinaris/1.0.11/templates/service.yaml
View file @
3179fabc
...
@@ -4,4 +4,15 @@
...
@@ -4,4 +4,15 @@
{{
$params
:
= .
}}
{{
$params
:
= .
}}
{{
$_
:
= set $params "commonService" (dict "ports" $ports "type" "NodePort" )
}}
{{
$_
:
= set $params "commonService" (dict "ports" $ports "type" "NodePort" )
}}
{{
include "common.classes.service" $params
}}
{{
include "common.classes.service" $params
}}
{{
}}
---
{{
$this
:
= .
}}
{{
range $coin
:
= $this.Values.coins
}}
{{
$_
:
= set $this "common" (dict "nameSuffix" $coin.name)
}}
{{
$ports
:
= list
}}
{{
range $port
:
= $coin.ports
}}
{{
$ports = mustAppend $ports (dict "name" (printf "%v-%v" $coin.name $port.containerPort) "port" $port.containerPort "targetPort" $port.containerPort)
}}
{{
end
}}
{{
$_
:
= set $this "commonService" (dict "ports" $ports "type" "ClusterIP" )
}}
{{
include "common.classes.service" $this
}}
---
{{
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