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
842c2dcb
Commit
842c2dcb
authored
Oct 24, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup filecoin deployment
parent
5b5fe22a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
110 deletions
+35
-110
test/filecoin/1.0.0/app-readme.md
test/filecoin/1.0.0/app-readme.md
+2
-2
test/filecoin/1.0.0/questions.yaml
test/filecoin/1.0.0/questions.yaml
+29
-53
test/filecoin/1.0.0/templates/deployment.yaml
test/filecoin/1.0.0/templates/deployment.yaml
+3
-7
test/filecoin/1.0.0/templates/generate-mnemonic.yaml
test/filecoin/1.0.0/templates/generate-mnemonic.yaml
+0
-30
test/filecoin/1.0.0/templates/mnemonic-configmap.yaml
test/filecoin/1.0.0/templates/mnemonic-configmap.yaml
+0
-14
test/filecoin/1.0.0/templates/service.yaml
test/filecoin/1.0.0/templates/service.yaml
+1
-4
No files found.
test/filecoin/1.0.0/app-readme.md
View file @
842c2dcb
Chia
Network
Filecoin
Network
=====
[
CHIA
](
https://www.chia.net/
)
is a new blockchain and smart transaction platform that is easier to use, more efficient, and secur
e.
Filecoin is a peer-to-peer network that stores files on the internet, with built-in economic incentives to ensure files are stored reliably over tim
e.
test/filecoin/1.0.0/questions.yaml
View file @
842c2dcb
groups
:
-
name
:
"
Storage"
description
:
"
Configure
Storage
for
Chia"
-
name
:
"
Farmr.net
Configuration"
description
:
"
Configure
farmr.net
support"
-
name
:
"
Chia
Environment
Variables"
description
:
"
Configure
Storage"
-
name
:
"
Environment
Variables"
description
:
"
Set
the
environment
that
will
be
visible
to
the
container"
-
name
:
"
Networking"
description
:
"
Configure
networking
for
Chia
container
"
description
:
"
Configure
networking"
portals
:
web_portal
:
...
...
@@ -19,106 +17,92 @@ portals:
path
:
"
/kb/truepool-docker-image/"
questions
:
-
variable
:
farmr_env
label
:
"
Enable
'farmr.net'
support"
group
:
"
Farmr.net
Configuration"
description
:
"
Configure
'farmr.net'
support
for
chia"
schema
:
type
:
string
default
:
"
off"
enum
:
-
value
:
"
off"
description
:
"
OFF"
-
value
:
"
farmer"
description
:
"
FARMER"
-
value
:
"
harvester"
description
:
"
HARVESTER"
-
variable
:
appVolumeMounts
label
:
"
Chia
Storage"
label
:
"
Storage"
group
:
"
Storage"
schema
:
type
:
dict
attrs
:
-
variable
:
config
label
:
"
Configuration
Volume"
-
variable
:
data
label
:
"
Lotus
Data
Volume"
schema
:
type
:
dict
attrs
:
-
variable
:
datasetName
label
:
"
Configuration
Volume
Dataset
Name"
label
:
"
Lotus
Data
Volume
Dataset
Name"
schema
:
type
:
string
hidden
:
true
$ref
:
-
"
normalize/ixVolume"
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
"
config
"
default
:
"
lotus
"
editable
:
false
-
variable
:
mountPath
label
:
"
Configuration
Mount
Path"
label
:
"
Lotus
Data
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
hidden
:
true
editable
:
tru
e
default
:
"
/
data
"
editable
:
fals
e
default
:
"
/
var/lib/lotus
"
-
variable
:
hostPathEnabled
label
:
"
Enable
Custom
Host
Path
for
Chia
Configuration
Volume"
label
:
"
Enable
Custom
Host
Path
for
Lotus
Data
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Chia
Configuration
Volume"
label
:
"
Host
Path
for
Lotus
Data
Volume"
schema
:
type
:
hostpath
required
:
true
-
variable
:
p
lots
label
:
"
Plot
Volume"
-
variable
:
p
arameterCache
label
:
"
Filecoin
Parameter
Cache
Volume"
schema
:
type
:
dict
attrs
:
-
variable
:
datasetName
label
:
"
P
lots
Volume
Name"
label
:
"
P
arameter
Cache
Volume
Name"
schema
:
type
:
string
hidden
:
true
$ref
:
-
"
normalize/ixVolume"
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
"
p
lots
"
default
:
"
p
arameter_cache
"
editable
:
false
-
variable
:
mountPath
label
:
"
P
lots
Mount
Path"
label
:
"
P
arameter
Cache
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
hidden
:
true
editable
:
fals
e
default
:
"
/
plot
s"
editable
:
tru
e
default
:
"
/
var/tmp/filecoin-proof-parameter
s"
-
variable
:
hostPathEnabled
label
:
"
Enable
Custom
Host
Path
for
Chia
Plots
Volume"
label
:
"
Enable
Custom
Host
Path
for
Parameter
Cache
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Chia
Plots
Volume"
label
:
"
Host
Path
for
Parameter
Cache
Volume"
schema
:
type
:
hostpath
required
:
true
-
variable
:
extraAppVolumeMounts
label
:
"
Chia
Extra
Host
Path
Volumes"
label
:
"
Extra
Host
Path
Volumes"
group
:
"
Storage"
schema
:
type
:
list
items
:
-
variable
:
extraAppVolume
label
:
"
Chia
Host
Path
Volume"
description
:
"
Add
an
extra
host
path
volume
for
chia
application
"
label
:
"
Host
Path
Volume"
description
:
"
Add
an
extra
host
path
volume"
schema
:
type
:
dict
attrs
:
...
...
@@ -136,8 +120,8 @@ questions:
required
:
true
-
variable
:
environmentVariables
label
:
"
Environment
Variables
for
Chia
"
group
:
"
Chia
Environment
Variables"
label
:
"
Environment
Variables"
group
:
"
Environment
Variables"
schema
:
type
:
list
default
:
[]
...
...
@@ -165,18 +149,10 @@ questions:
required
:
true
attrs
:
-
variable
:
nodePort
label
:
"
Node
Port
to
use
for
Chia"
schema
:
type
:
int
min
:
8000
max
:
65535
default
:
8444
required
:
true
-
variable
:
farmerPort
label
:
"
Farmer
Port
to
use
for
Chia"
label
:
"
Node
Port
to
use
for
Filecoin"
schema
:
type
:
int
min
:
8000
max
:
65535
default
:
8447
default
:
9665
required
:
true
test/filecoin/1.0.0/templates/deployment.yaml
View file @
842c2dcb
...
...
@@ -26,14 +26,10 @@ spec:
mountPath
:
{{
$hostPathConfiguration.mountPath
}}
{{
end
}}
ports
:
-
name
:
chia
-network
-
name
:
fil
-network
protocol
:
TCP
containerPort
:
8444
hostPort
:
null
-
name
:
chia-farmer
protocol
:
TCP
containerPort
:
8447
hostPort
:
null
containerPort
:
1234
hostPort
:
1234
{{
$envList
:
= (default list .Values.environmentVariables)
}}
{{
$envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile")
}}
{{
$envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env)
}}
...
...
test/filecoin/1.0.0/templates/generate-mnemonic.yaml
deleted
100644 → 0
View file @
5b5fe22a
apiVersion
:
batch/v1
kind
:
Job
metadata
:
name
:
"
pre-install"
annotations
:
"
helm.sh/hook"
:
pre-install
"
helm.sh/hook-weight"
:
"
1"
"
helm.sh/hook-delete-policy"
:
hook-succeeded
spec
:
template
:
metadata
:
name
:
"
pre-upgrade-hook2"
spec
:
restartPolicy
:
Never
containers
:
-
name
:
{{
.Chart.Name
}}
-generate-mnemonic
{{
include "common.containers.imageConfig" .Values.image | nindent 8
}}
volumeMounts:{{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 10 }}
- name
:
generate-mnemonic-configmap
mountPath
:
/generate_entrypoint.sh
readOnly
:
true
subPath
:
entrypoint.sh
command
:
-
"
/generate_entrypoint.sh"
volumes
:
{{
- include "common.storage.configureAppVolumes" .Values | nindent 8 -
}}
-
name
:
generate-mnemonic-configmap
configMap
:
defaultMode
:
0700
name
:
"
generate-mnemonic-config-map"
test/filecoin/1.0.0/templates/mnemonic-configmap.yaml
deleted
100644 → 0
View file @
5b5fe22a
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
"
generate-mnemonic-config-map"
annotations
:
"
helm.sh/hook"
:
pre-install
"
helm.sh/hook-weight"
:
"
-1"
"
helm.sh/hook-delete-policy"
:
hook-succeeded
data
:
entrypoint.sh
:
|-
#!/bin/sh
if [ ! -e /plots/keyfile ]; then
/chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile;
fi
test/filecoin/1.0.0/templates/service.yaml
View file @
842c2dcb
...
...
@@ -2,10 +2,7 @@
{{
$svc
:
= .Values.service
}}
{{
$ports
:
= list
}}
{{
if ge ($svc.nodePort | int) 9000
}}
{{
$ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444)
}}
{{
end
}}
{{
if ge ($svc.farmerPort | int) 9000
}}
{{
$ports = mustAppend $ports (dict "name" "chia-farmer" "port" $svc.farmerPort "nodePort" $svc.farmerPort "targetPort" 8447)
}}
{{
$ports = mustAppend $ports (dict "name" "fil-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444)
}}
{{
end
}}
{{
$params
:
= .
}}
{{
$_
:
= set $params "commonService" (dict "type" "NodePort" "ports" $ports )
}}
...
...
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