mirror of
https://github.com/truenas/charts.git
synced 2026-02-03 02:23:49 +08:00
Add chia to test train
This commit is contained in:
23
test/chia/1.0.0/.helmignore
Normal file
23
test/chia/1.0.0/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
# OWNERS file for Kubernetes
|
||||
OWNERS
|
||||
18
test/chia/1.0.0/Chart.yaml
Normal file
18
test/chia/1.0.0/Chart.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
description: Global, Versioned, peer-to-peer filesystem.
|
||||
name: chia
|
||||
version: 1.0.0
|
||||
appVersion: 1.1.4
|
||||
keywords:
|
||||
- storage
|
||||
- crypto
|
||||
- blockchain
|
||||
home: https://www.chia.net/
|
||||
icon: https://www.chia.net/img/chia_logo.svg
|
||||
sources:
|
||||
- https://github.com/Chia-Network/chia-blockchain
|
||||
- https://github.com/orgs/chia-network/packages/container/package/chia
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2104.0.0
|
||||
version: 2104.0.0
|
||||
8
test/chia/1.0.0/README.md
Executable file
8
test/chia/1.0.0/README.md
Executable file
@@ -0,0 +1,8 @@
|
||||
Chia Network
|
||||
=====
|
||||
|
||||
[CHIA](https://www.chia.net/) is a new blockchain and smart transaction platform that is easier to use, more efficient, and secure.
|
||||
Introduction
|
||||
------------
|
||||
|
||||
This chart bootstraps CHIA deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
|
||||
4
test/chia/1.0.0/app-readme.md
Normal file
4
test/chia/1.0.0/app-readme.md
Normal file
@@ -0,0 +1,4 @@
|
||||
Chia Network
|
||||
=====
|
||||
|
||||
[CHIA](https://www.chia.net/) is a new blockchain and smart transaction platform that is easier to use, more efficient, and secure.
|
||||
BIN
test/chia/1.0.0/charts/common-2104.0.0.tgz
Normal file
BIN
test/chia/1.0.0/charts/common-2104.0.0.tgz
Normal file
Binary file not shown.
17
test/chia/1.0.0/default_values.yaml
Normal file
17
test/chia/1.0.0/default_values.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
image:
|
||||
repository: ghcr.io/chia-network/chia
|
||||
tag: 1.1.4
|
||||
pullPolicy: IfNotPresent
|
||||
updateStrategy: Recreate
|
||||
environmentVariables:
|
||||
- name: "keys"
|
||||
value: "/plots/keyfile"
|
||||
|
||||
appVolumeMounts:
|
||||
staging:
|
||||
emptyDir: true
|
||||
mountPath: "/plots"
|
||||
data:
|
||||
emptyDir: true
|
||||
mountPath: "/root/.chia"
|
||||
|
||||
8
test/chia/1.0.0/ix_values.yaml
Normal file
8
test/chia/1.0.0/ix_values.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
image:
|
||||
repository: ghcr.io/chia-network/chia
|
||||
tag: 1.1.4
|
||||
pullPolicy: IfNotPresent
|
||||
updateStrategy: Recreate
|
||||
environmentVariables:
|
||||
- name: "keys"
|
||||
value: "/plots/keyfile"
|
||||
81
test/chia/1.0.0/questions.yaml
Normal file
81
test/chia/1.0.0/questions.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
groups:
|
||||
- name: "Storage"
|
||||
description: "Configure Storage for Chia"
|
||||
|
||||
questions:
|
||||
- variable: appVolumeMounts
|
||||
label: "Chia Storage"
|
||||
group: "Storage"
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: config
|
||||
label: "Configuration Volume"
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: datasetName
|
||||
label: "Configuration Volume Dataset Name"
|
||||
schema:
|
||||
type: string
|
||||
hidden: true
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
show_if: [["hostPathEnabled", "=", false]]
|
||||
default: "config"
|
||||
editable: false
|
||||
- variable: mountPath
|
||||
label: "Configuration Mount Path"
|
||||
description: "Path where the volume will be mounted inside the pod"
|
||||
schema:
|
||||
type: path
|
||||
hidden: true
|
||||
editable: false
|
||||
default: "/root/.chia"
|
||||
- variable: hostPathEnabled
|
||||
label: "Enable Custom Host Path for Chia Configuration Volume"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: hostPath
|
||||
label: "Host Path for Chia Configuration Volume"
|
||||
schema:
|
||||
type: hostpath
|
||||
required: true
|
||||
- variable: plots
|
||||
label: "Plot Volume"
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: datasetName
|
||||
label: "Plots Volume Name"
|
||||
schema:
|
||||
type: string
|
||||
hidden: true
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
show_if: [["hostPathEnabled", "=", false]]
|
||||
default: "plots"
|
||||
editable: false
|
||||
- variable: mountPath
|
||||
label: "Plots Mount Path"
|
||||
description: "Path where the volume will be mounted inside the pod"
|
||||
schema:
|
||||
type: path
|
||||
hidden: true
|
||||
editable: false
|
||||
default: "/plots"
|
||||
- variable: hostPathEnabled
|
||||
label: "Enable Custom Host Path for Chia Plots Volume"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: hostPath
|
||||
label: "Host Path for Chia Plots Volume"
|
||||
schema:
|
||||
type: hostpath
|
||||
required: true
|
||||
6
test/chia/1.0.0/requirements.lock
Normal file
6
test/chia/1.0.0/requirements.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2104.0.0
|
||||
version: 2104.0.0
|
||||
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009
|
||||
generated: "2021-04-08T16:09:30.006044+05:00"
|
||||
28
test/chia/1.0.0/templates/deployment.yaml
Normal file
28
test/chia/1.0.0/templates/deployment.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
labels: {{ include "common.labels" . | nindent 4 }}
|
||||
spec:
|
||||
strategy:
|
||||
type: {{ .Values.updateStrategy }}
|
||||
selector:
|
||||
matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
# FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
|
||||
{{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }}
|
||||
ports:
|
||||
- name: chia-network
|
||||
protocol: TCP
|
||||
containerPort: 8444
|
||||
hostPort: 8444
|
||||
{{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }}
|
||||
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
|
||||
30
test/chia/1.0.0/templates/generate-mnemonic.yaml
Normal file
30
test/chia/1.0.0/templates/generate-mnemonic.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
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"
|
||||
14
test/chia/1.0.0/templates/mnemonic-configmap.yaml
Normal file
14
test/chia/1.0.0/templates/mnemonic-configmap.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
16
test/chia/1.0.0/test_values.yaml
Normal file
16
test/chia/1.0.0/test_values.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
image:
|
||||
repository: ghcr.io/chia-network/chia
|
||||
tag: 1.1.4
|
||||
pullPolicy: IfNotPresent
|
||||
updateStrategy: Recreate
|
||||
environmentVariables:
|
||||
- name: "keys"
|
||||
value: "/plots/keyfile"
|
||||
|
||||
appVolumeMounts:
|
||||
staging:
|
||||
emptyDir: true
|
||||
mountPath: "/plots"
|
||||
data:
|
||||
emptyDir: true
|
||||
mountPath: "/root/.chia"
|
||||
0
test/chia/1.0.0/values.yaml
Normal file
0
test/chia/1.0.0/values.yaml
Normal file
4
test/chia/item.yaml
Normal file
4
test/chia/item.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
categories:
|
||||
- storage
|
||||
- crypto
|
||||
icon_url: https://www.chia.net/img/chia_logo.svg
|
||||
Reference in New Issue
Block a user