Dear Colleagues,
I've followed a get started guide on https://www.elastic.co/elasticsearch-kubernetes
I've deployed es + kibana in the way described there.
If I curl from master instance , it works
curl -I -k -u elastic:$PASSWORD 111.11.1.11:5601/app/kibana
HTTP/1.1 200 OK
content-security-policy: script-src 'unsafe-eval' 'nonce-xxxxxxxxx'; worker-src blob:; child-src blob:
kbn-name: kibana
kbn-xpack-sig: 24402aaf1221ff23f12f12f12f12f12f
cache-control: no-cache
content-type: text/html; charset=utf-8
content-length: 81330
vary: accept-encoding
connection: close
Date: Thu, 03 Sep 2019 11:23:25 GMT
Though, in front of kibana there is a traefik LB
So, if I would go to a mapped route /kibana (mapped to kibana service + 5601 port) , this results in a redirection to "login?next=%2F"
HTTP/1.1 302 Found
location: /login?next=%2F
kbn-name: kibana
kbn-xpack-sig: 24402ca2235df0b3dc31c96be2fbfa3a
content-type: text/html; charset=utf-8
cache-control: no-cache
So, kibana redirects to a wrong base path.
In documentation i found that there is a possibility to set a base path like :
env
- name: SERVER_BASEPATH
value: /api/xxx
How to better implement it taking into account implementation in https://www.elastic.co/elasticsearch-kubernetes