Commit 872c9633 authored by sonicaj's avatar sonicaj

Add support for machinaris UI

parent 18a727ad
groups: groups:
- name: "Networking"
description: "Configure Networking for Machinaris"
- name: "Machinaris Configuration"
description: "Machinaris configuration"
- name: "Storage" - name: "Storage"
description: "Configure Storage for Machinaris" description: "Configure Storage for Machinaris"
- name: "Machinaris Environment Variables" - name: "Machinaris Environment Variables"
...@@ -11,18 +15,27 @@ portals: ...@@ -11,18 +15,27 @@ portals:
host: host:
- "$node_ip" - "$node_ip"
ports: ports:
- "$variable-plexServiceTCP.port" - "$variable-machinaris_ui_port"
path: "/web" path: "/web"
questions: questions:
- variable: timezone - variable: timezone
label: "Configure timezone" label: "Configure timezone"
group: "Farmr.net Configuration" group: "Configuration"
description: "Configure 'farmr.net' support for chia" description: "Configure timezone for machinaris"
schema: schema:
type: string type: string
$ref: $ref:
- "definitions/timezone" - "definitions/timezone"
- variable: machinaris_ui_port
label: "Machinaris Web UI"
group: "Networking"
description: "Web UI Port for Machinaris"
schema:
type: int
min: 9000
max: 65535
default: 9003
- variable: appVolumeMounts - variable: appVolumeMounts
label: "Machinaris Storage" label: "Machinaris Storage"
group: "Storage" group: "Storage"
...@@ -101,14 +114,14 @@ questions: ...@@ -101,14 +114,14 @@ questions:
required: true required: true
- variable: extraAppVolumeMounts - variable: extraAppVolumeMounts
label: "Chia Extra Host Path Volumes" label: "Machinaris Extra Host Path Volumes"
group: "Storage" group: "Storage"
schema: schema:
type: list type: list
items: items:
- variable: extraAppVolume - variable: extraAppVolume
label: "Chia Host Path Volume" label: "Machinaris Host Path Volume"
description: "Add an extra host path volume for chia application" description: "Add an extra host path volume for machinaris application"
schema: schema:
type: dict type: dict
attrs: attrs:
...@@ -126,8 +139,8 @@ questions: ...@@ -126,8 +139,8 @@ questions:
required: true required: true
- variable: environmentVariables - variable: environmentVariables
label: "Environment Variables for Chia" label: "Environment Variables for Machinaris"
group: "Chia Environment Variables" group: "Machinaris Environment Variables"
schema: schema:
type: list type: list
default: [] default: []
......
{{ $svc := .Values }}
{{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "pms" "port" $svc.machinaris_ui_port "nodePort" $svc.machinaris_ui_port "targetPort" "machinaris-ui") }}
{{ $params := . }}
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
{{ include "common.classes.service" $params }}
...@@ -11,3 +11,4 @@ image: ...@@ -11,3 +11,4 @@ image:
repository: ghcr.io/guydavis/machinaris repository: ghcr.io/guydavis/machinaris
tag: v0.5.1 tag: v0.5.1
updateStrategy: Recreate updateStrategy: Recreate
machinaris_ui_port: 9003
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