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

KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined #33

Closed
boomballa opened this issue Aug 18, 2021 · 1 comment
Closed

Comments

@boomballa
Copy link

我想直接指定配置文件启动服务,没想容器部署,为什么一定要制定KUBERNETES_SERVICE_HOST 和 KUBERNETES_SERVICE_PORT呢?

shell:~/nebula-stats-exporter$ ./nebula-stats-exporter --bare-metal-config="/nebula-stats-exporter/config.yaml"
F0818 16:56:51.941470 40432 main.go:63] build config failed: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined

@MegaByte875
Copy link
Contributor

You should specify the baremental environment with --bare-metal parameter.
./nebula-stats-exporter --bare-metal --bare-metal-config="/nebula-stats-exporter/config.yaml"

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

2 participants