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

Update metricbeat-kubernetes.yaml #42173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update metricbeat-kubernetes.yaml #42173

wants to merge 1 commit into from

Conversation

524c
Copy link

@524c 524c commented Dec 27, 2024

The docker.elastic.co/beats/metricbeat-wolfi:8.17.0 image has a problem with -system.hostfs=/hostfs argument (one dash)

fix --system.hostfs=/hostfs argument
@524c 524c requested review from a team as code owners December 27, 2024 15:01
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 27, 2024
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
8fe2396

Please, read and sign the above mentioned agreement if you want to contribute to this project

@mergify mergify bot assigned 524c Dec 27, 2024
Copy link
Contributor

mergify bot commented Dec 27, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @524c? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit

Copy link
Contributor

mergify bot commented Dec 27, 2024

backport-8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label and remove the backport-8.x label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Dec 27, 2024
Copy link
Contributor

@pkoutsovasilis pkoutsovasilis left a comment

Choose a reason for hiding this comment

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

Based on this code this is a flag string cli arg, thus the single dash is correct. Do you face an issue with this code @524c? PS: our documentation has this flag with double dashes but this is also allowed

@pkoutsovasilis pkoutsovasilis added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Dec 27, 2024
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Dec 27, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@524c
Copy link
Author

524c commented Dec 27, 2024

Based on this code this is a flag string cli arg, thus the single dash is correct. Do you face an issue with this code @524c? PS: our documentation has this flag with double dashes but this is also allowed

Hi, yes I get a error with version 8.17.0: https://raw.githubusercontent.com/elastic/beats/8.17/deploy/kubernetes/metricbeat-kubernetes.yaml

image

No working:

      - name: metricbeat
        image: docker.elastic.co/beats/metricbeat-wolfi:8.17.0
        args: [
          "-c", "/etc/metricbeat.yml",
          "-e",
          "-system.hostfs=/hostfs",
        ]

Working:

      - name: metricbeat
        image: docker.elastic.co/beats/metricbeat-wolfi:8.17.0
        args: [
          "-c", "/etc/metricbeat.yml",
          "-e",
          "--system.hostfs=/hostfs",
        ]

@524c
Copy link
Author

524c commented Dec 27, 2024

Based on this code this is a flag string cli arg, thus the single dash is correct. Do you face an issue with this code @524c? PS: our documentation has this flag with double dashes but this is also allowed

And with 8.1.4.3 work with single and double dash (metricbeat image):

      - name: metricbeat
        image: docker.elastic.co/beats/metricbeat:8.14.3
        args: [
          "-c", "/etc/metricbeat.yml",
          "-e",
          "-system.hostfs=/hostfs",
        ]

@pkoutsovasilis
Copy link
Contributor

pkoutsovasilis commented Dec 27, 2024

UPDATE: I believe this issue is already being handled in this PR 🙂

@524c I believe what you are seeing is bug, ty 🙏 AFAICT this PR affected how metribeat parses cli args but if my understanding is correct system.hostfs should be backwards compatible, aka both -system.hostfs and --system.hostfs should be supported. @leehinman since you are the author of this PR is my understanding correct or something else is going on here? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants