Skip to content

Exporter in image does not respect ARCH #253

Open
@jensens

Description

@jensens

Describe the bug

The metrics exporter fails with exec /exporter/prometheus_varnish_exporter: exec format error

To Reproduce

  1. Enable exporter in values.yaml.
  2. Apply Helm chart on a cluster with arm64 architecture
  3. See error

Expected behavior

A running metrics sidecar as I am used to on any Arch amd64 cluster

Environment:

  • Kubernetes version: 1.29
  • kube-httpcache version: v0.8.1

Digging deeper:

In

ADD --chown=varnish https://github.com/jonnenauha/prometheus_varnish_exporter/releases/download/${EXPORTER_VERSION}/prometheus_varnish_exporter-${EXPORTER_VERSION}.linux-amd64.tar.gz /tmp

and
tar -xzf /tmp/prometheus_varnish_exporter-${EXPORTER_VERSION}.linux-amd64.tar.gz && \

the architecture is not taken into account (while the ARG ARCH is present and used for the base image).

Unfortunately at https://github.com/jonnenauha/prometheus_varnish_exporter/releases there is not any arm64 package provided.
I am going to create comment an issue there asking kindly for arm64 support.

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