<p>I am unable to access the Kibana server UI through ingress path url I have deployed the Kibana pod along with Elasticsearch on Kubernetes cluster. While access the UI it is stating as &quot;503 service unavailable&quot; and it is re-directing path as <a href="https://myserver.com/spaces/enter" rel="nofollow noreferrer">https://myserver.com/spaces/enter</a>. Both the elasticsearch and kibana pods are running. And I am able to curl my elasticsearch pod through my ingress path url. Can someone help with the issue.</p>
<p>Kibana yaml files:</p>
<p>deployment.yaml</p>
<pre class="lang-yaml prettyprint-override"><code>---
  apiVersion: &quot;apps/v1&quot;
  kind: &quot;Deployment&quot;
  metadata: 
    name: &quot;kibana-development&quot;
    namespace: &quot;development&quot;
  spec: 
    selector: 
      matchLabels: 
        app: &quot;kibana-development&quot;
    replicas: 1
    strategy: 
      type: &quot;RollingUpdate&quot;
      rollingUpdate: 
        maxSurge: 1
        maxUnavailable: 1
    minReadySeconds: 5
    template: 
      metadata: 
        labels: 
          app: &quot;kibana-development&quot;
      spec: 
        containers: 
          - 
            name: &quot;kibana-development&quot;
            image: &quot;docker.elastic.co/kibana/kibana:7.10.2&quot;
            imagePullPolicy: &quot;Always&quot;
            
            env:
             - name: &quot;ELASTICSEARCH_HOSTS&quot;
               value: &quot;https://my-server.com/elasticsearch&quot;
            
            ports: 
              - 
                containerPort: 5601
                protocol: TCP     
        imagePullSecrets: 
          - 
            name: &quot;kibana&quot;
</code></pre>
<p>service.yaml</p>
<pre class="lang-yaml prettyprint-override"><code>---
  apiVersion: &quot;v1&quot;
  kind: &quot;Service&quot;
  metadata: 
    name: &quot;kibana-development&quot;
    namespace: &quot;development&quot;
    labels: 
      app: &quot;kibana-development&quot;
  spec: 
    ports: 
      - 
        port: 56976
        targetPort: 5601
    selector: 
      app: &quot;kibana-development&quot;
</code></pre>
<p>ingress.yaml</p>
<pre class="lang-yaml prettyprint-override"><code>---
  apiVersion: &quot;networking.k8s.io/v1beta1&quot;
  kind: &quot;Ingress&quot;
  metadata: 
    name: &quot;kibana-development-ingress&quot;
    namespace: &quot;development&quot;
    annotations: 
      nginx.ingress.kubernetes.io/rewrite-target: &quot;/$1&quot;
  spec: 
    rules: 
      - 
        host: &quot;my-server.com&quot;
        http: 
          paths: 
            - 
              backend: 
                serviceName: &quot;kibana-development&quot;
                servicePort: 56976
              path: &quot;/kibana/(.*)&quot;

</code></pre>
<p>I am able to access Kibana through cliuster-ip:port, but not with ingress path url. Is there any annotations that I am missing? Or the version 7.10.2 for elasticsearch and kibana not stable. I checked my endpoint, it is showing my cluster-ip</p>

SVD
<p>Issue resolved now, needed to add the below two env variables in deployment.yaml file.</p>
<pre><code>- 
  name: &quot;SERVER_BASEPATH&quot;
  value: &quot;/kibana-development&quot;
                
-
  name: &quot;SERVER_REWRITEBASEPATH&quot;
  value: &quot;false&quot;

</code></pre>
<p>Don't forget the &quot;/&quot; in SERVER_BASEPATH value</p>
