[heml] fix default affinity and allow owerride ingress annotations (#4799)

This commit is contained in:
Dmitriy Pavlov 2023-08-29 18:43:11 +03:00 committed by GitHub
parent 271c51f273
commit de1dcf3b2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 13 deletions

View file

@ -10,8 +10,10 @@ kind: Ingress
metadata: metadata:
name: ingress-{{ template "seaweedfs.name" . }}-filer name: ingress-{{ template "seaweedfs.name" . }}-filer
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- if .Values.filer.ingress.annotations }}
annotations: annotations:
{{ omit .Values.filer.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }} {{ tpl .Values.filer.ingress.annotations . | nindent 4 | trim }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

View file

@ -10,8 +10,10 @@ kind: Ingress
metadata: metadata:
name: ingress-{{ template "seaweedfs.name" . }}-master name: ingress-{{ template "seaweedfs.name" . }}-master
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- if .Values.master.ingress.annotations }}
annotations: annotations:
{{ omit .Values.master.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }} {{ tpl .Values.master.ingress.annotations . | nindent 4 | trim }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

View file

@ -106,9 +106,9 @@ master:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector: - labelSelector:
matchLabels: matchLabels:
app: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
release: "{{ .Release.Name }}" app.kubernetes.io/instance: {{ .Release.Name }}
component: master app.kubernetes.io/component: master
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
# Toleration Settings for master pods # Toleration Settings for master pods
@ -137,7 +137,7 @@ master:
className: "nginx" className: "nginx"
# host: false for "*" hostname # host: false for "*" hostname
host: "master.seaweedfs.local" host: "master.seaweedfs.local"
annotations: annotations: |
nginx.ingress.kubernetes.io/auth-type: "basic" nginx.ingress.kubernetes.io/auth-type: "basic"
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret" nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master' nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master'
@ -245,9 +245,9 @@ volume:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector: - labelSelector:
matchLabels: matchLabels:
app: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
release: "{{ .Release.Name }}" app.kubernetes.io/instance: {{ .Release.Name }}
component: volume app.kubernetes.io/component: volume
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
# Resource requests, limits, etc. for the server cluster placement. This # Resource requests, limits, etc. for the server cluster placement. This
@ -352,9 +352,9 @@ filer:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector: - labelSelector:
matchLabels: matchLabels:
app: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
release: "{{ .Release.Name }}" app.kubernetes.io/instance: {{ .Release.Name }}
component: filer app.kubernetes.io/component: filer
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
# updatePartition is used to control a careful rolling update of SeaweedFS # updatePartition is used to control a careful rolling update of SeaweedFS
@ -393,7 +393,7 @@ filer:
className: "nginx" className: "nginx"
# host: false for "*" hostname # host: false for "*" hostname
host: "seaweedfs.cluster.local" host: "seaweedfs.cluster.local"
annotations: annotations: |
nginx.ingress.kubernetes.io/backend-protocol: GRPC nginx.ingress.kubernetes.io/backend-protocol: GRPC
nginx.ingress.kubernetes.io/auth-type: "basic" nginx.ingress.kubernetes.io/auth-type: "basic"
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret" nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"