Skip to content

[prometheus-node-exporter] Liveness / Readiness probes fail for node-exporter container when kubeRBACProxy is enabled #5856

Open
@bolsblue

Description

@bolsblue

Describe the bug a clear and concise description of what the bug is.

When enabling kubeRBACProxy, the node-exporter container fails its liveness and readiness probes.

Liveness probe errored and resulted in unknown state: strconv.Atoi: parsing "http": invalid syntax
Readiness probe errored and resulted in unknown state: strconv.Atoi: parsing "http": invalid syntax

Looking at the pod description, the liveness probe looks like this:

Liveness:   http-get http://127.0.0.1:http/ delay=0s timeout=1s period=10s #success=1 #failure=3

I guess that is because the port names are only defined when kubeRBACProxy is disabled:

{{- if eq .Values.kubeRBACProxy.enabled false }}
ports:
- name: {{ .Values.service.portName }}
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- end }}

This was introduced in #5845

What's your helm version?

v3.18.3

What's your kubectl version?

v1.33.2

Which chart?

prometheus-node-exporter

What's the chart version?

4.47.1

What happened?

No response

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

N/A

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions