3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 13:03:21 +00:00

Added custom hostAlises

This commit is contained in:
Tim Campbell 2024-02-02 13:48:33 +01:00
parent 089adff9a5
commit 01d075d7b7
4 changed files with 16 additions and 0 deletions

View File

@ -44,6 +44,10 @@ spec:
app.kubernetes.io/component: sidekiq-{{ .name }} app.kubernetes.io/component: sidekiq-{{ .name }}
app.kubernetes.io/part-of: rails app.kubernetes.io/part-of: rails
spec: spec:
{{- with $context.Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $context.Values.imagePullSecrets }} {{- with $context.Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -28,6 +28,10 @@ spec:
{{- include "mastodon.selectorLabels" . | nindent 8 }} {{- include "mastodon.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: streaming app.kubernetes.io/component: streaming
spec: spec:
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -31,6 +31,10 @@ spec:
app.kubernetes.io/component: web app.kubernetes.io/component: web
app.kubernetes.io/part-of: rails app.kubernetes.io/part-of: rails
spec: spec:
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -562,6 +562,10 @@ tolerations: []
# -- Affinity for all pods unless overwritten # -- Affinity for all pods unless overwritten
affinity: {} affinity: {}
# Any aliases to add to pod's /etc/hosts file.
# https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
hostAliases: []
# -- Topology Spread Constraints for all pods unless overwritten # -- Topology Spread Constraints for all pods unless overwritten
# Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you # Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you
# want to spread each deployment independently, or override topologySpreadConstraints # want to spread each deployment independently, or override topologySpreadConstraints