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

* fix dns on hostnet for home-assistant

* bump

* wrong bump on tag
This commit is contained in:
Stavros Kois
2023-04-07 20:50:01 +03:00
committed by GitHub
parent bd87d04e28
commit 7e3935165a
2 changed files with 8 additions and 2 deletions
@@ -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'
@@ -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" . }}