2021-10-04 11:46:38 +00:00
|
|
|
|
2021-11-07 16:55:11 +00:00
|
|
|
- variable: advancedresources
|
|
|
|
label: "Set Custom Resource Limits/Requests (Advanced)"
|
2021-09-26 18:44:02 +00:00
|
|
|
group: "Resources and Devices"
|
|
|
|
schema:
|
2021-11-07 16:55:11 +00:00
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
show_subquestions_if: true
|
|
|
|
subquestions:
|
|
|
|
- variable: resources
|
|
|
|
label: ""
|
2021-09-26 18:44:02 +00:00
|
|
|
schema:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-09-26 18:44:02 +00:00
|
|
|
type: dict
|
|
|
|
attrs:
|
2021-11-07 16:55:11 +00:00
|
|
|
- variable: limits
|
|
|
|
label: "Advanced Limit Resource Consumption"
|
2021-09-26 18:44:02 +00:00
|
|
|
schema:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-11-07 16:55:11 +00:00
|
|
|
type: dict
|
|
|
|
attrs:
|
|
|
|
- variable: cpu
|
|
|
|
label: "CPU"
|
2022-01-09 16:33:38 +00:00
|
|
|
description: "1000m means 1 hyperthread. Detailed info: https://truecharts.org/manual/indepth/validation/"
|
2021-11-07 16:55:11 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: "4000m"
|
|
|
|
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$'
|
|
|
|
- variable: memory
|
2022-01-09 16:33:38 +00:00
|
|
|
label: "RAM"
|
|
|
|
description: "1Gi means 1 Gibibyte RAM. Detailed info: https://truecharts.org/manual/indepth/validation/"
|
2021-11-07 16:55:11 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: "8Gi"
|
|
|
|
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
|
|
|
|
- variable: requests
|
2022-01-09 16:33:38 +00:00
|
|
|
label: "Minimum Resources Required (request)"
|
2021-09-26 18:44:02 +00:00
|
|
|
schema:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-11-07 16:55:11 +00:00
|
|
|
type: dict
|
|
|
|
attrs:
|
|
|
|
- variable: cpu
|
|
|
|
label: "CPU"
|
2022-01-09 16:33:38 +00:00
|
|
|
description: "1000m means 1 hyperthread. Detailed info: https://truecharts.org/manual/indepth/validation/"
|
2021-11-07 16:55:11 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: "10m"
|
|
|
|
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$'
|
|
|
|
- variable: memory
|
2022-01-09 16:33:38 +00:00
|
|
|
label: "RAM"
|
|
|
|
description: "1Gi means 1 Gibibyte RAM. Detailed info: https://truecharts.org/manual/indepth/validation/"
|
2021-11-07 16:55:11 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: "50Mi"
|
|
|
|
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
|
2021-10-04 11:46:38 +00:00
|
|
|
|
|
|
|
- variable: deviceList
|
|
|
|
label: "Mount USB devices"
|
|
|
|
group: "Resources and Devices"
|
|
|
|
schema:
|
|
|
|
type: list
|
|
|
|
default: []
|
|
|
|
items:
|
|
|
|
- variable: deviceListEntry
|
|
|
|
label: "Device"
|
|
|
|
schema:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-10-04 11:46:38 +00:00
|
|
|
type: dict
|
|
|
|
attrs:
|
|
|
|
- variable: enabled
|
|
|
|
label: "Enable the storage"
|
|
|
|
schema:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
- variable: type
|
|
|
|
label: "(Advanced) Type of Storage"
|
|
|
|
description: "Sets the persistence type"
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: "hostPath"
|
|
|
|
hidden: true
|
|
|
|
- variable: readOnly
|
|
|
|
label: "readOnly"
|
|
|
|
schema:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
- variable: hostPath
|
|
|
|
label: "Host Device Path"
|
|
|
|
description: "Path to the device on the host system"
|
|
|
|
schema:
|
|
|
|
type: path
|
|
|
|
- variable: mountPath
|
|
|
|
label: "Container Device Path"
|
|
|
|
description: "Path inside the container the device is mounted"
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: "/dev/ttyACM0"
|
2021-11-14 13:32:00 +00:00
|
|
|
|
|
|
|
# Specify GPU configuration
|
|
|
|
- variable: scaleGPU
|
|
|
|
label: "GPU Configuration"
|
|
|
|
group: "Resources and Devices"
|
|
|
|
schema:
|
|
|
|
type: dict
|
|
|
|
$ref:
|
|
|
|
- "definitions/gpuConfiguration"
|
|
|
|
attrs: []
|