瀏覽代碼

NAS-121385 / 23.10 / fix dns on hostnet for home-assistant (#1081)

* fix dns on hostnet for home-assistant

* bump

* wrong bump on tag
Stavros Kois 2 年之前
父節點
當前提交
7e3935165a

+ 1 - 1
library/ix-dev/charts/home-assistant/Chart.yaml

@@ -3,7 +3,7 @@ description: Home Assistant App for TrueNAS SCALE
 annotations:
   title: Home Assistant
 type: application
-version: 1.0.75
+version: 1.0.76
 apiVersion: v2
 appVersion: 2023.4.1
 kubeVersion: '>=1.16.0-0'

+ 7 - 1
library/ix-dev/charts/home-assistant/templates/deployment.yaml

@@ -30,7 +30,13 @@ spec:
         {{- include "common.labels.selectorLabels" . | nindent 8 }}
       annotations: {{ include "common.annotations" . | nindent 8 }}
     spec:
-      hostNetwork: {{ .Values.hostNetwork }}
+      {{ if .Values.hostNetwork }}
+      hostNetwork: true
+      dnsPoliy: ClusterFirstWithHostNet
+      {{ else }}
+      hostNetwork: false
+      dnsPoliy: ClusterFirst
+      {{ end }}
       initContainers:
         - name: init-postgresdb
           image: {{ template "postgres.imageName" . }}