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 InCluster client not working #1623

Closed
lamchakchan opened this issue Oct 16, 2017 · 0 comments
Closed

kubernetes InCluster client not working #1623

lamchakchan opened this issue Oct 16, 2017 · 0 comments

Comments

@lamchakchan
Copy link
Contributor

lamchakchan commented Oct 16, 2017

The Kubernetes InCluster setting is not working when kapacitor is mounted on a docker base image that can't resolve against /etc/resolve.conf search domains.

curl -sSk -H "Authorization: Bearer $KUBE_TOKEN" https://kubernetes/
curl: (6) Could not resolve host: kubernetes

The host for kubernetes is hardcoded here. This is dependent on DNS working. All containers are mounted with ENV values with Kubernetes API IP via KUBERNETES_SERVICE_HOST. We should use this not knowing which container supports proper DNS resolution. The client-go app uses ENV values for IP resolution as well.

This issue was found as part of the error that popped up during TICK script initialization for the k8sAutoscale node. It required the following url to be resolved to get at scaling state.

https://kubernetes/apis/extensions/v1beta1/namespaces/default/deployments/test-loader-xo-app-manifest/scale
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