-
Notifications
You must be signed in to change notification settings - Fork 491
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
K8SAutoscale InCluster Configuration Problem #1608
Comments
Could you share the configuration file being used by the process? Unfortunately there are some weird edge cases with using env to configure Kapacitor where the configuration file needs to have the right place holders in order to work. |
The kapacitor.conf is the default one packaged with the kapacitor Docker image. In my setup, im not overriding this file. Just layering configurations with ENV vars. |
I'm installing this using
|
My
|
@nathanielc Is there a reason why |
I think the above missing code is it. I'm going to build a local copy and test it and I'll make a PR for this. |
@lamchakchan Sorry for the late response, I have been out. I believe the NewConfig() was missing because of a backwards compatibility issue. Something about going from having just one k8s configuration section to allowing a list of them. I'll dig into this today and let you know. I saw your PR #1616, I'll let you know what I find. |
@lamchakchan Does it work for you if you use |
@lamchakchan I have been unable to reproduce your error. Using either the index or non-index env var names. Is it possible to share your helm package? |
@nathanielc sorry for the delay in getting back to you. I'm still getting the error when trying the indexed I can share the
After the pod boots up, I
Here are the result of this action.
|
Also, the
|
Run in to the same issue .. fixed it by just adding enable kubernetes to kapacitor.conf .. rest of configuration can still be overwritten with environment variables
.. as a side note, that can all be done in Kubernetes using a configMap volume without the need of having to rebuild the docker image. That configMap can then be mounted in to
|
I'm currently not able to get the
k8sAutoscale()
node to work. When theTICK
script is enabled, I get an error returned.I've configured
kapacitord
using environment variables. With my kapacitor docker container launched within my Kubernetes cluster. I verified the environment variables exist.I tried to find the initializer for the In-Cluster configuration and found this line. Should this reference the
os.Getenv("KUBERNETES_SERVICE_HOST")
instead of havinghttp://kubernetes
hardcoded in as the url?https://github.com/influxdata/kapacitor/blob/master/services/k8s/client/client.go#L95
Version
Using official
kapacitor:1.3
imageEnvironment
Running inside Kubernetes 1.7.x within AWS
The text was updated successfully, but these errors were encountered: