groups: - name: "Storage" description: "Configure Storage for Chia" - name: "Farmr.net Configuration" 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" - name: "Resource Limits" description: "Set CPU/memory limits for Kubernetes Pod" portals: web_portal: protocols: - "https" host: - "www.truepool.io" ports: - "443" 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" 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: true default: "/data" - 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 - variable: extraAppVolumeMounts label: "Chia 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" schema: type: dict attrs: - variable: mountPath label: "Mount Path in Pod" description: "Path where the volume will be mounted inside the pod" schema: type: path required: true - variable: hostPath label: "Host Path" description: "Host path" schema: type: hostpath required: true - variable: environmentVariables label: "Environment Variables for Chia" group: "Chia Environment Variables" 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: "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 - variable: enableResourceLimits label: "Enable Pod resource limits" group: "Resource Limits" schema: type: boolean default: false - variable: cpuLimit label: "CPU Limit" description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." group: "Resource Limits" schema: type: string show_if: [["enableResourceLimits", "=", true]] valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" default: "4000m" - variable: memLimit label: "Memory Limit" group: "Resource Limits" description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" schema: type: string show_if: [["enableResourceLimits", "=", true]] valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" default: "8Gi"