Skip to content

Commit

Permalink
Expose DNS settings of deployment in values (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
toddejohnson authored Dec 26, 2023
1 parent 052fb9f commit 7ade943
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/minecraft-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 7 additions & 0 deletions charts/minecraft-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/minecraft-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion charts/minecraft/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions charts/minecraft/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/minecraft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -523,3 +523,8 @@ mcbackup:
enabled: false
# existingClaim: nil
Size: 1Gi
# dnsPolicy: ClusterFirst
# dnsConfig:
# options:
# - name: ndots
# value: '1'

0 comments on commit 7ade943

Please sign in to comment.