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

[8.18](backport #7011) fix: set gateway k8s replicas spec #7020

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 25, 2025

What does this PR do?

If the spec.replicas field is not set for the gateway OpenTelemetry Collector, the horizontal Pod autoscaler fails with the following error:

Conditions:
  Type         Status  Reason          Message
  ----         ------  ------          -------
  AbleToScale  False   FailedGetScale  the HPA controller was unable to get the target's current scale: Internal error occurred: the spec replicas field ".spec.replicas" does not exist
Events:
  Type     Reason          Age                     From                       Message
  ----     ------          ----                    ----                       -------
  Warning  FailedGetScale  107s (x779 over 3h14m)  horizontal-pod-autoscaler  Internal error occurred: the spec replicas field ".spec.replicas" does not exist

The configuration will still deploy a gateway collector pod but not the minimum required neither won't be able to scale the pods accordingly.

Why is it important?

Fixes the deployment of the k8s Otel operator.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

How to test this PR locally

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

This is an automatic backport of pull request #7011 done by [Mergify](https://mergify.com).

* fix: set gateway k8s replicas spec

* chore: add fragments

(cherry picked from commit c356857)
@mergify mergify bot requested a review from a team as a code owner February 25, 2025 17:32
@mergify mergify bot added the backport label Feb 25, 2025
@mergify mergify bot requested review from michalpristas and blakerouse and removed request for a team February 25, 2025 17:32
Copy link

@elasticmachine
Copy link
Contributor

elasticmachine commented Feb 25, 2025

💚 Build Succeeded

History

cc @rogercoll

@rogercoll rogercoll merged commit c45637f into 8.18 Feb 26, 2025
15 checks passed
@rogercoll rogercoll deleted the mergify/bp/8.18/pr-7011 branch February 26, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants