mirror of
https://github.com/truenas/charts.git
synced 2026-02-12 23:06:13 +08:00
Update stable train from test train
This commit is contained in:
@@ -15,4 +15,4 @@ name: chia
|
||||
sources:
|
||||
- https://github.com/Chia-Network/chia-blockchain
|
||||
- https://github.com/orgs/chia-network/packages/container/package/chia
|
||||
version: 1.3.17
|
||||
version: 1.3.18
|
||||
@@ -5,6 +5,8 @@ groups:
|
||||
description: "Configure farmr.net support"
|
||||
- name: "Chia Environment Variables"
|
||||
description: "Set the environment that will be visible to the container"
|
||||
- name: "Networking"
|
||||
description: "Configure networking for Chia container"
|
||||
|
||||
portals:
|
||||
web_portal:
|
||||
@@ -153,3 +155,28 @@ questions:
|
||||
label: "Value"
|
||||
schema:
|
||||
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
|
||||
- variable: farmerPort
|
||||
label: "Farmer Port to use for Chia"
|
||||
schema:
|
||||
type: int
|
||||
min: 8000
|
||||
max: 65535
|
||||
default: 8447
|
||||
required: true
|
||||
@@ -3,6 +3,8 @@ kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
labels: {{ include "common.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
rollme: {{ randAlphaNum 5 | quote }}
|
||||
spec:
|
||||
strategy:
|
||||
type: {{ .Values.updateStrategy }}
|
||||
@@ -14,7 +16,9 @@ spec:
|
||||
labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
# FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
|
||||
{{ if eq (include "hostNetworkingEnabled" .) "true" }}
|
||||
hostNetwork: true
|
||||
{{ end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
|
||||
@@ -27,7 +31,9 @@ spec:
|
||||
- name: chia-network
|
||||
protocol: TCP
|
||||
containerPort: 8444
|
||||
hostPort: 8444
|
||||
- name: chia-farmer
|
||||
protocol: TCP
|
||||
containerPort: 8447
|
||||
{{ $envList := (default list .Values.environmentVariables) }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env) }}
|
||||
21
charts/chia/1.3.18/templates/networking.tpl
Normal file
21
charts/chia/1.3.18/templates/networking.tpl
Normal file
@@ -0,0 +1,21 @@
|
||||
{{/*
|
||||
Enable host networking
|
||||
*/}}
|
||||
{{- define "hostNetworkingEnabled" -}}
|
||||
{{- if or (lt (.Values.service.nodePort | int) 9000) (lt (.Values.service.farmerPort | int) 9000) -}}
|
||||
{{- print "true" -}}
|
||||
{{- else -}}
|
||||
{{- print "false" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Enable Node Port Service
|
||||
*/}}
|
||||
{{- define "enableService" -}}
|
||||
{{- if or (ge (.Values.service.nodePort | int) 9000) (ge (.Values.service.farmerPort | int) 9000) -}}
|
||||
{{- print "true" -}}
|
||||
{{- else -}}
|
||||
{{- print "false" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
13
charts/chia/1.3.18/templates/service.yaml
Normal file
13
charts/chia/1.3.18/templates/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ if eq (include "enableService" .) "true" }}
|
||||
{{ $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) }}
|
||||
{{ end }}
|
||||
{{ $params := . }}
|
||||
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
|
||||
{{ include "common.classes.service" $params }}
|
||||
{{ end }}
|
||||
@@ -11,3 +11,6 @@ image:
|
||||
repository: ixsystems/chia-docker
|
||||
tag: v1.2.8
|
||||
updateStrategy: Recreate
|
||||
service:
|
||||
nodePort: 31121
|
||||
farmerPort: 31122
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Formats volumeMount for Minio tls keys and trusted certs
|
||||
Enable host networking
|
||||
*/}}
|
||||
{{- define "hostNetworkingEnabled" -}}
|
||||
{{- if or (lt (.Values.service.nodePort | int) 9000) (lt (.Values.service.farmerPort | int) 9000) -}}
|
||||
@@ -10,7 +10,7 @@ Formats volumeMount for Minio tls keys and trusted certs
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Formats volume for Minio tls keys and trusted certs
|
||||
Enable Node Port Service
|
||||
*/}}
|
||||
{{- define "enableService" -}}
|
||||
{{- if or (ge (.Values.service.nodePort | int) 9000) (ge (.Values.service.farmerPort | int) 9000) -}}
|
||||
|
||||
@@ -12,5 +12,5 @@ image:
|
||||
tag: v1.2.8
|
||||
updateStrategy: Recreate
|
||||
service:
|
||||
nodePort: 33121
|
||||
farmerPort: 33122
|
||||
nodePort: 31121
|
||||
farmerPort: 31122
|
||||
|
||||
Reference in New Issue
Block a user