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
67f9f344
Commit
67f9f344
authored
Oct 07, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow node port of chia app to be configurable
parent
103cd335
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
1 deletion
+32
-1
test/chia/1.3.18/questions.yaml
test/chia/1.3.18/questions.yaml
+19
-0
test/chia/1.3.18/templates/deployment.yaml
test/chia/1.3.18/templates/deployment.yaml
+3
-1
test/chia/1.3.18/templates/service.yaml
test/chia/1.3.18/templates/service.yaml
+8
-0
test/chia/1.3.18/test_values.yaml
test/chia/1.3.18/test_values.yaml
+2
-0
No files found.
test/chia/1.3.18/questions.yaml
View file @
67f9f344
...
@@ -5,6 +5,8 @@ groups:
...
@@ -5,6 +5,8 @@ groups:
description
:
"
Configure
farmr.net
support"
description
:
"
Configure
farmr.net
support"
-
name
:
"
Chia
Environment
Variables"
-
name
:
"
Chia
Environment
Variables"
description
:
"
Set
the
environment
that
will
be
visible
to
the
container"
description
:
"
Set
the
environment
that
will
be
visible
to
the
container"
-
name
:
"
Networking"
description
:
"
Configure
networking
for
Chia
container"
portals
:
portals
:
web_portal
:
web_portal
:
...
@@ -153,3 +155,20 @@ questions:
...
@@ -153,3 +155,20 @@ questions:
label
:
"
Value"
label
:
"
Value"
schema
:
schema
:
type
:
string
type
:
string
-
variable
:
service
description
:
"
Networking
Configuration"
label
:
"
Networking
Configuration"
group
:
"
Networking"
schema
:
type
:
dict
required
:
true
attrs
:
-
variable
:
nodePort
label
:
"
Node
Port
to
use
for
Chia"
schema
:
type
:
int
min
:
8000
max
:
65535
default
:
8444
required
:
true
test/chia/1.3.18/templates/deployment.yaml
View file @
67f9f344
...
@@ -27,7 +27,9 @@ spec:
...
@@ -27,7 +27,9 @@ spec:
-
name
:
chia-network
-
name
:
chia-network
protocol
:
TCP
protocol
:
TCP
containerPort
:
8444
containerPort
:
8444
hostPort
:
8444
{{
if lt .Values.service.nodePort 9000
}}
hostPort
:
{{
.Values.service.nodePort
}}
{{
end
}}
{{
$envList
:
= (default list .Values.environmentVariables)
}}
{{
$envList
:
= (default list .Values.environmentVariables)
}}
{{
$envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile")
}}
{{
$envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile")
}}
{{
$envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env)
}}
{{
$envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env)
}}
...
...
test/chia/1.3.18/templates/service.yaml
0 → 100644
View file @
67f9f344
{{
$svc
:
= .Values.service
}}
{{
if ge $svc.nodePort 9000
}}
{{
$ports
:
= list
}}
{{
$ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444)
}}
{{
$params
:
= .
}}
{{
$_
:
= set $params "commonService" (dict "type" "NodePort" "ports" $ports )
}}
{{
include "common.classes.service" $params
}}
{{
end
}}
test/chia/1.3.18/test_values.yaml
View file @
67f9f344
...
@@ -11,3 +11,5 @@ image:
...
@@ -11,3 +11,5 @@ image:
repository
:
ixsystems/chia-docker
repository
:
ixsystems/chia-docker
tag
:
v1.2.8
tag
:
v1.2.8
updateStrategy
:
Recreate
updateStrategy
:
Recreate
service
:
nodePort
:
33121
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