<blockquote>
  <p><strong>UPDATE:</strong> This problem solved itself. I can't tell why. I just tried again the next day and it worked with the config below.</p>
</blockquote>

<p>I'm using the <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">"ingress-nginx"</a> ingress controller (v. 0.12.0). It works fine except for <a href="https://github.com/kubernetes/ingress-nginx/blob/5c016bee873de5b83e6dad962f66e6a96cd73fa1/docs/user-guide/annotations.md#permanent-redirect" rel="nofollow noreferrer">permanent redirects</a>.</p>

<p>In order to redirect <code>foo.example.com</code> to <code>https://google.com</code> I applied the following ingress config:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    # nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/permanent-redirect: "https://google.com"
  name: redirect-test
  namespace: default
spec:
  rules:
  - host: foo.example.com
    http:
      paths:
      - backend:
          serviceName: default-backend 
          servicePort: 80
  tls:
  - hosts:
    - foo.example.com
    secretName: domains-tls
</code></pre>

<p>But if I enter <code>foo.example.com</code> in the browser I get this:</p>

<blockquote>
  <p>We're sorry, but we were unable to process the redirection request for the site you are attempting to access.</p>
  
  <p>If you feel that you are receiving this message in error, please check the URL and try your request again.</p>
  
  <p>UT</p>
  
  <p>(RF)</p>
</blockquote>

<p>Does anyone know what goes wrong here?</p>

<p>I had this same issue,</p>

<p>I fixed it by upgrading the nginx-ingress chart from <code>nginx-ingress-0.8.13</code> to <code>nginx-ingress-0.22.0</code></p>

<p>I assume the permanent redirect annotation <code>nginx.ingress.kubernetes.io/permanent-redirect</code> did not existed in <code>0.8.13</code>.</p>

<p>So either helm upgrade your chart or upgrade your nginx-ingress directly.</p>
