Commit d370f88c authored by Waqar Ahmed's avatar Waqar Ahmed

Configure questions.yaml for chia app

parent 44ff580c
...@@ -2,3 +2,7 @@ image: ...@@ -2,3 +2,7 @@ image:
repository: ghcr.io/chia-network/chia repository: ghcr.io/chia-network/chia
tag: 1.1.4 tag: 1.1.4
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
updateStrategy: Recreate
environmentVariables:
- name: "keys"
value: "/plots/keyfile"
groups: groups:
- name: "Workload Configuration"
description: "Configure Storage for IPFS"
- name: "Storage" - name: "Storage"
description: "Configure Storage for IPFS" description: "Configure Storage for IPFS"
- name: "IPFS Configuration"
description: "Configure Storage for IPFS"
portals:
web_portal:
protocols:
- "http"
host:
- "$node_ip"
ports:
- "$variable-service.apiPort"
path: "/webui"
questions: questions:
- variable: updateStrategy
label: "IPFS update strategy"
group: "Workload Configuration"
schema:
type: string
default: "Recreate"
enum:
- value: "RollingUpdate"
description: "Create new pods and then kill old ones"
- value: "Recreate"
description: "Kill existing pods before creating new ones"
- variable: environmentVariables
label: "IPFS image environment"
group: "IPFS Configuration"
schema:
type: list
default: []
items:
- variable: environmentVariable
label: "Environment Variable"
schema:
type: dict
attrs:
- variable: name
label: "Name"
schema:
type: string
- variable: value
label: "Value"
schema:
type: string
- variable: service
description: "IPFS Service Configuration"
label: "IPFS Service Configuration"
group: "IPFS Configuration"
schema:
type: dict
required: true
attrs:
- variable: swarmPort
label: "Swarm Port to use for IPFS (Public)"
schema:
type: int
min: 9000
max: 65535
default: 9401
required: true
- variable: apiPort
label: "API Port to use for IPFS (local)"
schema:
type: int
min: 9000
max: 65535
default: 9501
required: true
- variable: gatewayPort
label: "Gateway Port to use for IPFS (local)"
schema:
type: int
min: 9000
max: 65535
default: 9880
required: true
- variable: appVolumeMounts - variable: appVolumeMounts
label: "IPFS Storage" label: "Chia Storage"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
attrs: attrs:
- variable: staging - variable: config
label: "Staging Volume" label: "Configuration Volume"
schema: schema:
type: dict type: dict
attrs: attrs:
- variable: datasetName - variable: datasetName
label: "IPFS Staging Volume Dataset Name" label: "Configuration Volume Dataset Name"
schema: schema:
type: string type: string
hidden: true hidden: true
$ref: $ref:
- "normalize/ixVolume" - "normalize/ixVolume"
show_if: [["hostPathEnabled", "=", false]] show_if: [["hostPathEnabled", "=", false]]
default: "ix-ipfs-staging" default: "config"
editable: false editable: false
- variable: mountPath - variable: mountPath
label: "IPFS Staging Mount Path" label: "Configuration Mount Path"
description: "Path where the volume will be mounted inside the pod" description: "Path where the volume will be mounted inside the pod"
schema: schema:
type: path type: path
hidden: true hidden: true
editable: false editable: false
default: "/export" default: "/root/.chia"
- variable: hostPathEnabled - variable: hostPathEnabled
label: "Enable Host Path for IPFS Staging Volume" label: "Enable Host Path for Chia Configuration Volume"
schema: schema:
type: boolean type: boolean
default: false default: false
show_subquestions_if: true show_subquestions_if: true
subquestions: subquestions:
- variable: hostPath - variable: hostPath
label: "Host Path for IPFS Staging Volume" label: "Host Path for Chia Configuration Volume"
schema: schema:
type: hostpath type: hostpath
required: true required: true
- variable: data - variable: plots
label: "Data Volume" label: "Plot Volume"
schema: schema:
type: dict type: dict
attrs: attrs:
- variable: datasetName - variable: datasetName
label: "IPFS Data Volume Name" label: "Plots Volume Name"
schema: schema:
type: string type: string
hidden: true hidden: true
$ref: $ref:
- "normalize/ixVolume" - "normalize/ixVolume"
show_if: [["hostPathEnabled", "=", false]] show_if: [["hostPathEnabled", "=", false]]
default: "ix-ipfs-data" default: "plots"
editable: false editable: false
- variable: mountPath - variable: mountPath
label: "IPFS Data Mount Path" label: "Plots Mount Path"
description: "Path where the volume will be mounted inside the pod" description: "Path where the volume will be mounted inside the pod"
schema: schema:
type: path type: path
hidden: true hidden: true
editable: false editable: false
default: "/data/ipfs" default: "/plots"
- variable: hostPathEnabled - variable: hostPathEnabled
label: "Enable Host Path for IPFS Data Volume" label: "Enable Host Path for Chia Plots Volume"
schema: schema:
type: boolean type: boolean
default: false default: false
show_subquestions_if: true show_subquestions_if: true
subquestions: subquestions:
- variable: hostPath - variable: hostPath
label: "Host Path for IPFS Data Volume" label: "Host Path for Chia Plots Volume"
schema: schema:
type: hostpath type: hostpath
required: true required: true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment