Kibana After set basePath cannot display UI

Hi

Sorry for my broken english.
I still struggling with my kibana.yaml, i want to deploy it to k8s cluster

this my kibana.yaml

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
  namespace: elk-cluster
spec:
  version: 7.9.1
  count: 1
  config:
     server.basePath: "/logs"
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  elasticsearchRef:
    name: elasticsearch
    namespace: elk-cluster
  podTemplate:
    spec:
      containers:
        - name: kibana
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /
              port: 5601
              scheme: HTTP
            initialDelaySeconds: 10
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 5

the problem is when i try to port-forward service kibana-kb-http

PS D:\Repo\ELK Kubernetes> kubectl -n elk-cluster port-forward service/kibana-kb-http 5601
Forwarding from 127.0.0.1:5601 -> 5601
Forwarding from [::1]:5601 -> 5601
Handling connection for 5601
Handling connection for 5601

I copy 127.0.0.1:5601 to browser and automatically become http://127.0.0.1:5601/logs/spaces/enter
and response i get on browser is

{
    statusCode: 404,
    error: "Not Found",
    message: "Not Found"
}

and if i check log pod kibana is

{"type":"log","@timestamp":"2020-09-17T10:15:41Z","tags":["listening","info"],"pid":6,"message":"Server running at http://0.0.0.0:5601"}
{"type":"log","@timestamp":"2020-09-17T10:15:42Z","tags":["info","http","server","Kibana"],"pid":6,"message":"http server running at http://0.0.0.0:5601"}
{"type":"log","@timestamp":"2020-09-17T10:15:43Z","tags":["warning","plugins","reporting"],"pid":6,"message":"Enabling the Chromium sandbox provides an additional layer of protection."}
{"type":"response","@timestamp":"2020-09-17T10:15:50Z","tags":[],"pid":6,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228"},"res":{"statusCode":302,"responseTime":28,"contentLength":9},"message":"GET / 302 28ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:15:50Z","tags":[],"pid":6,"method":"get","statusCode":404,"req":{"url":"/logs/spaces/enter","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","referer":"http://10.190.17.209:5601/","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228","referer":"http://10.190.17.209:5601/"},"res":{"statusCode":404,"responseTime":52,"contentLength":9},"message":"GET /logs/spaces/enter 404 52ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:16:00Z","tags":[],"pid":6,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228"},"res":{"statusCode":302,"responseTime":7,"contentLength":9},"message":"GET / 302 7ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:16:00Z","tags":[],"pid":6,"method":"get","statusCode":404,"req":{"url":"/logs/spaces/enter","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","referer":"http://10.190.17.209:5601/","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228","referer":"http://10.190.17.209:5601/"},"res":{"statusCode":404,"responseTime":58,"contentLength":9},"message":"GET /logs/spaces/enter 404 58ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:16:10Z","tags":[],"pid":6,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228"},"res":{"statusCode":302,"responseTime":12,"contentLength":9},"message":"GET / 302 12ms - 9.0B"}

What i missing for configuration kibana? because i need that basePath for internal domain access

thank you

Hi,

sorry for the late reply. Did you in the end manage to solve your issue?

Hi @Marta_Bondyra

Thank you for reply me, that issue still exists until now.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.