<p>I have little k8s cluster in my machine and I try to make something for learn but I stack right now.</p>
<p>I have 2 app, one of mysql and another one wordpress and they are working good. When I give a LoadBalancer type for wordpress, it's taking a ip and I can see in my browser.</p>
<p>So I want to create a Ingress and call by hostname but Ingress not take a Loadbalancer IP..
Am I doing wrong anythin?</p>
<p>This is my Ingress configuration</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: wp-ingress
  kubernetes.io/ingress.class: nginx
  labels:
    name: wp-ingress
spec:
  rules:
  - host: wordpress.pandora.local
    http:
      paths:
      - pathType: Prefix
        path: &quot;/&quot;
        backend:
          service:
            name: wp-svc
            port: 
              number: 80
  - host: phpmyadmin.pandora.local
    http:
      paths:
      - pathType: Prefix
        path: &quot;/&quot;
        backend:
          service:
            name: phpmyadmin-svc
            port: 
              number: 80
</code></pre>
<p>and problem</p>
<pre><code># kg ingress
NAME         CLASS    HOSTS                                              ADDRESS   PORTS   AGE
wp-ingress   &lt;none&gt;   wordpress.pandora.local,phpmyadmin.pandora.local             80      38m
</code></pre>
<p>I'm using a Metallb for loadbalancer and I know it's work becasue of wordpress, but if you want to see</p>
<pre><code>kg svc -A
NAMESPACE          NAME                                 TYPE           CLUSTER-IP       EXTERNAL-IP      PORT(S)                      AGE
calico-apiserver   calico-api                           ClusterIP      10.108.149.243   &lt;none&gt;           443/TCP                      45h
calico-system      calico-kube-controllers-metrics      ClusterIP      10.100.211.40    &lt;none&gt;           9094/TCP                     45h
calico-system      calico-typha                         ClusterIP      10.107.217.253   &lt;none&gt;           5473/TCP                     45h
default            kubernetes                           ClusterIP      10.96.0.1        &lt;none&gt;           443/TCP                      45h
default            mysql-svc                            ClusterIP      10.103.110.242   &lt;none&gt;           3306/TCP                     3h1m
default            phpmyadmin-svc                       ClusterIP      10.105.195.144   &lt;none&gt;           80/TCP                       156m
default            wp-svc                               ClusterIP      10.100.96.37     &lt;none&gt;           80/TCP                       126m
ingress-nginx      ingress-nginx-controller             LoadBalancer   10.99.196.206    192.168.188.20   80:30986/TCP,443:32709/TCP   49m
ingress-nginx      ingress-nginx-controller-admission   ClusterIP      10.99.212.249    &lt;none&gt;           443/TCP                      49m
kube-system        kube-dns                             ClusterIP      10.96.0.10       &lt;none&gt;           53/UDP,53/TCP,9153/TCP       45h
</code></pre>
<p>How can I troubleshoot the situation</p>

thargalin
<p>I solved. Thank for help :)
The problem was about to ingress class.</p>
<pre><code>kind: Ingress
metadata:
  name: wp-ingress
spec:
  rules:
  - host: wordpress.pandora.local
    http:
      paths:
      - pathType: Prefix
        path: &quot;/&quot;
        backend:
          service:
            name: wp-svc
            port:
              number: 80
  - host: phpmyadmin.pandora.local
    http:
      paths:
      - pathType: Prefix
        path: &quot;/&quot;
        backend:
          service:
            name: phpmyadmin-svc
            port:
              number: 80
  ingressClassName: nginx
</code></pre>
<p>I added the last line <em>ingressClassName: nginx</em> defination and it's work!</p>
<pre><code>kg ingress
NAME         CLASS   HOSTS                                              ADDRESS         PORTS   AGE
wp-ingress   nginx   wordpress.pandora.local,phpmyadmin.pandora.local   192.168.88.20   80      5h19m
</code></pre>
