Skip to content

Commit 563d8e9

Browse files
authored
charts/wire-server: enable topology-aware hints. (#2723)
For wire-server cloud, on kubernetes 1.21+, favour topology-aware routing, which reduces unnecessary inter-availability-zone traffic, reducing latency and cloud provider costs. Documentation: https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/ See SQPIT-1439
1 parent 1414c07 commit 563d8e9

File tree

13 files changed

+25
-1
lines changed

13 files changed

+25
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
For wire-server cloud, on kubernetes 1.21+, favour topology-aware routing, which reduces unnecessary inter-availability-zone traffic, reducing latency and cloud provider cross-AZ traffic costs.

charts/backoffice/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10+
annotations:
11+
service.kubernetes.io/topology-aware-hints: auto
1012
spec:
1113
type: ClusterIP
1214
ports:

charts/brig/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10+
annotations:
11+
service.kubernetes.io/topology-aware-hints: auto
1012
spec:
1113
type: ClusterIP
1214
ports:

charts/cannon/templates/headless-service.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# We use it this way so we can handle routing requests to specific cannons directly rather than distributing requests
33
# between pods.
44
#
5-
# Read more about this technique in the StatefulSet guide:
5+
# Read more about this technique in the StatefulSet guide:
66
# https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/
77
apiVersion: v1
88
kind: Service
@@ -13,6 +13,8 @@ metadata:
1313
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
1414
release: {{ .Release.Name }}
1515
heritage: {{ .Release.Service }}
16+
annotations:
17+
service.kubernetes.io/topology-aware-hints: auto
1618
spec:
1719
type: ClusterIP
1820
# This is what makes it a Headless Service

charts/cannon/templates/nginz-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ metadata:
1818
release: {{ .Release.Name }}
1919
heritage: {{ .Release.Service }}
2020
annotations:
21+
service.kubernetes.io/topology-aware-hints: auto
2122
{{- if .Values.service.nginz.externalDNS.enabled }}
2223
external-dns.alpha.kubernetes.io/ttl: {{ .Values.service.nginz.externalDNS.ttl | quote }}
2324
external-dns.alpha.kubernetes.io/hostname: {{ required "Please provide .service.nginz.hostname when .service.nginz.enabled and .service.nginz.externalDNS.enabled are True" .Values.service.nginz.hostname | quote }}

charts/cargohold/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10+
annotations:
11+
service.kubernetes.io/topology-aware-hints: auto
1012
spec:
1113
type: ClusterIP
1214
ports:

charts/federator/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10+
annotations:
11+
service.kubernetes.io/topology-aware-hints: auto
1012
spec:
1113
type: ClusterIP
1214
ports:

charts/galley/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10+
annotations:
11+
service.kubernetes.io/topology-aware-hints: auto
1012
spec:
1113
type: ClusterIP
1214
ports:

charts/gundeck/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10+
annotations:
11+
service.kubernetes.io/topology-aware-hints: auto
1012
spec:
1113
type: ClusterIP
1214
ports:

charts/legalhold/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: "{{ .Release.Name }}-hold"
5+
annotations:
6+
service.kubernetes.io/topology-aware-hints: auto
57
spec:
68
type: ClusterIP
79
selector:

0 commit comments

Comments
 (0)