Browse Source

add homeassistant

Josh Bicking 7 months ago
parent
commit
e27b6da638
5 changed files with 89 additions and 4 deletions
  1. 5 3
      cloudflared.yaml
  2. 19 0
      homeassistant-pvc.yaml
  3. 61 0
      homeassistant.yaml
  4. 1 1
      plex.yaml
  5. 3 0
      traefik-helmchartconfig.yaml

+ 5 - 3
cloudflared.yaml

@@ -17,7 +17,7 @@ spec:
     spec:
       containers:
       - name: cloudflared
-        image: cloudflare/cloudflared:2022.6.3
+        image: cloudflare/cloudflared:2023.8.2
         args:
         - tunnel
         - --config
@@ -68,8 +68,8 @@ data:
       service: http://nextcloud.nextcloud.svc.cluster.local:8080
     - hostname: gogs.jibby.org
       service: http://gogs-service.gogs.svc.cluster.local:3000
-    - hostname: matrix.jibby.org
-      service: http://matrix-service.matrix.svc.cluster.local:8008
+    #- hostname: matrix.jibby.org
+    #  service: http://matrix-service.matrix.svc.cluster.local:8008
     - hostname: selfoss.jibby.org
       service: http://selfoss-service.selfoss.svc.cluster.local:8888
     - hostname: plex.jibby.org
@@ -85,6 +85,8 @@ data:
     - hostname: vaultwarden.jibby.org
       path: /notifications/hub.*
       service: http://vaultwarden-service.vaultwarden.svc.cluster.local:3012
+    - hostname: homeassistant.jibby.org
+      service: http://homeassistant-service.homeassistant.svc.cluster.local:8123
     # - hostname: mastodon.jibby.org
     #   service: http://mastodon-service.mastodon.svc.cluster.local:3000
     # - hostname: streaming-mastodon.jibby.org

+ 19 - 0
homeassistant-pvc.yaml

@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+    name: homeassistant
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: homeassistant-pvc
+  namespace: homeassistant
+  labels:
+    app: homeassistant
+spec:
+  storageClassName: ceph-block
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 20Gi

+ 61 - 0
homeassistant.yaml

@@ -0,0 +1,61 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: homeassistant
+  namespace: homeassistant
+spec:
+  selector:
+    matchLabels:
+      app: homeassistant
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: homeassistant
+    spec:
+      hostNetwork: true
+      containers:
+      - name: homeassistant
+        image: homeassistant/home-assistant:2023.8.4
+        ports:
+        - containerPort: 8123
+          name: http-web-svc
+        volumeMounts:
+        - mountPath: "/config"
+          name: data
+      volumes:
+      - name: data
+        persistentVolumeClaim:
+          claimName: homeassistant-pvc
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: homeassistant-service
+  namespace: homeassistant
+spec:
+  selector:
+    app: homeassistant
+  type: ClusterIP
+  ports:
+  - name: homeassistant-web-port
+    protocol: TCP
+    port: 8123
+    targetPort: http-web-svc
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+  name: homeassistant
+  namespace: homeassistant
+spec:
+  entryPoints:
+  - websecure
+  routes:
+  - kind: Rule
+    match: Host(`homeassistant.jibby.org`)
+    services:
+    - kind: Service
+      name: homeassistant-service
+      port: 8123

+ 1 - 1
plex.yaml

@@ -21,7 +21,7 @@ spec:
     spec:
       containers:
       - name: plex
-        image: linuxserver/plex:amd64-version-1.32.2.7100-248a2daf0
+        image: linuxserver/plex:amd64-version-1.32.5.7349-8f4248874
         # for debugging
         # command: ["/bin/sh"]
         # args: ["-c", "sleep 3600"]

+ 3 - 0
traefik-helmchartconfig.yaml

@@ -50,6 +50,9 @@ spec:
     podSecurityContext:
       fsGroup: null
 
+    # ACME functionality is not supported when running Traefik as a DaemonSet
+    #deployment:
+    #  kind: DaemonSet
     service:
       # type: ClusterIP
       spec: