Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added support for overrides exporter #15630

Merged
merged 7 commits into from
Jan 10, 2025
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
299 changes: 299 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7660,6 +7660,305 @@ false
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter</td>
<td>object</td>
<td>Configuration for the overrides-exporter</td>
<td><pre lang="json">
{
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "overrides-exporter"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"enabled": false,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"maxUnavailable": null,
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": []
}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.affinity</td>
<td>object</td>
<td>Affinity for overrides-exporter pods.</td>
<td><pre lang="">
Hard node anti-affinity
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.appProtocol</td>
<td>object</td>
<td>Set the optional grpc service protocol. Ex: "grpc", "http2" or "https"</td>
<td><pre lang="json">
{
"grpc": ""
}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.command</td>
<td>string</td>
<td>Command to execute instead of defined in Docker image</td>
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.enabled</td>
<td>bool</td>
<td>The overrides-exporter component is optional and can be disabled if desired.</td>
<td><pre lang="json">
false
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.extraArgs</td>
<td>list</td>
<td>Additional CLI args for the overrides-exporter</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.extraContainers</td>
<td>list</td>
<td>Containers to add to the overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.extraEnv</td>
<td>list</td>
<td>Environment variables to add to the overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.extraEnvFrom</td>
<td>list</td>
<td>Environment variables from secrets or configmaps to add to the overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.extraVolumeMounts</td>
<td>list</td>
<td>Volume mounts to add to the overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.extraVolumes</td>
<td>list</td>
<td>Volumes to add to the overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.hostAliases</td>
<td>list</td>
<td>hostAliases to add</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.image.registry</td>
<td>string</td>
<td>The Docker registry for the overrides-exporter image. Overrides `loki.image.registry`</td>
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.image.repository</td>
<td>string</td>
<td>Docker image repository for the overrides-exporter image. Overrides `loki.image.repository`</td>
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.image.tag</td>
<td>string</td>
<td>Docker image tag for the overrides-exporter image. Overrides `loki.image.tag`</td>
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.initContainers</td>
<td>list</td>
<td>Init containers to add to the overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.maxUnavailable</td>
<td>string</td>
<td>Pod Disruption Budget maxUnavailable</td>
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.nodeSelector</td>
<td>object</td>
<td>Node selector for overrides-exporter pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.podAnnotations</td>
<td>object</td>
<td>Annotations for overrides-exporter pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.podLabels</td>
<td>object</td>
<td>Labels for overrides-exporter pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.priorityClassName</td>
<td>string</td>
<td>The name of the PriorityClass for overrides-exporter pods</td>
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.replicas</td>
<td>int</td>
<td>Number of replicas for the overrides-exporter</td>
<td><pre lang="json">
0
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.resources</td>
<td>object</td>
<td>Resource requests and limits for the overrides-exporter</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.serviceAnnotations</td>
<td>object</td>
<td>Annotations for overrides-exporter service</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.serviceLabels</td>
<td>object</td>
<td>Labels for overrides-exporter service</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.terminationGracePeriodSeconds</td>
<td>int</td>
<td>Grace period to allow the overrides-exporter to shutdown before it is killed</td>
<td><pre lang="json">
300
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.tolerations</td>
<td>list</td>
<td>Tolerations for overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>overridesExporter.topologySpreadConstraints</td>
<td>list</td>
<td>Topology Spread Constraints for overrides-exporter pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Entries should include a reference to the pull request that introduced the chang

[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)

## 6.25.0

- [FEATURE] Added support for Overrides Exporter

## 6.24.0

- [BUGFIX] Add conditional to include ruler config only if `ruler.enabled=true`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{/*
overrides-exporter fullname
*/}}
{{- define "loki.overridesExporterFullname" -}}
{{ include "loki.fullname" . }}-overrides-exporter
{{- end }}

{{/*
overrides-exporter common labels
*/}}
{{- define "loki.overridesExporterLabels" -}}
{{ include "loki.labels" . }}
app.kubernetes.io/component: overrides-exporter
{{- end }}

{{/*
overrides-exporter selector labels
*/}}
{{- define "loki.overridesExporterSelectorLabels" -}}
{{ include "loki.selectorLabels" . }}
app.kubernetes.io/component: overrides-exporter
{{- end }}

{{/*
overrides-exporter priority class name
*/}}
{{- define "loki.overridesExporterPriorityClassName" -}}
{{- $pcn := coalesce .Values.global.priorityClassName .Values.overridesExporter.priorityClassName -}}
{{- if $pcn }}
priorityClassName: {{ $pcn }}
{{- end }}
{{- end }}
Loading
Loading