From 0062343c1e47c66396ae210695faa6703b18f795 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 30 Mar 2024 05:57:26 -0700 Subject: [PATCH] Fix for external DNS resolution (#83) Certain setups seem to have trouble with the default ndots:5 dns config. Setting this value to 1 should resolve this. --- charts/vaultwarden/Chart.yaml | 2 +- charts/vaultwarden/templates/_podSpec.tpl | 4 ++++ charts/vaultwarden/values.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/vaultwarden/Chart.yaml b/charts/vaultwarden/Chart.yaml index 77a3a29..f0259b3 100644 --- a/charts/vaultwarden/Chart.yaml +++ b/charts/vaultwarden/Chart.yaml @@ -13,5 +13,5 @@ maintainers: - name: guerzon email: guerzon@proton.me url: https://github.com/guerzon -version: 0.22.6 +version: 0.22.7 kubeVersion: ">=1.12.0-0" diff --git a/charts/vaultwarden/templates/_podSpec.tpl b/charts/vaultwarden/templates/_podSpec.tpl index f155ca2..f65a20a 100644 --- a/charts/vaultwarden/templates/_podSpec.tpl +++ b/charts/vaultwarden/templates/_podSpec.tpl @@ -1,4 +1,8 @@ {{- define "vaultwarden.podSpec" }} +{{- with .Values.dnsConfig }} +dnsConfig: +{{- toYaml . | nindent 2 }} +{{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 2 }} diff --git a/charts/vaultwarden/values.yaml b/charts/vaultwarden/values.yaml index 7af7b7d..466dac4 100644 --- a/charts/vaultwarden/values.yaml +++ b/charts/vaultwarden/values.yaml @@ -104,6 +104,10 @@ securityContext: {} # drop: # - ALL +## @param dnsConfig Pod DNS options +## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config +dnsConfig: {} + ## @section Reliability configuration ##