title: K8S Ingress using Nginx for Linkerd Dashboard
body: <p>I'm trying to Expose Linkerd Dashboard with Nginx Ingres , But I want to access the Dashboard with some path name , for example if my Host Name is &quot;abcde.com&quot; I want to access the Dashboard with &quot;abcde.com/linkerd-dash&quot; , The problem is that I'm getting white blank view.</p>
  <p>I have Another Ingress in my K8S ,In Another namespace With the SAME HOSTNAME (abcde.com) , for my main services , I Can not use another Hostname.</p>
  <p>If I'm access the root URL abcde.com , I'm getting some front end service - that is OK ( just letting you know I can not mess the root ) .</p>
  <p><strong>MY Main Ingress -&gt; Namespace - ns1 / Ingress - ing1.yaml</strong></p>
  <pre><code>apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
    annotations:
      kubernetes.io/ingress.class: nginx
      meta.helm.sh/release-name: ingress
      meta.helm.sh/release-namespace: ns1
      nginx.ingress.kubernetes.io/enable-cors: &quot;true&quot;
      nginx.ingress.kubernetes.io/force-ssl-redirect: &quot;true&quot;
      nginx.ingress.kubernetes.io/proxy-body-size: 10000m
      nginx.ingress.kubernetes.io/proxy-connect-timeout: &quot;6000000&quot;
      nginx.ingress.kubernetes.io/proxy-read-timeout: &quot;6000000&quot;
      nginx.ingress.kubernetes.io/proxy-send-timeout: &quot;6000000&quot;
      nginx.ingress.kubernetes.io/rewrite-target: /$2
    labels:
      app.kubernetes.io/managed-by: Helm
    name: ingress
    namespace: ns1
  spec:
    rules:
    - host: abcde.com
      http:
        paths:
        - backend:
            service:
              name: ns1
              port:
                number: 80
          path: /ns1(/|$)(.*)
          pathType: Prefix
        - backend:
            service:
              name: ns2
              port:
                number: 80
          path: /ns2(/|$)(.*)
        - backend:
            service:
              name: ns3
              port:
                number: 80
          path: /ns3(/|$)(.*)
          pathType: Prefix
        - backend:
            service:
              name: ns4
              port:
                number: 80
          path: /*(/|$)(.*)
          pathType: Prefix
        - backend:
            service:
              name: frontend
              port:
                number: 80
          path: /frontend(/|$)(.*)
          pathType: Prefix
    tls:
    - hosts:
      - abcde.com
      secretName: ingress
  status:
    loadBalancer:
      ingress:
      - ip: x.x.x.x
  </code></pre>
  <p><strong>Second Ingress In Linkerd Namespace , that I created to expose the dashboard</strong></p>
  <pre><code>apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/auth-realm: Authentication Required
      nginx.ingress.kubernetes.io/auth-secret: web-ingress-auth
      nginx.ingress.kubernetes.io/auth-type: basic
      nginx.ingress.kubernetes.io/configuration-snippet: |
        proxy_set_header Origin &quot;&quot;;
        proxy_hide_header l5d-remote-ip;
        proxy_hide_header l5d-server-id;
      nginx.ingress.kubernetes.io/enable-cors: &quot;true&quot;
      nginx.ingress.kubernetes.io/force-ssl-redirect: &quot;true&quot;
      nginx.ingress.kubernetes.io/proxy-body-size: 10000m
      nginx.ingress.kubernetes.io/proxy-connect-timeout: &quot;6000000&quot;
      nginx.ingress.kubernetes.io/proxy-read-timeout: &quot;6000000&quot;
      nginx.ingress.kubernetes.io/proxy-send-timeout: &quot;6000000&quot;
      nginx.ingress.kubernetes.io/rewrite-target: /$2
    name: web-ingress
    namespace: linkerd-viz
  spec:
    rules:
    - host: abcde.com
      http:
        paths:
        - backend:
            service:
              name: web
              port:
                number: 8084
          path: /linkerd(/|$)(.*)
          pathType: Prefix
  status:
    loadBalancer:
      ingress:
      - ip: x.x.x.x
  </code></pre>