oslabs-beta / kubermetrics

193 stars 33 forks source link

kubermetrics pods start failed with "exec format error" #30

Open HeLiangHIT opened 3 years ago

HeLiangHIT commented 3 years ago

I am installing kubermetrics on CentOS Linux release 7.7.1908(x86_64, Intel(R) Xeon(R) CPU E5-2690) by the following cmd: kubectl apply -f manifests With prometheus and grafana running:

$ kubectl get pods --namespace=monitoring
NAME                                     READY   STATUS    RESTARTS   AGE
grafana-6d855fdbd6-w2hg4                 1/1     Running   0          15m
prometheus-deployment-599bbd9457-l5q2g   1/1     Running   0          15m
$ kubectl port-forward grafana-6d855fdbd6-w2hg4 --namespace=monitoring 3000:3000
Forwarding from 127.0.0.1:3000 -> 3000
Forwarding from [::1]:3000 -> 3000
Handling connection for 3000
...
$ kubectl port-forward prometheus-deployment-599bbd9457-l5q2g --namespace=monitoring 9090:9090
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090

kubermetrics start fail with

$ kubectl get pods
NAME                                READY   STATUS             RESTARTS   AGE
kubermetrics-depl-b596bb4b8-qz8tv   0/1     CrashLoopBackOff   6          8m8s
$ kubectl logs  --previous deployment.apps/kubermetrics-depl
standard_init_linux.go:178: exec user process caused "exec format error"
arajput96 commented 3 years ago

Hello HeLiangHIT,

I wanted to thank you for giving Kubermetrics a shot in this early stage of it's lifespan. From what I'm seeing here is a compatibility issue of the Kubermetrics deployment alongside the Linux installation of Kubernetes.

Could you provide some details on what process you used to install Kubernetes itself (such as Kind or Minikube)

There is a good chance we will need to tweak something in the codebase to allow for Linux compatibility.

Once again thank you for trying out our product and we look forward to getting it up and running for you!

erickcezar commented 3 years ago

Hey guys!

I've got the same problem. I'm trying to deploy on GKE.

It's a test environment, but it's up to date and with other things running.

Is it something similar to that? here

agdevsu commented 3 years ago

Hello!

I have the same issue. I'm trying to deploy the tool on minikube.

thpang commented 3 years ago

Same issue running with k3s.

arajput96 commented 3 years ago

Thanks so much for the valuable feedback!

This is definitely a compatibility issue on our end and will be the prime focus of our next update! Thank you all for giving Kubermetrics a shot and I look forward to having you all try out our product on the next update!

BurlyLuo commented 3 years ago

same issue.

shencan commented 3 years ago

Same issue running with aws eks

thpang commented 3 years ago

Found that if I build the image on my mac and change the Service to the following:

apiVersion: v1
kind: Service
metadata:
  name: kubermetrics-srv
  labels:
    prometheus: cluster-monitoring
    k8s-app: kube-state-metrics
spec:
  selector:
    app: kubermetrics
  type: ClusterIP
  ports:
    - name: kubermetrics
      protocol: TCP
      port: 3080
      targetPort: 3068

I can port forward then and see the UI. It's empty with no info but it runs at that point. Not sure what the mechanism is to hook the pod into the cluster's info.

forbearing commented 3 years ago

Hello HeLiangHIT,

I wanted to thank you for giving Kubermetrics a shot in this early stage of it's lifespan. From what I'm seeing here is a compatibility issue of the Kubermetrics deployment alongside the Linux installation of Kubernetes.

Could you provide some details on what process you used to install Kubernetes itself (such as Kind or Minikube)

There is a good chance we will need to tweak something in the codebase to allow for Linux compatibility.

Once again thank you for trying out our product and we look forward to getting it up and running for you!

Same issue running with kubernetes 1.21.3

geray-zsg commented 3 years ago

启动kubermetrics/kubermetrics:latest镜像时出现错误:standard_init_linux.go:228: exec user process caused: exec format error 该错误好像是CPU架构(镜像适用于:linux/arm64)

Evantage-WS commented 2 years ago

Any update on this?

Box-Cube commented 2 years ago

Same issue running with kubernetes v1.20.9, native K8S cluster. CentOS Linux release 7.6.1810 (Core)

smallersoup commented 2 years ago

x86 cpu arch image can found in https://hub.docker.com/repository/docker/smallsoup/kubermetrics