helm: add dnsConfig (#10339)

**What this PR does / why we need it**:

Adds dnsConfig value to Helm deployments and statefulsets

**Which issue(s) this PR fixes**:

N/A

**Special notes for your reviewer**:

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [x] Documentation added
- [ ] Tests updated
- [x] `CHANGELOG.md` updated
- [ ] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/setup/upgrade/_index.md`
- [x] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec)

---------

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
pull/10379/head^2
Calvin Bui 2 years ago committed by GitHub
parent a6f68fff52
commit 05195f2e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 63
      docs/sources/setup/install/helm/reference.md
  2. 4
      production/helm/loki/CHANGELOG.md
  3. 2
      production/helm/loki/Chart.yaml
  4. 2
      production/helm/loki/README.md
  5. 4
      production/helm/loki/templates/backend/statefulset-backend.yaml
  6. 4
      production/helm/loki/templates/gateway/deployment-gateway.yaml
  7. 4
      production/helm/loki/templates/loki-canary/daemonset.yaml
  8. 4
      production/helm/loki/templates/read/deployment-read.yaml
  9. 4
      production/helm/loki/templates/read/statefulset-read.yaml
  10. 4
      production/helm/loki/templates/single-binary/statefulset.yaml
  11. 4
      production/helm/loki/templates/table-manager/deployment-table-manager.yaml
  12. 4
      production/helm/loki/templates/write/statefulset-write.yaml
  13. 14
      production/helm/loki/values.yaml

@ -103,6 +103,15 @@ false
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>backend.dnsConfig</td>
<td>object</td>
<td>DNS config for backend pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -972,6 +981,15 @@ null
<td><pre lang="json">
"RollingUpdate"
</pre>
</td>
</tr>
<tr>
<td>gateway.dnsConfig</td>
<td>object</td>
<td>DNS config for gateway pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -2328,6 +2346,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>monitoring.lokiCanary.dnsConfig</td>
<td>object</td>
<td>DNS config for canary pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -3067,6 +3094,15 @@ false
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>read.dnsConfig</td>
<td>object</td>
<td>DNS config for read pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -3418,6 +3454,15 @@ false
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>singleBinary.dnsConfig</td>
<td>object</td>
<td>DNS config for single binary pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -3670,6 +3715,15 @@ Hard node and soft zone anti-affinity
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>tableManager.dnsConfig</td>
<td>object</td>
<td>DNS config table-manager pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -4086,6 +4140,15 @@ false
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>write.dnsConfig</td>
<td>object</td>
<td>DNS config for write pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>

@ -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.)
## 5.16.0
- [ENHANCEMENT] Add dnsConfig to values
## 5.15.0
- [ENHANCEMENT] Add rbac.pspAnnotations to define PSP annotations

@ -3,7 +3,7 @@ name: loki
description: Helm chart for Grafana Loki in simple, scalable mode
type: application
appVersion: 2.8.4
version: 5.15.0
version: 5.16.0
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki

@ -1,6 +1,6 @@
# loki
![Version: 5.15.0](https://img.shields.io/badge/Version-5.15.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.4](https://img.shields.io/badge/AppVersion-2.8.4-informational?style=flat-square)
![Version: 5.16.0](https://img.shields.io/badge/Version-5.16.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.4](https://img.shields.io/badge/AppVersion-2.8.4-informational?style=flat-square)
Helm chart for Grafana Loki in simple, scalable mode

@ -132,6 +132,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.backend.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.backend.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -98,6 +98,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.gateway.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.gateway.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -95,6 +95,10 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -117,6 +117,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.read.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.read.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -123,6 +123,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.read.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.read.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -135,6 +135,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.singleBinary.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.singleBinary.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -92,6 +92,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.tableManager.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.tableManager.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -139,6 +139,10 @@ spec:
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.write.dnsConfig }}
dnsConfig:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.write.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -659,6 +659,8 @@ monitoring:
extraEnvFrom: []
# -- Resource requests and limits for the canary
resources: {}
# -- DNS config for canary pods
dnsConfig: {}
# -- Node selector for canary pods
nodeSelector: {}
# -- Tolerations for canary pods
@ -768,6 +770,8 @@ write:
matchLabels:
{{- include "loki.writeSelectorLabels" . | nindent 10 }}
topologyKey: kubernetes.io/hostname
# -- DNS config for write pods
dnsConfig: {}
# -- Node selector for write pods
nodeSelector: {}
# -- Tolerations for write pods
@ -842,6 +846,8 @@ tableManager:
matchLabels:
{{- include "loki.tableManagerSelectorLabels" . | nindent 12 }}
topologyKey: failure-domain.beta.kubernetes.io/zone
# -- DNS config table-manager pods
dnsConfig: {}
# -- Node selector for table-manager pods
nodeSelector: {}
# -- Tolerations for table-manager pods
@ -929,6 +935,8 @@ read:
matchLabels:
{{- include "loki.readSelectorLabels" . | nindent 10 }}
topologyKey: kubernetes.io/hostname
# -- DNS config for read pods
dnsConfig: {}
# -- Node selector for read pods
nodeSelector: {}
# -- Tolerations for read pods
@ -1025,6 +1033,8 @@ backend:
matchLabels:
{{- include "loki.backendSelectorLabels" . | nindent 10 }}
topologyKey: kubernetes.io/hostname
# -- DNS config for backend pods
dnsConfig: {}
# -- Node selector for backend pods
nodeSelector: {}
# -- Tolerations for backend pods
@ -1105,6 +1115,8 @@ singleBinary:
matchLabels:
{{- include "loki.singleBinarySelectorLabels" . | nindent 10 }}
topologyKey: kubernetes.io/hostname
# -- DNS config for single binary pods
dnsConfig: {}
# -- Node selector for single binary pods
nodeSelector: {}
# -- Tolerations for single binary pods
@ -1267,6 +1279,8 @@ gateway:
matchLabels:
{{- include "loki.gatewaySelectorLabels" . | nindent 10 }}
topologyKey: kubernetes.io/hostname
# -- DNS config for gateway pods
dnsConfig: {}
# -- Node selector for gateway pods
nodeSelector: {}
# -- Tolerations for gateway pods

Loading…
Cancel
Save