Skip to content

feat(helm): Add support for STS Endpoint and init containers for query-frontend, query-scheduler and distributor - #13519

Closed
tiagoposse wants to merge 1 commit into
grafana:mainfrom
tiagoposse:helm
Closed

feat(helm): Add support for STS Endpoint and init containers for query-frontend, query-scheduler and distributor#13519
tiagoposse wants to merge 1 commit into
grafana:mainfrom
tiagoposse:helm

Conversation

@tiagoposse

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR adds support for the sts_endpoint config introduced in #13518, and support for extra init containers for query-frontend, query-scheduler and distributor. This is helpful for several use cases. In my case this allows using self-signed certificates for the STS endpoint.

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • 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
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR
@tiagoposse
tiagoposse requested a review from a team as a code owner July 14, 2024 18:33
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Tiago Posse seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tiagoposse tiagoposse changed the title feat: Add helm support for STS Endpoint and init containers for query-frontend, query-scheduler and distributor Jul 15, 2024
@github-actions github-actions Bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Jul 15, 2024

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for your PR, please take note of my comments and sigh the CLA.

securityContext:
{{- toYaml .Values.loki.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.queryScheduler.terminationGracePeriodSeconds }}
{{- with .Values.queryScheduler.initContainers }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add this to values.yaml

securityContext:
{{- toYaml .Values.loki.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.queryFrontend.terminationGracePeriodSeconds }}
{{- with .Values.queryFrontend.initContainers }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add this to values.yaml

securityContext:
{{- toYaml .Values.loki.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.distributor.terminationGracePeriodSeconds }}
{{- with .Values.distributor.initContainers }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add this to values.yaml

s3:
s3: null
endpoint: null
sts_endpoint: null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sts_endpoint: null
stsEndpoint: null
# loki

![Version: 6.6.6](https://img.shields.io/badge/Version-6.6.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
![Version: 6.7.0](https://img.shields.io/badge/Version-6.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this please.

type: application
appVersion: 3.0.0
version: 6.6.6
version: 6.7.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this please.

Comment on lines +16 to +17
## 6.7.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 6.7.0
"secretAccessKey": null,
"signatureVersion": null
"signatureVersion": null,
"sts_endpoint": null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"sts_endpoint": null
"stsEndpoint": null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/helm size/S type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories

3 participants