-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] deploy basic home assistant - [x] connect zigbee2mqtt dongle Refs: #5 Signed-off-by: Wim de Groot <[email protected]>
- Loading branch information
1 parent
e102707
commit 530accd
Showing
6 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
package-lock.json | ||
.encrypt.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Loads default set of integrations. Do not remove. | ||
default_config: | ||
|
||
# Load frontend themes from the themes folder | ||
frontend: | ||
themes: !include_dir_merge_named themes | ||
|
||
#automation: !include automations.yaml | ||
#script: !include scripts.yaml | ||
#scene: !include scenes.yaml | ||
|
||
homeassistant: | ||
name: Naomi & Wim's Home | ||
unit_system: metric | ||
currency: EUR | ||
country: NL | ||
time_zone: "Europe/Amsterdam" | ||
internal_url: "http://home-assistant.homelab.com:8123" | ||
|
||
http: | ||
server_host: 0.0.0.0 | ||
server_port: 8123 | ||
use_x_forwarded_for: true | ||
trusted_proxies: | ||
- 10.0.0.0/16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: home-assistant | ||
spec: | ||
replicas: 1 | ||
template: | ||
spec: | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 26 | ||
runAsGroup: 1000 | ||
fsGroup: 1000 | ||
containers: | ||
- name: home-assistant | ||
image: homeassistant/home-assistant:2024.1 | ||
imagePullPolicy: IfNotPresent | ||
env: | ||
- name: TZ | ||
value: "Europe/Amsterdam" | ||
ports: | ||
- containerPort: 8123 | ||
name: web | ||
volumeMounts: | ||
- mountPath: /config | ||
name: home-assistant-data | ||
- mountPath: /config/configuration.yaml | ||
subPath: configuration.yaml | ||
name: home-assistant-config | ||
securityContext: | ||
privileged: false | ||
restartPolicy: Always | ||
volumes: | ||
- name: home-assistant-data | ||
persistentVolumeClaim: | ||
claimName: pvc-home-assistant-config | ||
- name: home-assistant-config | ||
configMap: | ||
name: home-assistant-config | ||
items: | ||
- key: configuration.yaml | ||
path: configuration.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace: home-automation | ||
|
||
resources: | ||
- deployment.yaml | ||
- service.yaml | ||
- storage.yaml | ||
|
||
configMapGenerator: | ||
- name: home-assistant-config | ||
files: | ||
- configuration.yaml | ||
options: | ||
disableNameSuffixHash: true | ||
|
||
labels: | ||
- pairs: | ||
app.kubernetes.io/name: home-assistant | ||
includeSelectors: true | ||
- pairs: | ||
app.kubernetes.io/version: "2024.1" | ||
includeSelectors: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: home-assistant | ||
spec: | ||
ports: | ||
- name: web | ||
targetPort: web | ||
port: 8123 | ||
protocol: TCP | ||
type: ClusterIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: pvc-home-assistant-config | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 8Gi | ||
volumeMode: Filesystem |