Skip to content

Commit

Permalink
add external interface and portal
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Mar 20, 2023
1 parent 0d6a403 commit 7fc4463
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 10 deletions.
16 changes: 12 additions & 4 deletions library/ix-dev/community/homebridge/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Homebridge

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

Disable mDNS in TrueNAS SCALE:
> **Network** -> **Global Configuration** -> **mDNS**: `uncheck`
If host networking is enabled, you must disable mDNS on the host.
Without host networking enabled, you might experience **auto** discovery issues.

> For more advanced users, you can attach an external interface and update Homebridge
> configuration file, to use the external interface for mDNS.
## To disable mDNS in TrueNAS SCALE.

Navigate to **Network** -> **Global Configuration** -> **Settings**

- Uncheck `mDNS`
- Save
16 changes: 12 additions & 4 deletions library/ix-dev/community/homebridge/app-readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Homebridge

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

Disable mDNS in TrueNAS SCALE:
> **Network** -> **Global Configuration** -> **mDNS**: `uncheck`
If host networking is enabled, you must disable mDNS on the host.
Without host networking enabled, you might experience **auto** discovery issues.

> For more advanced users, you can attach an external interface and update Homebridge
> configuration file, to use the external interface for mDNS.
## To disable mDNS in TrueNAS SCALE.

Navigate to **Network** -> **Global Configuration** -> **Settings**

- Uncheck `mDNS`
- Save
Binary file modified library/ix-dev/community/homebridge/charts/common-1.0.0.tgz
Binary file not shown.
106 changes: 105 additions & 1 deletion library/ix-dev/community/homebridge/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ groups:
- name: Resources Configuration
description: Configure Resources for Homebridge

portals:
web_portal:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
path: "$kubernetes-resource_configmap_portal_path"

questions:

- variable: TZ
Expand All @@ -31,7 +41,7 @@ questions:
description: Enable Avahi for Homebridge.
schema:
type: boolean
default: true
default: false
- variable: additionalEnvs
label: Additional Environment Variables
description: Configure additional environment variables for Homebridge.
Expand Down Expand Up @@ -69,6 +79,100 @@ questions:
max: 65535
required: true
default: 30000
- variable: hostNetwork
label: Host Network
schema:
type: boolean
default: true

- variable: scaleExternalInterface
description: Add External Interfaces
label: Add external Interfaces
group: Network Configuration
schema:
type: list
items:
- variable: interfaceConfiguration
description: Interface Configuration
label: Interface Configuration
schema:
type: dict
$ref:
- normalize/interfaceConfiguration
attrs:
- variable: hostInterface
description: "Please specify host interface"
label: Host Interface
schema:
type: string
required: true
$ref:
- definitions/interface
- variable: targetSelector
label: Target Selector
schema:
type: list
hidden: true
editable: false
default: ["homebridge"]
items:
- variable: workload
label: Workload
schema:
type: string
default: homebridge
- variable: ipam
description: Define how IP Address will be managed
label: IP Address Management
schema:
type: dict
required: true
attrs:
- variable: type
description: Specify type for IPAM
label: IPAM Type
schema:
type: string
required: true
enum:
- value: dhcp
description: Use DHCP
- value: static
description: Use static IP
- variable: staticIPConfigurations
label: Static IP Addresses
schema:
type: list
show_if: [[ "ipam", "=", {"type": "static"} ]]
items:
- variable: staticIP
label: Static IP
schema:
type: ipaddr
cidr: true
- variable: staticRoutes
label: Static Routes
schema:
type: list
show_if: [[ "ipam", "=", {"type": "static"} ]]
items:
- variable: staticRouteConfiguration
label: Static Route Configuration
schema:
type: dict
attrs:
- variable: destination
label: Destination
schema:
type: ipaddr
cidr: true
required: true
- variable: gateway
label: Gateway
schema:
type: ipaddr
cidr: false
required: true

- variable: hbStorage
group: Storage Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ workload:
primary: true
type: Deployment
podSpec:
hostNetwork: true
hostNetwork: {{ .Values.hbNetwork.hostNetwork }}
containers:
homebridge:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions library/ix-dev/community/homebridge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ hbStorage:

hbNetwork:
webPort: 30000
hostNetwork: false

scaleExternalInterface: []

hbConfig:
enableAvahi: true
Expand Down

0 comments on commit 7fc4463

Please sign in to comment.