fix(ztncui-aio): Fix some miss (#3306)

* add ztcuui-aio

* space

* readonly filesystem

* Permission

* add readme

* add question

* fix port

* add env

* fix some miss
This commit is contained in:
sagit
2022-07-26 18:39:11 +02:00
committed by GitHub
parent 38c408439c
commit bc2f0dd735
2 changed files with 103 additions and 4 deletions
+84 -3
View File
@@ -116,7 +116,7 @@ questions:
description: "This port exposes the container port on the service"
schema:
type: int
default: 4000
default: 10257
required: true
- variable: advanced
label: "Show Advanced settings"
@@ -129,7 +129,7 @@ questions:
label: "Port Type"
schema:
type: string
default: "HTTP"
default: "HTTPS"
enum:
- value: HTTP
description: "HTTP"
@@ -151,7 +151,7 @@ questions:
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 4000
default: 10257
- variable: other
label: "other Service"
description: "other service"
@@ -207,6 +207,61 @@ questions:
schema:
type: int
default: 3180
- variable: other2
label: "other Service"
description: "other service"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelector}
- variable: other2
label: "other 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: 9993
required: true
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: protocol
label: "Port Type"
schema:
type: string
default: "UDP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 9993
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
@@ -226,6 +281,32 @@ questions:
# Include{serviceList}
- variable: persistence
label: "Integrated Persistent Storage"
description: "Integrated Persistent Storage"
group: "Storage and Persistence"
schema:
additional_attrs: true
type: dict
attrs:
- variable: config
label: "config Storage"
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
- variable: zerotier
label: "Zerotier Storage"
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
- variable: ingress
+19 -1
View File
@@ -15,12 +15,15 @@ env:
HTTP_PORT: "{{ .Values.service.main.ports.main.port }}"
HTTP_ALL_INTERFACES: "yes"
ZTNCUI_PASSWD: "CHANGEME"
NODE_ENV: "production"
MYDOMAIN: "test.truecharts.org"
service:
main:
ports:
main:
port: 4000
port: 10258
protocol: "HTTPS"
other:
enabled: true
ports:
@@ -28,3 +31,18 @@ service:
enabled: true
port: 3180
targetPort: 3180
other2:
enabled: true
ports:
other2:
enabled: true
protocol: UDP
port: 9993
targetPort: 9993
persistence:
config:
enabled: true
mountPath: /opt/key-networks/ztncui/etc
zerotier:
enabled: true
mountPath: /var/lib/zerotier-one