Skip to content

Commit 06c52f5

Browse files
committed
add external interface and portal
1 parent 0d6a403 commit 06c52f5

File tree

6 files changed

+133
-10
lines changed

6 files changed

+133
-10
lines changed
+12-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# Homebridge
22

33
- This container runs as `root` user.
4-
- HostNetwork is always enabled.
5-
- `mDNS` must be disabled on the host.
64

7-
Disable mDNS in TrueNAS SCALE:
8-
> **Network** -> **Global Configuration** -> **mDNS**: `uncheck`
5+
If host networking is enabled, you must disable mDNS on the host.
6+
Without host networking enabled, you might experience **auto** discovery issues.
7+
8+
> For more advanced users, you can attach an external interface and update Homebridge
9+
> configuration file, to use the external interface for mDNS.
10+
11+
## To disable mDNS in TrueNAS SCALE.
12+
13+
Navigate to **Network** -> **Global Configuration** -> **Settings**
14+
15+
- Uncheck `mDNS`
16+
- Save
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# Homebridge
22

33
- This container runs as `root` user.
4-
- HostNetwork is always enabled.
5-
- `mDNS` must be disabled on the host.
64

7-
Disable mDNS in TrueNAS SCALE:
8-
> **Network** -> **Global Configuration** -> **mDNS**: `uncheck`
5+
If host networking is enabled, you must disable mDNS on the host.
6+
Without host networking enabled, you might experience **auto** discovery issues.
7+
8+
> For more advanced users, you can attach an external interface and update Homebridge
9+
> configuration file, to use the external interface for mDNS.
10+
11+
## To disable mDNS in TrueNAS SCALE.
12+
13+
Navigate to **Network** -> **Global Configuration** -> **Settings**
14+
15+
- Uncheck `mDNS`
16+
- Save
Binary file not shown.

library/ix-dev/community/homebridge/questions.yaml

+105-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ groups:
88
- name: Resources Configuration
99
description: Configure Resources for Homebridge
1010

11+
portals:
12+
web_portal:
13+
protocols:
14+
- "$kubernetes-resource_configmap_portal_protocol"
15+
host:
16+
- "$kubernetes-resource_configmap_portal_host"
17+
ports:
18+
- "$kubernetes-resource_configmap_portal_port"
19+
path: "$kubernetes-resource_configmap_portal_path"
20+
1121
questions:
1222

1323
- variable: TZ
@@ -31,7 +41,7 @@ questions:
3141
description: Enable Avahi for Homebridge.
3242
schema:
3343
type: boolean
34-
default: true
44+
default: false
3545
- variable: additionalEnvs
3646
label: Additional Environment Variables
3747
description: Configure additional environment variables for Homebridge.
@@ -69,6 +79,100 @@ questions:
6979
max: 65535
7080
required: true
7181
default: 30000
82+
- variable: hostNetwork
83+
label: Host Network
84+
schema:
85+
type: boolean
86+
default: true
87+
88+
- variable: scaleExternalInterface
89+
description: Add External Interfaces
90+
label: Add external Interfaces
91+
group: Network Configuration
92+
schema:
93+
type: list
94+
items:
95+
- variable: interfaceConfiguration
96+
description: Interface Configuration
97+
label: Interface Configuration
98+
schema:
99+
type: dict
100+
$ref:
101+
- normalize/interfaceConfiguration
102+
attrs:
103+
- variable: hostInterface
104+
description: "Please specify host interface"
105+
label: Host Interface
106+
schema:
107+
type: string
108+
required: true
109+
$ref:
110+
- definitions/interface
111+
- variable: ipam
112+
description: Define how IP Address will be managed
113+
label: IP Address Management
114+
schema:
115+
type: dict
116+
required: true
117+
attrs:
118+
- variable: type
119+
description: Specify type for IPAM
120+
label: IPAM Type
121+
schema:
122+
type: string
123+
required: true
124+
enum:
125+
- value: dhcp
126+
description: Use DHCP
127+
- value: static
128+
description: Use static IP
129+
- variable: staticIPConfigurations
130+
label: Static IP Addresses
131+
schema:
132+
type: list
133+
show_if: [[ "ipam", "=", {"type": "static"} ]]
134+
items:
135+
- variable: staticIP
136+
label: Static IP
137+
schema:
138+
type: ipaddr
139+
cidr: true
140+
- variable: staticRoutes
141+
label: Static Routes
142+
schema:
143+
type: list
144+
show_if: [[ "ipam", "=", {"type": "static"} ]]
145+
items:
146+
- variable: staticRouteConfiguration
147+
label: Static Route Configuration
148+
schema:
149+
type: dict
150+
attrs:
151+
- variable: destination
152+
label: Destination
153+
schema:
154+
type: ipaddr
155+
cidr: true
156+
required: true
157+
- variable: gateway
158+
label: Gateway
159+
schema:
160+
type: ipaddr
161+
cidr: false
162+
required: true
163+
- variable: targetSelector
164+
label: Target Selector
165+
schema:
166+
type: list
167+
hidden: true
168+
editable: false
169+
default: ["homebridge"]
170+
items:
171+
- variable: workload
172+
label: Workload
173+
schema:
174+
type: string
175+
default: homebridge
72176

73177
- variable: hbStorage
74178
group: Storage Configuration

library/ix-dev/community/homebridge/templates/_homebridge.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ workload:
55
primary: true
66
type: Deployment
77
podSpec:
8-
hostNetwork: true
8+
hostNetwork: {{ .Values.hbNetwork.hostNetwork }}
99
containers:
1010
homebridge:
1111
enabled: true

library/ix-dev/community/homebridge/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ hbStorage:
1616

1717
hbNetwork:
1818
webPort: 30000
19+
hostNetwork: false
20+
21+
scaleExternalInterface: []
1922

2023
hbConfig:
2124
enableAvahi: true

0 commit comments

Comments
 (0)