<p>I have the following Ingress section:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: tb-ingress
  namespace: thingsboard
  annotations:
    nginx.ingress.kubernetes.io/use-regex: "true"
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
spec:
  rules:
  - http:
      paths:
      - path: /api/v1/.*
        backend:
          serviceName: tb-http-transport
          servicePort: http
      - path: /static/rulenode/.*
        backend:
          serviceName: tb-node
          servicePort: http
      - path: /static/.*
        backend:
          serviceName: tb-web-ui
          servicePort: http
      - path: /index.html.*
        backend:
          serviceName: tb-web-ui
          servicePort: http
      - path: /
        backend:
          serviceName: tb-web-ui
          servicePort: http
</code></pre>

<p>However, this does not seem to be working. GKE gives me an </p>

<blockquote>
  <p>Invalid path pattern, invalid</p>
</blockquote>

<p>error.</p>

<p>It seems to me, you forgot to specify <code>kubernetes.io/ingress.class: "nginx"</code> annotation. If you don't specify any <code>kubernetes.io/ingress.class</code> - GKE will consider using its own ingress which does not support regexps.</p>
