Skip to content

Metrics server unable to fetch the target metrics after downloading components.yaml file from the metrics server installation URL . #1454

Open
@PranitRout07

Description

@PranitRout07

ISSUE : Metrics server unable to fetch the target metrics after downloading components.yaml file from the metrics server installation URL .

Metrics Server Installation URL : https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

ISSUE DESCRIPTION :

Here i have first downloaded the components.yaml using the above URL . Then applied the components.yaml , but it is unable to detect the target metrics . Here in the below screenshot you can see the hpa resource is unable fetch the target metrics .

if not used

Then added the following lines at line number 140 .

        command:
        - /metrics-server
        - --kubelet-insecure-tls
        - --kubelet-preferred-address-types=InternalIP
why this

After adding the lines , then again i have applied the components.yaml file using kubectl . Now hpa can detect the target metrics .

after adding

Question

Why the lines are not directly included at line number 140 in the components.yaml , so that it can work directly after downloaded from the URL ?

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.kind/supportCategorizes issue or PR as a support question.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions