Skip to content

Commit

Permalink
Make the gardener-extension-registry-cache-admission Service topolo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ialidzhikov committed Aug 18, 2023
1 parent 849d458 commit d9332ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/admission/charts/runtime/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ kind: Service
metadata:
name: {{ include "name" . }}
namespace: {{ .Release.Namespace }}
annotations:
{{- if .Values.global.service.topologyAwareRouting.enabled }}
{{- if semverCompare ">= 1.27-0" .Capabilities.KubeVersion.GitVersion }}
service.kubernetes.io/topology-mode: "auto"
{{- else }}
service.kubernetes.io/topology-aware-hints: "auto"
{{- end }}
{{- end }}
labels:
{{ include "labels" . | indent 4 }}
{{- if .Values.global.service.topologyAwareRouting.enabled }}
endpoint-slice-hints.resources.gardener.cloud/consider: "true"
{{- end }}
spec:
type: ClusterIP
selector:
Expand Down
3 changes: 3 additions & 0 deletions charts/admission/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ global:
enabled: false
expirationSeconds: 43200
audience: ""
service:
topologyAwareRouting:
enabled: false

0 comments on commit d9332ba

Please sign in to comment.