Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot deploy mysqld_exporter in K8s cluster using locally built image #404

Closed
huanggze opened this issue Jul 10, 2019 · 1 comment
Closed

Comments

@huanggze
Copy link

huanggze commented Jul 10, 2019

Host operating system: output of uname -a

Linux ks-allinone 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

mysqld_exporter version: output of mysqld_exporter --version

v0.11.0

MySQL server version

5.7.14

mysqld_exporter command line flags

  --collect.global_status
  --collect.global_variables
  --collect.info_schema.tables
  --collect.info_schema.tables.databases
  *
  --collect.slave_status

What did you do that produced an error?

I clone mysql_exporter locally and build image from Dockerfile (all based on tag v0.11.0). After everything is done, I deploy mysqld-exporter in Kubernetes cluster with new image.

What did you expect to see?

I expect to see a running pod

What did you see instead?

But the pod fail to start. And the Event is saying "/bin/mysqld_exporter": permission denied

Events:
  Type     Reason     Age                  From                  Message
  ----     ------     ----                 ----                  -------
  Normal   Scheduled  13m                  default-scheduler     Successfully assigned mysql-ns/mysql-exporter-prometheus-mysql-exporter-7f89c9d4-42mtq to ks-allinone
  Normal   Created    12m (x4 over 13m)    kubelet, ks-allinone  Created container
  Warning  Failed     12m (x4 over 13m)    kubelet, ks-allinone  Error: failed to start container "prometheus-mysql-exporter": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/bin/mysqld_exporter\": permission denied": unknown
  Normal   Pulling    11m (x5 over 13m)    kubelet, ks-allinone  pulling image "dockerhub.qingcloud.com/loganhuang/mysql-exporter:latest"
  Normal   Pulled     11m (x5 over 13m)    kubelet, ks-allinone  Successfully pulled image "myrepo/mysql-exporter:latest"
  Warning  BackOff    3m8s (x48 over 13m)  kubelet, ks-allinone  Back-off restarting failed container
@huanggze
Copy link
Author

huanggze commented Jul 10, 2019

I forgot to make first..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant