title: Kubernetes Ingress not adding the application URL for grafana dashboard
body: <p>I have install the Grafan in my Kubenernetes 1.9 cluster. When I access with my ingress URL  (<a href="http://sample.com/grafana/" rel="noreferrer">http://sample.com/grafana/</a> ) getting the first page. After that javascript, css download not adding /grafana to the URL.</p>
  
  <p>here is my ingress rule:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: grafana-ingress-v1
    namespace: monitoring
    annotations:
      ingress.kubernetes.io/rewrite-target: /
      kubernetes.io/ingress.class: nginx
  spec:
    tls:
    - hosts:
      - sample.com
      secretName: ngerss-tls
    rules:
    - host: sample.com
      http:
        paths:
        - path: /grafana/
          backend:
            serviceName: grafana-grafana
            servicePort: 80
  </code></pre>
  
  <p>Here I see the discussion about the same topic. but its not helping my issue.</p>
  
  <p><a href="https://github.com/kubernetes/contrib/issues/860" rel="noreferrer">https://github.com/kubernetes/contrib/issues/860</a>
  Below images shows first request goes to /grafana/ but second request didn't get added <code>/grafana/</code> in the url.</p>
  
  <p><a href="https://i.stack.imgur.com/UL2Xh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UL2Xh.png" alt="enter image description here"></a></p>