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

Use proxy instead of load balancer for Elasticsearch and Kibana #4959

Merged
merged 1 commit into from
Mar 2, 2015

Conversation

satnam6502
Copy link
Contributor

This change:

  • Removes the external load balancer from the Elasticsearch and Kibana services for cluster level logging and uses the proxy instead (are you happy now @thockin ?).
  • Updates our kubernetes/kibana image to specify the Elasticsearch service using its proxy address and removes the nginx proxy_pass config which is no logner needed.
  • Updates the reporting text in util.sh to report the URL of the cluster level services.

If the trailing lash is missing from https://MASTER/api/v1beta1/proxy/services/kibana-logging/ the Kibana page will not load properly. Something is broken -- either with us or Kibana.

FYI: @vishh @piosz

@satnam6502
Copy link
Contributor Author

A heads up to @jeffmendoza @mikedanese @justinsb
After this change merges I hope I can work with you guys to enable cluster level logging for AWS and Azure which might work now that we will no longer need an external load balancer.

@vishh
Copy link
Contributor

vishh commented Mar 2, 2015

@satnam6502: With this change, will users be able to specify a public IP on the 'kibana-logging' service and be able to access kibana UI directly?

@@ -1,6 +1,6 @@
.PHONY: build push

TAG = 1.0
TAG = 1.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scary-- if someone with the keys to the kubernetes dockerhub user (e.g. me) builds this makefile, we'll blow away the official image.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a better suggestion for how to handle this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, not familiar enough with Makefiles to have a suggestion. I guess it'd be nice if there was some special step to promote something to have official version tags?

@lavalamp
Copy link
Member

lavalamp commented Mar 2, 2015

LGTM

lavalamp added a commit that referenced this pull request Mar 2, 2015
Use proxy instead of load balancer for Elasticsearch and Kibana
@lavalamp lavalamp merged commit f278fba into kubernetes:master Mar 2, 2015
@lavalamp
Copy link
Member

lavalamp commented Mar 2, 2015

...should I have asked for an e2e run before merging this? I guess we'll find out.

@satnam6502
Copy link
Contributor Author

@vishh : no, setting a public IP in the service spec will not wok for Kibana (although fine for Elasticsearch). This is because the Kibana image has this URL for Elasticsearch set in the JS config:

https://"+window.location.hostname+"/api/v1beta1/proxy/services/elasticsearch-logging

which is expressed in terms of the proxy.

@satnam6502
Copy link
Contributor Author

@lavalamp : I am now finally unblocked for writing the actual e2e test for cluster level logging.

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

Successfully merging this pull request may close these issues.

4 participants