# Kibana reverse proxy with nginx gives Empty Dashboard on Kubernetes

**URL:** https://discuss.elastic.co/t/kibana-reverse-proxy-with-nginx-gives-empty-dashboard-on-kubernetes/279146
**Category:** Kibana
**Tags:** docker
**Created:** [July 20, 2021, 9:53am UTC](https://discuss.elastic.co/t/kibana-reverse-proxy-with-nginx-gives-empty-dashboard-on-kubernetes/279146 "2021-07-20T09:53:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nisha\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nisha_shaik/32/91866_2.png) [@Nisha\_Shaik](https://discuss.elastic.co/u/Nisha_Shaik)
#### Post date: [July 20, 2021, 9:53am UTC](https://discuss.elastic.co/t/kibana-reverse-proxy-with-nginx-gives-empty-dashboard-on-kubernetes/279146/1 "2021-07-20T09:53:04Z")

</div>

Hi

We have Deployed Kibana & Elastic Search on our Kubernetes Cluster. I want to access Kibana via my Nginx by configuring reverse proxy . I am able to configure the nginx.conf with kibana url but when I go to nginx\_url/Kibana it gives me a White Dashboard ,no content on the web . It is Strange because i got it worked on my Local machine & it worked but same configuration on kubernetes giving me Empty response .

Below is my Kibana deployment file

```auto
apiVersion: apps/v1
kind: Deployment
metadata:
  #namespace: vpd-cluster-elk
  name: kibana
  labels:
    app: kibana
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kibana
  template:
    metadata:
      labels:
        app: kibana
    spec:
      containers:
      - name: kibana
        image: docker.elastic.co/kibana/kibana:7.10.1
        resources:
          limits:
            cpu: 1000m
          requests:
            cpu: 100m
        env:
          - name: ELASTICSEARCH_URL
            value: "http://ES_Url:9200"
          - name: SERVER_BASEPATH
            value: "/app/home"
          - name: SERVER_REWRITEBASEPATH
            value: "false"
        
        ports:
        - containerPort: 5601
      volumes:
      - name: "config"
        configMap:
          name: kibana-config
---
apiVersion: v1
kind: Service
metadata:
  #namespace: vpd-cluster-elk
  name: kibana
  labels:
    app: kibana
spec:
  ports:
  - port: 5601
    targetPort: 5601
  selector:
    app: kibana
  type: LoadBalancer
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: kibana-config
data:
  kibana.yml: |
    ---
    server.name: kibana
    elasticsearch.url: http://ES_url:9200
    # server.basePath: /app/home
    # server.rewriteBasePath: true

```

Below is my Nginx.conf file

```auto
apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-conf
data:
  nginx.conf: |
    worker_processes 1;
    events {
        worker_connections 1024;
    }
    http {
        
        include mime.types;
        default_type application/octet-stream;
        sendfile on;
        keepalive_timeout 65;
         # To allow special characters in headers
         
         
         ignore_invalid_headers off;

         client_max_body_size 0;

         proxy_buffering off;
         
         server {
         
            listen 80;
            server_name _;
            
           location /app/home{
            proxy_http_version 1.1;
                       
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
            proxy_pass http://Kibana_Url:5601;
           
    }
           }
        
                            
            
           
    }
 

```

Kindly let me know what I am wrong or do i need any additional configurations

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [August 4, 2021, 3:26pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy-with-nginx-gives-empty-dashboard-on-kubernetes/279146/2 "2021-08-04T15:26:32Z")

</div>

@jbudz /@tiagocosta can we get some help here please?

Thanks  
Bhavya

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 1, 2021, 3:27pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy-with-nginx-gives-empty-dashboard-on-kubernetes/279146/3 "2021-09-01T15:27:16Z")

</div>

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