diff --git a/charts/mc-router/templates/deployment.yaml b/charts/mc-router/templates/deployment.yaml index a04999c3..db831c7c 100644 --- a/charts/mc-router/templates/deployment.yaml +++ b/charts/mc-router/templates/deployment.yaml @@ -164,3 +164,6 @@ spec: {{- end }} {{- end }} {{- end }} + {{- range $key, $value := .Values.extraPodSpec }} + {{ $key }}: {{ tpl $value $ }} + {{- end }} diff --git a/charts/mc-router/values.schema.json b/charts/mc-router/values.schema.json index 5e5cfa04..ddb71c10 100644 --- a/charts/mc-router/values.schema.json +++ b/charts/mc-router/values.schema.json @@ -249,6 +249,9 @@ ] } } + }, + "extraPodSpec": { + "type": "object" } } } diff --git a/charts/mc-router/values.yaml b/charts/mc-router/values.yaml index d82c7b78..a401a5ff 100644 --- a/charts/mc-router/values.yaml +++ b/charts/mc-router/values.yaml @@ -114,6 +114,16 @@ extraEnv: {} # fieldRef: # fieldPath: status.hostIP +# Extra fields to set on the pod +# +# Fields set here will be added to the end of the Pod spec +# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec +# that are not already set by the chart. +# +# The value of the field will be interpretted as a template. +extraPodSpec: {} +# priorityClassName: 'my-priority-class' + # Array of extra objects to deploy with the release. # This value is evaluated as a template extraDeploy: [] diff --git a/charts/minecraft-bedrock/templates/deployment.yaml b/charts/minecraft-bedrock/templates/deployment.yaml index f4b56651..4323c507 100644 --- a/charts/minecraft-bedrock/templates/deployment.yaml +++ b/charts/minecraft-bedrock/templates/deployment.yaml @@ -230,6 +230,9 @@ spec: tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} + {{- range $key, $value := .Values.extraPodSpec }} + {{ $key }}: {{ tpl $value $ }} + {{- end }} {{- if .Values.workloadAsStatefulSet }} volumeClaimTemplates: {{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.existingClaim) }} diff --git a/charts/minecraft-bedrock/values.yaml b/charts/minecraft-bedrock/values.yaml index 62ce22f4..0695e8f3 100644 --- a/charts/minecraft-bedrock/values.yaml +++ b/charts/minecraft-bedrock/values.yaml @@ -92,6 +92,16 @@ sidecarContainers: "" # - vers=4 extraVolumes: [] +# Extra fields to set on the pod +# +# Fields set here will be added to the end of the Pod spec +# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec +# that are not already set by the chart. +# +# The value of the field will be interpretted as a template. +extraPodSpec: {} +# priorityClassName: 'my-priority-class' + ## Array of extra objects to deploy with the release ## # extraDeploy: diff --git a/charts/minecraft-proxy/templates/deployment.yaml b/charts/minecraft-proxy/templates/deployment.yaml index e11206ba..b4e64eac 100644 --- a/charts/minecraft-proxy/templates/deployment.yaml +++ b/charts/minecraft-proxy/templates/deployment.yaml @@ -209,3 +209,6 @@ spec: {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | nindent 8 }} {{- end }} + {{- range $key, $value := .Values.extraPodSpec }} + {{ $key }}: {{ tpl $value $ }} + {{- end }} diff --git a/charts/minecraft-proxy/values.yaml b/charts/minecraft-proxy/values.yaml index 0d21e087..719a64ee 100644 --- a/charts/minecraft-proxy/values.yaml +++ b/charts/minecraft-proxy/values.yaml @@ -83,6 +83,16 @@ sidecarContainers: [] # - vers=4 extraVolumes: [] +# Extra fields to set on the pod +# +# Fields set here will be added to the end of the Pod spec +# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec +# that are not already set by the chart. +# +# The value of the field will be interpretted as a template. +extraPodSpec: {} +# priorityClassName: 'my-priority-class' + minecraftProxy: # This can be one of "BUNGEECORD", "WATERFALL", "VELOCITY", "CUSTOM" type: BUNGEECORD diff --git a/charts/minecraft/templates/deployment.yaml b/charts/minecraft/templates/deployment.yaml index d8396ca1..47cc1af1 100644 --- a/charts/minecraft/templates/deployment.yaml +++ b/charts/minecraft/templates/deployment.yaml @@ -481,6 +481,9 @@ spec: {{- toYaml .volumes | nindent 6 }} {{- end }} {{- end }} + {{- range $key, $value := .Values.extraPodSpec }} + {{ $key }}: {{ tpl $value $ }} + {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/charts/minecraft/values.schema.json b/charts/minecraft/values.schema.json index 514221f1..4cf41fc3 100644 --- a/charts/minecraft/values.schema.json +++ b/charts/minecraft/values.schema.json @@ -192,6 +192,9 @@ "type": "string" } } + }, + "extraPodSpec": { + "type": "object" } } } diff --git a/charts/minecraft/values.yaml b/charts/minecraft/values.yaml index b7ca2458..cd2e4782 100644 --- a/charts/minecraft/values.yaml +++ b/charts/minecraft/values.yaml @@ -131,6 +131,18 @@ extraVolumes: [] # } extraDeploy: [] +## Extra fields to set on the pod +## +## Fields set here will be added to the end of the Pod spec +## Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec +## that are not already set by the chart. +## +## The value of the field will be interpretted as a template. +## +# extraPodSpec: +# priorityClassName: 'my-priority-class' +extraPodSpec: {} + minecraftServer: # This must be overridden, since we can't accept this for the user. eula: "FALSE" diff --git a/charts/rcon-web-admin/templates/deployment.yaml b/charts/rcon-web-admin/templates/deployment.yaml index 6e799875..78170c42 100644 --- a/charts/rcon-web-admin/templates/deployment.yaml +++ b/charts/rcon-web-admin/templates/deployment.yaml @@ -130,3 +130,6 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- range $key, $value := .Values.extraPodSpec }} + {{ $key }}: {{ tpl $value $ }} + {{- end }} diff --git a/charts/rcon-web-admin/values.yaml b/charts/rcon-web-admin/values.yaml index 4e14c395..e509b753 100644 --- a/charts/rcon-web-admin/values.yaml +++ b/charts/rcon-web-admin/values.yaml @@ -70,6 +70,16 @@ tolerations: [] affinity: {} +# Extra fields to set on the pod +# +# Fields set here will be added to the end of the Pod spec +# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec +# that are not already set by the chart. +# +# The value of the field will be interpretted as a template. +extraPodSpec: {} +# priorityClassName: 'my-priority-class' + rconWeb: # Sets the initial user as an admin isAdmin: false