title: Vault ingress - how to point to vault-ui service when HA is enabled
body: <p>Having a simple UI access issue:</p>
  <p>I know (from documentation)  that when <code>ha</code> is enabled, then ingress points to <code>vault-active</code> service automatically.  I need HA enabled as I am using consul as a backend for vault.</p>
  <p>But, how can I use ingress (even a separate new one) to point to <code>vault-ui</code> service so that I can access it on myvault.mywebsite.com/ui ?</p>
  <p>I tried many things but didn't get any success.
  Please help.</p>
  <p>Vault chart version: vault-0.21.0
  Vault App version: 1.11.2
  Kubectl version:</p>
  <ul>
  <li>Client:    Major:&quot;1&quot;, Minor:&quot;21&quot;, GitVersion:&quot;v1.21.10&quot;</li>
  <li>Server: Major:&quot;1&quot;, Minor:&quot;21&quot;, GitVersion:&quot;v1.21.10&quot;</li>
  </ul>
  <p>Here's my values.yaml and ingress yaml file:</p>
  <pre><code>&gt; server:
  &gt;   ha:
  &gt;     enabled: true
  &gt;     replicas: 3
  &gt;     config: |
  &gt;       ui = true
  &gt;       storage &quot;consul&quot; {
  &gt;         path = &quot;vault&quot;
  &gt;         address = &quot;myconsul.mywebsite.com:8500&quot;
  &gt;       }
  &gt;   ingress:
  &gt;     enabled: true
  &gt; ui:
  &gt;   enabled: true
  </code></pre>
  <p>This creates default nginx ingress rule that points to <code>vault-active</code> service.</p>
  <p>Now, if I create following separate ingress object, the nginx rejects it as the host name is same and if I change the hostname, nginx accepts it but I get <code>502: Bad Gateway</code> error when I visit myvault.mywebsite.com</p>
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: vault-ingress
    namespace: vault
  spec:
    ingressClassName: nginx
    rules:
    - host: myvault.mywebsite.com
      http:
        paths:
        - path: /
          backend:
            serviceName: vault-ui
            servicePort: 80
  </code></pre>
  <p>Please help.</p>