<p>I have a Kubernetes Cluster running on Azure. I use the nginx-ingress to handle incoming requests. To set up the ingress I used the official guide <a href="https://kubernetes.github.io/ingress-nginx/deploy/#azure" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/deploy/#azure</a> .
I also created a public static IP which I want to use for the Ingress.
Unfortunately, I´m not able to find the ingress service (generic-deployment.yaml). Also, my ingress is not describable. </p>

<h3>How I installed Ingress:</h3>

<pre><code>$ sudo kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
...
deployment.apps/nginx-ingress-controller created

$ sudo kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml
service/ingress-nginx created
</code></pre>

<p>Additionally, I installed some routing configs by ingress.yaml:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: myingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
      - path:
        backend:
          serviceName: app0-service
          servicePort: 80
      - path: /app1
        backend:
          serviceName: app1-service
          servicePort: 80


$sudo kubectl apply -f ingress.yaml
ingress.extensions/myingress created
</code></pre>

<h3>What confuses me</h3>

<p>Unfortunately, I´m not able to find my ingress-nginx service.</p>

<pre><code>$ sudo kubectl get svc
NAME           TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)   AGE
app0-service   ClusterIP   10.0.28.3      &lt;none&gt;        80/TCP    3m48s
app1-service   ClusterIP   10.0.226.249   &lt;none&gt;        80/TCP    3m47s
kubernetes     ClusterIP   10.0.0.1       &lt;none&gt;        443/TCP   39m
</code></pre>

<p>But my ingress is running:</p>

<pre><code>$ sudo kubectl get ingress
NAME        HOSTS   ADDRESS         PORTS   AGE
myingress   *       23.97.xxx.xxx   80      54m
</code></pre>

<p>In browser 23.97.xxx.xxx works partly.</p>

<p>1) If I proxy a domain name to 23.97.xxx.xxx, the domain in a browser will be rewritten by the IP.</p>

<p>2) If I try to browse directly to subroute like 23.97.xxx.xxx/app1/page1. I get every time the main page of app1.</p>

<p>I expected to get an IP from my ingress-service. Because I want to update this IP address by adding loadbalancerIP to spec in cloud-generic.yaml.
(like <a href="https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/static-ip/static-ip-svc.yaml" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/static-ip/static-ip-svc.yaml</a>).</p>

<p>Is my IP from ingress the right one to use? And why I can´t find my ingress-service?</p>

Nico Schuck
<p>Looking at service <code>yaml</code> at <a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml" rel="nofollow noreferrer">https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml</a> you can see it's get created in namespace <code>ingress-nginx</code>.</p>

<p>You should be able to get your service by running:</p>

<pre><code>kubectl get service -n ingress-nginx 
</code></pre>

<p>You can also get all services by running <code>kubectl get service --all-namespaces</code>.</p>
