mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
use public DNS on uptime kuma
This commit is contained in:
@@ -15,7 +15,6 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: "{{ .Release.Name }}"
|
app: "{{ .Release.Name }}"
|
||||||
spec:
|
spec:
|
||||||
hostNetwork: true
|
|
||||||
containers:
|
containers:
|
||||||
- name: "{{ .Release.Name }}"
|
- name: "{{ .Release.Name }}"
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
|||||||
@@ -271,6 +271,36 @@ VirtualService gateway list for private gateway
|
|||||||
- mesh
|
- mesh
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
DNS configuration for pod spec
|
||||||
|
*/}}
|
||||||
|
{{- define "common.dnsConfig" -}}
|
||||||
|
{{- if .Values.deployment.dns }}
|
||||||
|
{{- if .Values.deployment.dns.nameservers }}
|
||||||
|
dnsPolicy: {{ .Values.deployment.dns.policy | default "None" }}
|
||||||
|
dnsConfig:
|
||||||
|
nameservers:
|
||||||
|
{{- range .Values.deployment.dns.nameservers }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.deployment.dns.searches }}
|
||||||
|
searches:
|
||||||
|
{{- range .Values.deployment.dns.searches }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.deployment.dns.options }}
|
||||||
|
options:
|
||||||
|
{{- range .Values.deployment.dns.options }}
|
||||||
|
- {{ toYaml . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else if .Values.deployment.dnsPolicy }}
|
||||||
|
dnsPolicy: {{ .Values.deployment.dnsPolicy }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Full Deployment resource
|
Full Deployment resource
|
||||||
*/}}
|
*/}}
|
||||||
@@ -305,9 +335,7 @@ spec:
|
|||||||
{{- if .Values.deployment.hostNetwork }}
|
{{- if .Values.deployment.hostNetwork }}
|
||||||
hostNetwork: {{ .Values.deployment.hostNetwork }}
|
hostNetwork: {{ .Values.deployment.hostNetwork }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.deployment.dnsPolicy }}
|
{{- include "common.dnsConfig" . | nindent 6 }}
|
||||||
dnsPolicy: {{ .Values.deployment.dnsPolicy }}
|
|
||||||
{{- end }}
|
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user