title: Basic Auth doesn't work in kubernetes ingress
body: <p>I have created pypiserver in kubernetes cluster, I have used <a href="https://hub.docker.com/r/pypiserver/pypiserver" rel="nofollow noreferrer">https://hub.docker.com/r/pypiserver/pypiserver</a> docker image. I need to create basic auth for the server which I created. I used this method <a href="https://kubernetes.github.io/ingress-nginx/examples/auth/basic/" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/examples/auth/basic/</a></p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: pypiserver
    labels:
      app: pypiserver
    annotations:
      kubernetes.io/ingress.class: nginx
      kubernetes.io/tls-acme: 'true'
      ingress.kubernetes.io/auth-type: basic
      ingress.kubernetes.io/auth-secret: secret
      ingress.kubernetes.io/auth-realm: "Authentication Required - ok"
  spec:
    rules:
    - host: example.com
      http:
        paths:
        - path: /
          backend:
            serviceName: pypiservice
            servicePort: 8080
    tls:
    - hosts:
      - example.com
      secretName: secret-tls
  </code></pre>
  
  <p>But my host name would be "www.example.com/8080" and I don't see ingress has any pod in kubernetes cluster. Ingress is running fine but I don't get auth for this host. (And also I have <a href="http://IP" rel="nofollow noreferrer">http://IP</a> adress:8080 which I converted to domain through cloudflare)</p>
  
  <p>Please let me know what am I doing wrong?</p>