Skip to content

Commit

Permalink
Add HA
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Feb 12, 2024
1 parent 767958c commit 39d0448
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ images:
newName: ghcr.io/thelab-ms/gliderbot
digest: sha256:6043ad32f52e87a86c47af60397dd97df0c1b8acafbc120e1a8001f6d894ea09

- name: homeassistant
newName: ghcr.io/home-assistant/home-assistant
newTag: "2023.11.3"

- name: grafana
newName: docker.io/grafana/grafana-oss
newTag: "10.0.0"
Expand Down Expand Up @@ -57,6 +61,7 @@ resources:
- manifests/frigate.yaml
- manifests/gliderbot.yaml
- manifests/grafana.yaml
- manifests/homeassistant.yaml
- manifests/keycloak.yaml
- manifests/nvidia.ext.yaml
- manifests/profile-staging.yaml
Expand Down
66 changes: 66 additions & 0 deletions manifests/homeassistant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: homeassistant
labels:
app: homeassistant
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: homeassistant
template:
metadata:
labels:
app: homeassistant
# TODO
# annotations:
# prometheus.io/port: "8123"
# prometheus.io/path: /api/prometheus
# prometheus.io/scrape: "true"
spec:
hostNetwork: true
containers:
- name: ha
image: homeassistant
securityContext:
privileged: true
env:
- name: TZ
value: "America/Chicago"
volumeMounts:
- name: media
mountPath: /media
- name: config
mountPath: /config
- name: zigbee
mountPath: /dev/ttyACM0

volumes:
- name: media
hostPath:
path: /opt/homeassistant-media
- name: config
hostPath:
path: /opt/homeassistant
- name: zigbee
hostPath:
path: /dev/ttyACM0

---

apiVersion: v1
kind: Service
metadata:
name: homeassistant
spec:
type: ClusterIP
selector:
app: homeassistant
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8123

0 comments on commit 39d0448

Please sign in to comment.