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
7f4906bd
Commit
7f4906bd
authored
Oct 07, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly disable host networking when chia ports are greater then or equal to 9000
parent
67f9f344
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
17 deletions
+21
-17
test/chia/1.3.18/questions.yaml
test/chia/1.3.18/questions.yaml
+15
-15
test/chia/1.3.18/templates/deployment.yaml
test/chia/1.3.18/templates/deployment.yaml
+5
-1
test/chia/1.3.18/templates/service.yaml
test/chia/1.3.18/templates/service.yaml
+1
-1
No files found.
test/chia/1.3.18/questions.yaml
View file @
7f4906bd
...
@@ -157,18 +157,18 @@ questions:
...
@@ -157,18 +157,18 @@ questions:
type
:
string
type
:
string
-
variable
:
service
-
variable
:
service
description
:
"
Networking
Configuration"
description
:
"
Networking
Configuration"
label
:
"
Networking
Configuration"
label
:
"
Networking
Configuration"
group
:
"
Networking"
group
:
"
Networking"
schema
:
schema
:
type
:
dict
type
:
dict
required
:
true
required
:
true
attrs
:
attrs
:
-
variable
:
nodePort
-
variable
:
nodePort
label
:
"
Node
Port
to
use
for
Chia"
label
:
"
Node
Port
to
use
for
Chia"
schema
:
schema
:
type
:
int
type
:
int
min
:
8000
min
:
8000
max
:
65535
max
:
65535
default
:
8444
default
:
8444
required
:
true
required
:
true
test/chia/1.3.18/templates/deployment.yaml
View file @
7f4906bd
...
@@ -3,6 +3,8 @@ kind: Deployment
...
@@ -3,6 +3,8 @@ kind: Deployment
metadata
:
metadata
:
name
:
{{
template "common.names.fullname" .
}}
name
:
{{
template "common.names.fullname" .
}}
labels
:
{{
include "common.labels" . | nindent 4
}}
labels
:
{{
include "common.labels" . | nindent 4
}}
annotations
:
rollme
:
{{
randAlphaNum 5 | quote
}}
spec
:
spec
:
strategy
:
strategy
:
type
:
{{
.Values.updateStrategy
}}
type
:
{{
.Values.updateStrategy
}}
...
@@ -14,7 +16,9 @@ spec:
...
@@ -14,7 +16,9 @@ spec:
labels
:
{{
include "common.labels.selectorLabels" . | nindent 8
}}
labels
:
{{
include "common.labels.selectorLabels" . | nindent 8
}}
spec
:
spec
:
# FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
# FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
{{
if lt (.Values.service.nodePort | int) 9000
}}
hostNetwork
:
true
hostNetwork
:
true
{{
end
}}
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
...
@@ -27,7 +31,7 @@ spec:
...
@@ -27,7 +31,7 @@ spec:
-
name
:
chia-network
-
name
:
chia-network
protocol
:
TCP
protocol
:
TCP
containerPort
:
8444
containerPort
:
8444
{{
if lt
.Values.service.nodePort
9000
}}
{{
if lt
(.Values.service.nodePort | int)
9000
}}
hostPort
:
{{
.Values.service.nodePort
}}
hostPort
:
{{
.Values.service.nodePort
}}
{{
end
}}
{{
end
}}
{{
$envList
:
= (default list .Values.environmentVariables)
}}
{{
$envList
:
= (default list .Values.environmentVariables)
}}
...
...
test/chia/1.3.18/templates/service.yaml
View file @
7f4906bd
{{
$svc
:
= .Values.service
}}
{{
$svc
:
= .Values.service
}}
{{
if ge
$svc.nodePort
9000
}}
{{
if ge
($svc.nodePort | int)
9000
}}
{{
$ports
:
= list
}}
{{
$ports
:
= list
}}
{{
$ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444)
}}
{{
$ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444)
}}
{{
$params
:
= .
}}
{{
$params
:
= .
}}
...
...
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