|
@@ -0,0 +1,160 @@
|
|
|
+groups:
|
|
|
+ - name: "Container Images"
|
|
|
+ description: "Image to be used for container"
|
|
|
+ - name: "Storage"
|
|
|
+ description: "Configure Storage for IPFS"
|
|
|
+
|
|
|
+portals:
|
|
|
+ web_portal:
|
|
|
+ protocols:
|
|
|
+ - "http"
|
|
|
+ host:
|
|
|
+ - "$node_ip"
|
|
|
+ ports:
|
|
|
+ - "$variable-service.nodePort"
|
|
|
+
|
|
|
+questions:
|
|
|
+ # Image related
|
|
|
+ - variable: image
|
|
|
+ description: "Docker Image Details"
|
|
|
+ label: "Docker Image"
|
|
|
+ group: "Container Images"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ required: true
|
|
|
+ attrs:
|
|
|
+ - variable: repository
|
|
|
+ description: "Docker image repository"
|
|
|
+ label: "Image repository"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "ipfs/go-ipfs"
|
|
|
+ required: true
|
|
|
+ - variable: tag
|
|
|
+ description: "Tag to use for specified image"
|
|
|
+ label: "Image Tag"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "v0.8.0-rc1"
|
|
|
+ - variable: pullPolicy
|
|
|
+ description: "Docker Image Pull Policy"
|
|
|
+ label: "Image Pull Policy"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "IfNotPresent"
|
|
|
+ enum:
|
|
|
+ - value: "IfNotPresent"
|
|
|
+ description: "Only pull image if not present on host"
|
|
|
+ - value: "Always"
|
|
|
+ description: "Always pull image even if present on host"
|
|
|
+ - value: "Never"
|
|
|
+ description: "Never pull image even if it's not present on host"
|
|
|
+
|
|
|
+ - variable: updateStrategy
|
|
|
+ label: "IPFS update strategy"
|
|
|
+ group: "Workload Configuration"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "RollingUpdate"
|
|
|
+ enum:
|
|
|
+ - value: "RollingUpdate"
|
|
|
+ description: "Create new pods and then kill old ones"
|
|
|
+ - value: "Recreate"
|
|
|
+ description: "Kill existing pods before creating new ones"
|
|
|
+
|
|
|
+ - variable: environment
|
|
|
+ label: "IPFS image environment"
|
|
|
+ group: "IPFS Configuration"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ additional_attrs: true
|
|
|
+ attrs: []
|
|
|
+
|
|
|
+ - variable: service
|
|
|
+ description: "IPFS Service Configuration"
|
|
|
+ label: "IPFS Service Configuration"
|
|
|
+ group: "IPFS Configuration"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ required: true
|
|
|
+ attrs:
|
|
|
+ - variable: nodePort
|
|
|
+ label: "Node Port to use for IPFS"
|
|
|
+ schema:
|
|
|
+ type: int
|
|
|
+ min: 9000
|
|
|
+ max: 65535
|
|
|
+ default: 9080
|
|
|
+ required: true
|
|
|
+
|
|
|
+ - variable: ipfsDataHostPathEnabled
|
|
|
+ label: "Configure Host Path for IPFS data"
|
|
|
+ group: "Storage"
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ show_subquestions_if: true
|
|
|
+ subquestions:
|
|
|
+ - variable: ipfsDataHostPath
|
|
|
+ label: "Specify HostPath for IPFS data"
|
|
|
+ schema:
|
|
|
+ type: hostpath
|
|
|
+
|
|
|
+ - variable: ipfsDataVolume
|
|
|
+ label: "Configure iXVolume"
|
|
|
+ group: "Storage"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ $ref:
|
|
|
+ - "normalize/ixVolume"
|
|
|
+ show_if: [["ipfsDataHostPathEnabled", "=", false]]
|
|
|
+ attrs:
|
|
|
+ - variable: mountPath
|
|
|
+ label: "Mount Path"
|
|
|
+ description: "Path where the volume will be mounted inside the pod"
|
|
|
+ schema:
|
|
|
+ type: path
|
|
|
+ editable: false
|
|
|
+ default: "/data/ipfs"
|
|
|
+ - variable: datasetName
|
|
|
+ label: "Dataset Name"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "ix-ipfs-data"
|
|
|
+ editable: false
|
|
|
+
|
|
|
+ - variable: ipfsStagingHostPathEnabled
|
|
|
+ label: "Configure Host Path for IPFS staging"
|
|
|
+ group: "Storage"
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ show_subquestions_if: true
|
|
|
+ subquestions:
|
|
|
+ - variable: ipfsStagingHostPath
|
|
|
+ label: "Specify HostPath for IPFS staging"
|
|
|
+ schema:
|
|
|
+ type: hostpath
|
|
|
+
|
|
|
+ - variable: ipfsStagingVolume
|
|
|
+ label: "Configure iXVolume"
|
|
|
+ group: "Storage"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ $ref:
|
|
|
+ - "normalize/ixVolume"
|
|
|
+ show_if: [["ipfsStagingHostPathEnabled", "=", false]]
|
|
|
+ attrs:
|
|
|
+ - variable: mountPath
|
|
|
+ label: "Mount Path"
|
|
|
+ description: "Path where the volume will be mounted inside the pod"
|
|
|
+ schema:
|
|
|
+ type: path
|
|
|
+ editable: false
|
|
|
+ default: "/export"
|
|
|
+ - variable: datasetName
|
|
|
+ label: "Dataset Name"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "ix-ipfs-staging"
|
|
|
+ editable: false
|