On a regular GKE private cluster I
- Installed ECK (
kubectl apply -f https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml
) - Installed Elasticsearch and Kibana:
apiVersion: v1
kind: Namespace
metadata:
name: elastic
labels:
name: elastic
istio-injection: enabled
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: monitoring
namespace: elastic
spec:
version: 7.10.1
http:
tls:
selfSignedCertificate:
disabled: true
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: monitoring
namespace: elastic
spec:
version: 7.10.1
count: 1
elasticsearchRef:
name: monitoring
# config:
# xpack.security.enabled: false
http:
tls:
selfSignedCertificate:
disabled: true
podTemplate:
spec:
containers:
- name: kibana
env:
- name: SERVER_BASEPATH
value: "/kibana"
- port-forward:
kubectl -n elastic port-forward service/monitoring-kb-http 5601
Web preview in the browser on port 5061 returns ERR_TOO_MANY_REDIRECTS
, while the url is https://....cloudshell.dev/kibana/login?next=%2Fkibana%2Fkibana%2Flogin%3Fnext%3D%252Fkibana%252Fkibana%252Flogin%253Fnext%253D%25252Fkibana%25252Fkibana%25252Flogin%25253Fnext%25253D%2525252Fkibana%2525252Fkibana%2525252Flogin%2525253Fnext%2525253D%252525252Fkibana%252525252Fkibana%252525252Flogin%252525253Fnext%252525253D%25252525252Fkibana%25252525252Fkibana%25252525252Flogin%25252525253Fnext... (and so on)
(same issue when I expose Kibana service with istio)
Without the basePath setting, everything works fine. But I want to access Kibana not in the root path so I need the basePath setting to be working.