<p>Trying to get <a href="https://github.com/thingsboard/thingsboard/blob/release-2.3/k8s/thingsboard.yml" rel="noreferrer">ThingsBoard</a> running on google cloud. </p>

<p>I am now seeing the following error:</p>

<blockquote>
  <p>Error during sync: error running load balancer syncing routine:
  loadbalancer thingsboard-tb-ingress--013d7ab9087175d7 does not exist:
  CreateUrlMap: googleapi: Error 400: Invalid value for field
  'resource': '{ "name":
  "k8s-um-thingsboard-tb-ingress--013d7ab9087175d7", "hostRule": [{
  "host": ["*"], "...'. Invalid path pattern, invalid</p>
</blockquote>

<p>kubectl describe ingress gives me the following:</p>

<pre><code>Name:             tb-ingress
Namespace:        thingsboard
Address:
Default backend:  default-http-backend:80 (10.52.0.5:8080)
Rules:
  Host  Path  Backends
  ----  ----  --------
  *
        /api/v1/.*            tb-http-transport:http (&lt;none&gt;)
        /static/rulenode/.*   tb-node:http (&lt;none&gt;)
        /static/.*            tb-web-ui:http (&lt;none&gt;)
        /index.html.*         tb-web-ui:http (&lt;none&gt;)
        /                     tb-web-ui:http (&lt;none&gt;)
        /.*                   tb-node:http (&lt;none&gt;)
Annotations:
  kubectl.kubernetes.io/last-applied-configuration:  {"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{"nginx.ingress.kubernetes.io/proxy-read-timeout":"3600","nginx.ingress.kubernetes.io/ssl-redirect":"false","nginx.ingress.kubernetes.io/use-regex":"true"},"name":"tb-ingress","namespace":"thingsboard"},"spec":{"rules":[{"http":{"paths":[{"backend":{"serviceName":"tb-http-transport","servicePort":"http"},"path":"/api/v1/.*"},{"backend":{"serviceName":"tb-node","servicePort":"http"},"path":"/static/rulenode/.*"},{"backend":{"serviceName":"tb-web-ui","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-node","servicePort":"http"},"path":"/.*"}]}}]}}

  nginx.ingress.kubernetes.io/proxy-read-timeout:  3600
  nginx.ingress.kubernetes.io/ssl-redirect:        false
  nginx.ingress.kubernetes.io/use-regex:           true
Events:
  Type     Reason  Age               From                     Message
  ----     ------  ----              ----                     -------
  Warning  Sync    3m (x28 over 1h)  loadbalancer-controller  Error during sync: error running load balancer syncing routine: loadbalancer thingsboard-tb-ingress--013d7ab9087175d7 does not exist: CreateUrlMap: googleapi: Error 400: Invalid value for field 'resource': '{  "name": "k8s-um-thingsboard-tb-ingress--013d7ab9087175d7",  "hostRule": [{    "host": ["*"],    "...'. Invalid path pattern, invalid
</code></pre>

<p>What am I missing here?</p>

ThomasVdBerge
<p>I forgot to specify kubernetes.io/ingress.class: "nginx" annotation. If you don't specify any kubernetes.io/ingress.class - GKE will consider using its own ingress which does not support regexps and gives the error mentioned.</p>
