Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 112 additions & 6 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ This is the generated reference for the Loki Helm Chart values.
"service": {
"annotations": {},
"labels": {},
"trafficDistribution": "",
"type": "ClusterIP"
},
"targetModule": "backend",
Expand Down Expand Up @@ -777,6 +778,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>backend.service.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for backend Service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -5251,6 +5261,15 @@ null
<td><pre lang="json">
80
</pre>
</td>
</tr>
<tr>
<td>gateway.service.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for gateway service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -5484,6 +5503,7 @@ null
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": [],
"trafficDistribution": "",
"updateStrategy": {
"type": "RollingUpdate"
}
Expand Down Expand Up @@ -5835,6 +5855,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>indexGateway.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for index-gateway service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -5960,6 +5989,7 @@ null
"whenUnsatisfiable": "ScheduleAnyway"
}
],
"trafficDistribution": "",
"updateStrategy": {
"type": "RollingUpdate"
},
Expand Down Expand Up @@ -6362,7 +6392,7 @@ false
<tr>
<td>ingester.serviceAnnotations</td>
<td>object</td>
<td>Annotations for ingestor service</td>
<td>Annotations for ingester service</td>
<td><pre lang="json">
{}
</pre>
Expand All @@ -6371,7 +6401,7 @@ false
<tr>
<td>ingester.serviceLabels</td>
<td>object</td>
<td>Labels for ingestor service</td>
<td>Labels for ingester service</td>
<td><pre lang="json">
{}
</pre>
Expand All @@ -6380,7 +6410,7 @@ false
<tr>
<td>ingester.serviceType</td>
<td>string</td>
<td>Service type for ingestor service</td>
<td>Service type for ingester service</td>
<td><pre lang="json">
"ClusterIP"
</pre>
Expand Down Expand Up @@ -6411,6 +6441,15 @@ false
<td><pre lang="">
Defaults to allow skew no more than 1 node
</pre>
</td>
</tr>
<tr>
<td>ingester.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for ingester service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -7174,6 +7213,15 @@ null
"http_server_write_timeout": "600s"
}
</pre>
</td>
</tr>
<tr>
<td>loki.service.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for services Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -9729,7 +9777,8 @@ null
"topologyKey": "kubernetes.io/hostname",
"whenUnsatisfiable": "ScheduleAnyway"
}
]
],
"trafficDistribution": ""
}
</pre>
</td>
Expand Down Expand Up @@ -10094,6 +10143,15 @@ null
<td><pre lang="">
Defaults to allow skew no more then 1 node
</pre>
</td>
</tr>
<tr>
<td>querier.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for querier service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -10164,7 +10222,8 @@ Defaults to allow skew no more then 1 node
"serviceType": "ClusterIP",
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
"topologySpreadConstraints": [],
"trafficDistribution": ""
}
</pre>
</td>
Expand Down Expand Up @@ -10522,6 +10581,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>queryFrontend.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for query-frontend service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -10575,7 +10643,8 @@ null
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
"topologySpreadConstraints": [],
"trafficDistribution": ""
}
</pre>
</td>
Expand Down Expand Up @@ -10823,6 +10892,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>queryScheduler.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for query-scheduler service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -10940,6 +11018,7 @@ false
"service": {
"annotations": {},
"labels": {},
"trafficDistribution": "",
"type": "ClusterIP"
},
"targetModule": "read",
Expand Down Expand Up @@ -11329,6 +11408,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>read.service.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for read service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -12820,6 +12908,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>singleBinary.service.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution single binary Service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -13702,6 +13799,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>write.service.trafficDistribution</td>
<td>string</td>
<td>trafficDistribution for write service</td>
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
Expand Down
1 change: 1 addition & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Entries should include a reference to the pull request that introduced the chang
- [CHANGE] Changed version of Grafana Loki to 3.5.7.
- [FEATURE] Allow auto-resizing the volume by recreating the StatefulSet. [#19217](https://github.com/grafana/loki/pull/19217).
- [BUGFIX] Add single-binary component to the podSelector. [#19229](https://github.com/grafana/loki/pull/19229).
- [ENHANCEMENT] Added `trafficDistribution` configuration option to backend, compactor, distributor, gateway, index-gateway, ingester, querier, query-frontend, query-scheduler,read and write services to enable same-zone traffic routing. #19557

## 6.43.0

Expand Down
3 changes: 3 additions & 0 deletions production/helm/loki/templates/backend/service-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ spec:
protocol: TCP
selector:
{{- include "loki.backendSelectorLabels" . | nindent 4 }}
{{- with .Values.backend.service.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
{{- end }}
selector:
{{- include "loki.distributorSelectorLabels" . | nindent 4 }}
{{- if .Values.distributor.trafficDistribution }}
trafficDistribution: {{ .Values.distributor.trafficDistribution }}
{{- with .Values.distributor.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end -}}
3 changes: 3 additions & 0 deletions production/helm/loki/templates/gateway/service-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ spec:
protocol: TCP
selector:
{{- include "loki.gatewaySelectorLabels" . | nindent 4 }}
{{- with .Values.gateway.service.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ spec:
{{- end }}
selector:
{{- include "loki.indexGatewaySelectorLabels" . | nindent 4 }}
{{- with .Values.indexGateway.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ spec:
{{- end }}
selector:
{{- include "loki.ingesterSelectorLabels" . | nindent 4 }}
{{- with .Values.ingester.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end -}}
3 changes: 3 additions & 0 deletions production/helm/loki/templates/querier/service-querier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ spec:
{{- end }}
selector:
{{- include "loki.querierSelectorLabels" . | nindent 4 }}
{{- with .Values.querier.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ spec:
{{- end }}
selector:
{{- include "loki.queryFrontendSelectorLabels" . | nindent 4 }}
{{- with .Values.queryFrontend.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ spec:
{{- end }}
selector:
{{- include "loki.querySchedulerSelectorLabels" . | nindent 4 }}
{{- with .Values.queryScheduler.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions production/helm/loki/templates/read/service-read.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ spec:
protocol: TCP
selector:
{{- include "loki.readSelectorLabels" . | nindent 4 }}
{{- with .Values.read.service.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions production/helm/loki/templates/write/service-write.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ spec:
protocol: TCP
selector:
{{- include "loki.writeSelectorLabels" . | nindent 4 }}
{{- with .Values.write.service.trafficDistribution | default .Values.loki.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
Loading
Loading