Merge pull request #36103 from Crassirostris/kibana-image-fix

Automatic merge from submit-queue

Fixed kibana image and controller to work through proxy

As described in #34969, new kibana image doesn't work properly with proxies without additional configuration.

@piosz
pull/6/head
Kubernetes Submit Queue 2016-11-03 14:40:19 -07:00 committed by GitHub
commit 05a083997f
3 changed files with 9 additions and 2 deletions

View File

@ -31,6 +31,8 @@ spec:
env:
- name: "ELASTICSEARCH_URL"
value: "http://elasticsearch-logging:9200"
- name: "KIBANA_BASE_URL"
value: "/api/v1/proxy/namespaces/kube-system/services/kibana-logging"
ports:
- containerPort: 5601
name: ui

View File

@ -15,9 +15,10 @@
.PHONY: build push
TAG = v4.6.1
PREFIX = gcr.io/google_containers
build:
docker build -t gcr.io/google_containers/kibana:$(TAG) .
docker build -t $(PREFIX)/kibana:$(TAG) .
push:
gcloud docker -- push gcr.io/google_containers/kibana:$(TAG)
gcloud docker -- push $(PREFIX)/kibana:$(TAG)

View File

@ -17,4 +17,8 @@
export ELASTICSEARCH_URL=${ELASTICSEARCH_URL:-"http://localhost:9200"}
echo ELASTICSEARCH_URL=${ELASTICSEARCH_URL}
export KIBANA_BASE_URL=${KIBANA_BASE_URL:-""}
echo "server.basePath: ${KIBANA_BASE_URL}"
echo "server.basePath: ${KIBANA_BASE_URL}" >> /kibana/config/kibana.yml
/kibana/bin/kibana -e ${ELASTICSEARCH_URL}