<p>i set up a testservice in Kubernetes in my default namespace. Following this <a href="https://kubernetes.io/docs/tasks/access-application-cluster/service-access-application-cluster/" rel="nofollow noreferrer">Kubernetes Tutorial</a></p>

<pre><code>NAMESPACE     NAME                            TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
default       example-service                 NodePort       10.102.218.101   &lt;none&gt;        8080:30242/TCP               3h38m
</code></pre>

<p>A Curl to 
<code>curl http://my.server.com:30242</code> returns the correct output
==> <code>Hello Kubernetes!</code>
Now i want to setup an ingress which makes the application available on a different endpoint and without using the 30242 port.
So i set up an ingress </p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: 5ingress
  annotations:
    ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: my.server.com
    http:
      paths:
        - path: /testing
          backend:
            serviceName: example-service
            servicePort: 80
</code></pre>

<p>The Ingress is deployed but the new path is not working.
kubectl get ingress --all-namespaces</p>

<pre><code>kube-system   5ingress            my.server.com             80, 443   16m
</code></pre>

<p>A Curl to curl curl <a href="http://my.server.com/testing" rel="nofollow noreferrer">http://my.server.com/testing</a>
returns</p>

<pre><code>&lt;html&gt;
&lt;head&gt;&lt;title&gt;308 Permanent Redirect&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
&lt;center&gt;&lt;h1&gt;308 Permanent Redirect&lt;/h1&gt;&lt;/center&gt;
&lt;hr&gt;&lt;center&gt;nginx/1.15.10&lt;/center&gt;
&lt;/body&gt;
&lt;/html
</code></pre>

<p>></p>

<p>My expected output would be that curl <a href="http://my.server.com/testing" rel="nofollow noreferrer">http://my.server.com/testing</a> returns Hello Kubernetes! What do i miss and how can i solve it ?</p>

Mchoeti
<p>The first step will be correcting servicePort in your ingress spec.</p>

<p>Your  <code>example-service</code> is exposed on port <strong>8080</strong> while servicePort in the ingress definition is <strong>80</strong> .</p>

<p>Would be also good to see your ingress controller description if there's any</p>
