diff --git a/charts/machinaris/1.0.11/questions.yaml b/charts/machinaris/1.0.11/questions.yaml index 96b652d13a..7b0ae7ff2a 100644 --- a/charts/machinaris/1.0.11/questions.yaml +++ b/charts/machinaris/1.0.11/questions.yaml @@ -28,6 +28,16 @@ questions: type: string $ref: - "definitions/timezone" + + - variable: nodeIP + description: "LAN IP address of your TrueNAS server" + group: "Machinaris Configuration" + label: "Worker Address" + schema: + type: string + $ref: + - "definitions/nodeIP" + - variable: machinaris_ui_port label: "Machinaris Web UI" group: "Networking" diff --git a/charts/machinaris/1.0.11/templates/deployment.yaml b/charts/machinaris/1.0.11/templates/deployment.yaml index 7fa3f48ce1..dae15d4f56 100644 --- a/charts/machinaris/1.0.11/templates/deployment.yaml +++ b/charts/machinaris/1.0.11/templates/deployment.yaml @@ -44,6 +44,7 @@ spec: hostPort: 8927 {{ $envList := (default list .Values.environmentVariables) }} {{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }} + {{ $envList = mustAppend $envList (dict "name" "worker_address" "value" $.Values.nodeIP) }} {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} diff --git a/charts/machinaris/1.0.11/test_values.yaml b/charts/machinaris/1.0.11/test_values.yaml index 929cdd9d89..d3554a85a9 100644 --- a/charts/machinaris/1.0.11/test_values.yaml +++ b/charts/machinaris/1.0.11/test_values.yaml @@ -12,3 +12,4 @@ image: machinaris_ui_port: 31003 timezone: America/Edmonton updateStrategy: Recreate +nodeIP: 127.0.0.1 diff --git a/test/machinaris/1.0.11/questions.yaml b/test/machinaris/1.0.11/questions.yaml index 96b652d13a..7b0ae7ff2a 100644 --- a/test/machinaris/1.0.11/questions.yaml +++ b/test/machinaris/1.0.11/questions.yaml @@ -28,6 +28,16 @@ questions: type: string $ref: - "definitions/timezone" + + - variable: nodeIP + description: "LAN IP address of your TrueNAS server" + group: "Machinaris Configuration" + label: "Worker Address" + schema: + type: string + $ref: + - "definitions/nodeIP" + - variable: machinaris_ui_port label: "Machinaris Web UI" group: "Networking" diff --git a/test/machinaris/1.0.11/templates/deployment.yaml b/test/machinaris/1.0.11/templates/deployment.yaml index 7fa3f48ce1..dae15d4f56 100644 --- a/test/machinaris/1.0.11/templates/deployment.yaml +++ b/test/machinaris/1.0.11/templates/deployment.yaml @@ -44,6 +44,7 @@ spec: hostPort: 8927 {{ $envList := (default list .Values.environmentVariables) }} {{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }} + {{ $envList = mustAppend $envList (dict "name" "worker_address" "value" $.Values.nodeIP) }} {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} diff --git a/test/machinaris/1.0.11/test_values.yaml b/test/machinaris/1.0.11/test_values.yaml index 929cdd9d89..d3554a85a9 100644 --- a/test/machinaris/1.0.11/test_values.yaml +++ b/test/machinaris/1.0.11/test_values.yaml @@ -12,3 +12,4 @@ image: machinaris_ui_port: 31003 timezone: America/Edmonton updateStrategy: Recreate +nodeIP: 127.0.0.1