<p>I'm using GCE ingress, and I need to redirect all HTTP traffic to HTPPS, I added a custom frontend configuration like the following:</p>
<pre><code>apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig
metadata:
  name: frontendconfig
spec:
  redirectToHttps:
    enabled: true
    responseCodeName: MOVED_PERMANENTLY_DEFAULT
</code></pre>
<p>I used this configuration in the ingress:</p>
<pre><code>apiVersion: &quot;networking.k8s.io/v1beta1&quot;
kind: &quot;Ingress&quot;
metadata:
  name: &quot;api-ingress&quot;
  namespace: &quot;default&quot;
  annotations:
    kubernetes.io/ingress.global-static-ip-name: &quot;STATIC_IP_NAME&quot;
    networking.gke.io/managed-certificates: &quot;CERTIFICATE_MANAGER_NAME&quot;
    networking.gke.io/v1beta1.FrontendConfig: &quot;frontendconfig&quot;
spec:
  rules:
    - host: PROJECT_URL
      http:
        paths:
          - path: /*
            backend:
              serviceName: &quot;api&quot;
              servicePort: 3000
</code></pre>
<p>But I see in the ingress logs errors:</p>
<pre><code>Error syncing to GCP: error running load balancer syncing routine: loadbalancer lo6kz19c-default-api-ingress-arsturnd does not exist: ensureRedirectUrlMap() = googleapi: Error 400: The url_map resource 'projects/******/global/urlMaps/k8s2-rm-lo6kz19c-default-api-ingress-arsturnd' is already being used by 'projects/******/global/targetHttpProxies/k8s2-tp-lo6kz19c-default-api-ingress-arsturnd', resourceInUseByAnotherResource
</code></pre>
<p>Updated: Solved
I found the issue, it was a duplicate entry from ingress in another file.</p>

Mhm0ud
<p>The issue has been resolved, the error was in the code(duplicate code), I was using another ingress in the same deployment but in another file with the same name of the existing ingress.</p>
