From 7ade943750bd2adeb055978a708aa7246c6fc032 Mon Sep 17 00:00:00 2001 From: Todd Johnson Date: Tue, 26 Dec 2023 12:12:24 -0600 Subject: [PATCH] Expose DNS settings of deployment in values (#183) --- charts/minecraft-proxy/Chart.yaml | 2 +- charts/minecraft-proxy/templates/deployment.yaml | 7 +++++++ charts/minecraft-proxy/values.yaml | 6 ++++++ charts/minecraft/Chart.yaml | 2 +- charts/minecraft/templates/deployment.yaml | 7 +++++++ charts/minecraft/values.yaml | 5 +++++ 6 files changed, 27 insertions(+), 2 deletions(-) diff --git a/charts/minecraft-proxy/Chart.yaml b/charts/minecraft-proxy/Chart.yaml index 08229d36..f4a993bf 100644 --- a/charts/minecraft-proxy/Chart.yaml +++ b/charts/minecraft-proxy/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: minecraft-proxy -version: 3.4.0 +version: 3.5.0 appVersion: SeeValues description: Minecraft proxy server (BungeeCord, Waterfall, Velocity, etc.) keywords: diff --git a/charts/minecraft-proxy/templates/deployment.yaml b/charts/minecraft-proxy/templates/deployment.yaml index a2047eb3..1da00bee 100644 --- a/charts/minecraft-proxy/templates/deployment.yaml +++ b/charts/minecraft-proxy/templates/deployment.yaml @@ -27,6 +27,13 @@ spec: imagePullSecrets: - name: {{ .Values.image.pullSecret }} {{- end }} + {{- if .Values.dnsPolicy }} + dnsPolicy: {{ .Values.dnsPolicy}} + {{- end }} + {{- if .Values.dnsConfig }} + dnsConfig: + {{- toYaml .Values.dnsConfig | nindent 8 }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} initContainers: {{- toYaml .Values.initContainers | nindent 8 }} diff --git a/charts/minecraft-proxy/values.yaml b/charts/minecraft-proxy/values.yaml index cf0b9047..cb0336f1 100644 --- a/charts/minecraft-proxy/values.yaml +++ b/charts/minecraft-proxy/values.yaml @@ -259,3 +259,9 @@ rconServiceAnnotations: {} # Can allow plugins access to the kubernetes api using a service account # https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ serviceAccountName: + +# dnsPolicy: ClusterFirst +# dnsConfig: +# options: +# - name: ndots +# value: '1' diff --git a/charts/minecraft/Chart.yaml b/charts/minecraft/Chart.yaml index 0d5e8f38..768d46fa 100755 --- a/charts/minecraft/Chart.yaml +++ b/charts/minecraft/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: minecraft -version: 4.13.0 +version: 4.14.0 appVersion: SeeValues home: https://minecraft.net/ description: Minecraft server diff --git a/charts/minecraft/templates/deployment.yaml b/charts/minecraft/templates/deployment.yaml index b4486724..5107cf64 100644 --- a/charts/minecraft/templates/deployment.yaml +++ b/charts/minecraft/templates/deployment.yaml @@ -58,6 +58,13 @@ spec: imagePullSecrets: - name: {{ .Values.image.pullSecret }} {{- end }} + {{- if .Values.dnsPolicy }} + dnsPolicy: {{ .Values.dnsPolicy}} + {{- end }} + {{- if .Values.dnsConfig }} + dnsConfig: + {{- toYaml .Values.dnsConfig | nindent 8 }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- if .Values.initContainers }} diff --git a/charts/minecraft/values.yaml b/charts/minecraft/values.yaml index 0fd3f886..9b926d41 100644 --- a/charts/minecraft/values.yaml +++ b/charts/minecraft/values.yaml @@ -523,3 +523,8 @@ mcbackup: enabled: false # existingClaim: nil Size: 1Gi +# dnsPolicy: ClusterFirst +# dnsConfig: +# options: +# - name: ndots +# value: '1'