Skip to content

Fails to start in minikube with "does not support all ... CPU features" / "Please rebuild the executable" #166

Description

@dfuhry

The image runs fine for me in docker, with command:
docker run --rm -it ghcr.io/observabilitystack/geoip-api:latest.

However, when I try to run in minikube (kubernetes), with command:
kubectl create deployment --image ghcr.io/observabilitystack/geoip-api:latest geoip-test1

The pod terminates immediately in error, producing only the output:

The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
Please rebuild the executable with an appropriate setting of the -march option.

In a full (non-minikube) kubernetes cluster when trying to run an older (2023-06) image, it terminates immediately with error:

/srv/geoip-api: CPU ISA level is lower than required

Suggestions online range from those related to the first error, e.g. "change -march=native to -march=x86-64", to running with different versions of libc. Are there any suggested workarounds to, or possible fixes for, the above errors?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions