title: Minikube Ingress Controller has no address
body: <p>Specs:</p>
  <ul>
  <li>OS: MacOs Big Sur (ARM)</li>
  <li>Docker: 4.0.1</li>
  <li>Minikube version: v1.23.0</li>
  </ul>
  <h1>controller-hpa.yaml</h1>
  <pre><code>apiVersion: autoscaling/v2beta2
  kind: HorizontalPodAutoscaler
  metadata:
    name: {{ .Release.Name }}-autoscaling
  spec:
    scaleTargetRef:
      apiVersion: apps/v2beta1v1
      kind: Deployment
      name: {{ .Release.Name }}-deployment
    minReplicas: {{ .Values.replicaCountMin }}
    maxReplicas: {{ .Values.replicaCountMax }}
    metrics:
      - type: Resource
        resource:
          name: cpu
          target:
            type: Utilization
            averageUtilization: 70
      - type: Resource
        resource:
          name: memory
          target:
            type: Utilization
            averageUtilization: 80
  
  </code></pre>
  <h1>deployment.yaml</h1>
  <pre><code>apiVersion: autoscaling/v2beta2
  kind: HorizontalPodAutoscaler
  metadata:
    name: {{ .Release.Name }}-autoscaling
  spec:
    scaleTargetRef:
      apiVersion: apps/v2beta1v1
      kind: Deployment
      name: {{ .Release.Name }}-deployment
    minReplicas: {{ .Values.replicaCountMin }}
    maxReplicas: {{ .Values.replicaCountMax }}
    metrics:
      - type: Resource
        resource:
          name: cpu
          target:
            type: Utilization
            averageUtilization: 70
      - type: Resource
        resource:
          name: memory
          target:
            type: Utilization
            averageUtilization: 80
  </code></pre>
  <h1>ingress.yaml</h1>
  <pre><code>apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
    name: ingress-hosts
    annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /$1
  
  spec:
    defaultBackend: # сервис на который будет уходить трафик по умолчания
      service:
        name: {{ .Release.Name }}-service
        port:
          number: 80
    rules:
      - host: fake.myaddress.com
        http:
          paths:
            - pathType: Prefix
              path: /
              backend:
                service:
                  name: {{ .Release.Name }}-service
                  port:
                    number: 80
  </code></pre>
  <h1>service.yaml</h1>
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    name: {{ .Release.Name }}-service
    labels:
      env  : prod
      owner: NikitaPavlov
  spec:
    selector:
      project: {{ .Release.Name }}    # Selecting PODS with those Labels
    ports:
      - name      : app-listener
        protocol  : TCP
        port      : 80  # Port on Service
        targetPort: 80  # Port on POD
    type: ClusterIP
  
  ---
  apiVersion: v1
  kind: Service
  metadata:
    name: {{ .Release.Name }}-service-tomcat
    labels:
      env  : prod
      owner: NikitaPavlov
  spec:
    selector:
      project: {{ .Release.Name }}    # Selecting PODS with those Labels
    ports:
      - name      : app-listener-for-tomcat
        protocol  : TCP
        port      : 8080  # Port on Service
        targetPort: 8080  # Port on POD
    type: ClusterIP
  </code></pre>
  <p>Original files here - <a href="https://github.com/npavlov/k8s-lesson/tree/main/helm-chart" rel="nofollow noreferrer">https://github.com/npavlov/k8s-lesson/tree/main/helm-chart</a></p>
  <p>Steps to reproduce:</p>
  <ul>
  <li><code>minikube start --nodes 2</code></li>
  <li><code>minikube addons enable ingress</code></li>
  <li><code>minikube addons enable ingress-dns</code></li>
  <li><code>helm install app helm-chart</code></li>
  </ul>
  <p>So the issue is: my ingress controller has empty address</p>
  <p><a href="https://i.stack.imgur.com/Vu7OK.png" rel="nofollow noreferrer">Empty address in the Ingress Controller</a></p>
  <pre><code>➜ kubectl describe ingress  ingress-hosts
  Name:             ingress-hosts
  Namespace:        default
  Address:
  Default backend:  app-service:80 (10.244.1.2:80,10.244.1.3:80)
  Rules:
    Host                Path  Backends
    ----                ----  --------
    fake.myaddress.com
                        /   app-service:80 (10.244.1.2:80,10.244.1.3:80)
  Annotations:          meta.helm.sh/release-name: app
                        meta.helm.sh/release-namespace: default
                        nginx.ingress.kubernetes.io/rewrite-target: /$1
  Events:               &lt;none&gt;
  
  </code></pre>
  <p>How to fix that?</p>