# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}

                                - variable: env
                                  group: "App Configuration"
                                  label: "Image Environment"
                                  schema:
                                    additional_attrs: true
                                    type: dict
                                    attrs:
                                      - variable: WALLET
                                        label: "WALLET"
                                        description: "A wallet address to receive STORJ token payouts for running the node."
                                        schema:
                                          type: string
                                          default: ""
                                          required: true
                                      - variable: SETUP
                                        label: "SETUP (Change to false after first deploy)"
                                        description: "After first deploy, come back to change it to false."
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: EMAIL
                                        label: "EMAIL"
                                        description: "Email address so that we can notify you when a new version has been released."
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: ADDRESS
                                        label: "ADDRESS"
                                        description: "External IP address or the DDNS you configured and the port you opened on your router"
                                        schema:
                                          type: string
                                          default: ""
                                          required: true
                                      - variable: STORAGE
                                        label: "STORAGE"
                                        description: "How much disk space you want to allocate to the Storj network. Be sure not to over-allocate space! Allow at least 10% extra for overhead"
                                        schema:
                                          type: string
                                          default: "500GB"
                                          required: true
# Include{containerBasic}
# Include{containerAdvanced}

# Include{containerConfig}
# Include{serviceRoot}
# Include{serviceMain}
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: main
                      label: "Main Service Port Configuration"
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: port
                            label: "Port"
                            description: "This port exposes the container port on the service"
                            schema:
                              type: int
                              default: 14002
                              required: true
        - variable: coretcp
          label: "Core TCP Service"
          description: "Core TCP Service"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: coretcp
                      label: "Core TCP Service Port Configuration"
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: port
                            label: "Port"
                            description: "This port exposes the container port on the service"
                            schema:
                              type: int
                              default: 28967
                              required: true
        - variable: coreudp
          label: "Core UDP Service"
          description: "Core UDP Service"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: coreudp
                      label: "Core UDP Service Port Configuration"
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: port
                            label: "Port"
                            description: "This port exposes the container port on the service"
                            schema:
                              type: int
                              default: 28967
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: identity
          label: "App Identity Storage"
          description: "Stores the Identity."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: storage
          label: "File Storage"
          description: "File Storage"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
        - variable: main
          label: "Main Ingress"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressList}
# Include{securityContextRoot}

              - variable: runAsUser
                label: "runAsUser"
                description: "The UserID of the user running the application"
                schema:
                  type: int
                  default: 0
              - variable: runAsGroup
                label: "runAsGroup"
                description: "The groupID this App of the user running the application"
                schema:
                  type: int
                  default: 0
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
              - variable: fsGroup
                label: "fsGroup"
                description: "The group that should own ALL storage."
                schema:
                  type: int
                  default: 568

# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
