title: Unable to create Ingress after nginx-ingress controller is created
body: <p>I am trying to create a static Internal Ingress in GKE. It seems that we don't have a direct way so. I have followed a workaround following <a href="https://stackoverflow.com/questions/62518176/how-to-set-static-internal-ip-to-the-gke-internal-ingress">How to set static internal IP to the GKE internal Ingress</a> .</p>
  <p>Here is the Ingress.yaml file that I am using to deploy some sample workloads and Ingress.</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: hello-app
  spec:
    selector:
      matchLabels:
        app: hello
    replicas: 3
    template:
      metadata:
        labels:
          app: hello
      spec:
        containers:
          - name: hello
            image: &quot;gcr.io/google-samples/hello-app:2.0&quot;
  ---
  apiVersion: v1
  kind: Service
  metadata:
    name: hello-service
    labels:
      app: hello
  spec:
    type: NodePort
    selector:
      app: hello
    ports:
      - name: hello-port
        port: 80
        targetPort: 8080
        protocol: TCP
  ---
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: hello-kubernetes-deployment
  spec:
    selector:
      matchLabels:
        greeting: hello
        department: kubernetes
    replicas: 3
    template:
      metadata:
        labels:
          greeting: hello
          department: kubernetes
      spec:
        containers:
          - name: hello-again
            image: &quot;gcr.io/google-samples/node-hello:1.0&quot;
            env:
              - name: &quot;PORT&quot;
                value: &quot;8080&quot;
  ---
  apiVersion: v1
  kind: Service
  metadata:
    name: hello-kubernetes
  spec:
    type: NodePort
    selector:
      greeting: hello
      department: kubernetes
    ports:
      - protocol: TCP
        port: 80
        targetPort: 8080
  
  ---
  apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: hello-ingress
    annotations:
      kubernetes.io/ingress.class: &quot;nginx&quot;
  spec:
    rules:
      - host:
        http:
          paths:
            - path: /
              backend:
                serviceName: hello-service
                servicePort: hello-port
            - path: /kube
              backend:
                serviceName: ....
                servicePort: ....
  </code></pre>
  <p>I am able to create Ingress only if have applied this Yaml to create &quot;hello-ingress&quot; first and nginx-ingress-controller.yaml (<a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud/deploy.yaml" rel="nofollow noreferrer">https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud/deploy.yaml</a>)later.
  But I am unable to make changes to &quot;hello-ingress&quot; like adding new backends.</p>
  <p>I am getting the following error with no other logs:
  <em>Error:
  Error from server (Timeout): error when creating &quot;ingress.yaml&quot;: Timeout: request did not complete within requested timeout 30s</em></p>
  <p>Please help me to fix this&gt;</p>
  <p>here are the logs:</p>
  <p>All commands ran successfully to install nginx-ingress controller. I don't see any change in the logs.</p>
  <p><strong>kubectl get svc -n ingress-nginx</strong></p>
  <pre><code>NAME                                 TYPE           CLUSTER-IP   EXTERNAL-IP    PORT(S)                      AGE
  ingress-nginx-controller             LoadBalancer   10.0.70.63   34.89.23.101   80:31487/TCP,443:30883/TCP   4m31s
  ingress-nginx-controller-admission   ClusterIP      10.0.70.77   &lt;none&gt;         443/TCP                      4m33s
  </code></pre>
  <p><strong>kubectl logs ingress-nginx-controller-7656c59dc4-lxzr8 -n ingress-nginx</strong></p>
  <pre><code>-------------------------------------------------------------------------------
  NGINX Ingress controller
    Release:       0.33.0
    Build:         git-589187c35
    Repository:    https://github.com/kubernetes/ingress-nginx
    nginx version: nginx/1.19.0
  
  -------------------------------------------------------------------------------
  
  I0626 12:37:33.117229       6 flags.go:204] Watching for Ingress class: nginx
  W0626 12:37:33.117726       6 flags.go:249] SSL certificate chain completion is disabled (--enable-ssl-chain-completion=false)
  W0626 12:37:33.117819       6 client_config.go:552] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
  I0626 12:37:33.118042       6 main.go:218] Creating API client for https://10.0.70.1:443
  I0626 12:37:33.129303       6 main.go:262] Running in Kubernetes cluster version v1.14+ (v1.14.10-gke.36) - git (clean) commit 34a615f32e9a0c9e97cdb9f749adb392758349a6 - platform linux/amd64
  I0626 12:37:33.423095       6 main.go:103] SSL fake certificate created /etc/ingress-controller/ssl/default-fake-certificate.pem
  I0626 12:37:33.427971       6 ssl.go:528] loading tls certificate from certificate path /usr/local/certificates/cert and key path /usr/local/certificates/key
  I0626 12:37:33.489675       6 nginx.go:263] Starting NGINX Ingress controller
  I0626 12:37:33.514359       6 event.go:278] Event(v1.ObjectReference{Kind:&quot;ConfigMap&quot;, Namespace:&quot;ingress-nginx&quot;, Name:&quot;ingress-nginx-controller&quot;, UID:&quot;b61c2d49-b7a9-11ea-b6c6-4201ac100064&quot;, APIVersion:&quot;v1&quot;, ResourceVersion:&quot;10997045&quot;, FieldPath:&quot;&quot;}): type: 'Normal' reason: 'CREATE' ConfigMap ingress-nginx/ingress-nginx-controller
  I0626 12:37:34.690278       6 nginx.go:307] Starting NGINX process
  I0626 12:37:34.690278       6 leaderelection.go:242] attempting to acquire leader lease  ingress-nginx/ingress-controller-leader-nginx...
  I0626 12:37:34.691363       6 nginx.go:327] Starting validation webhook on :8443 with keys /usr/local/certificates/cert /usr/local/certificates/key
  I0626 12:37:34.692058       6 controller.go:139] Configuration changes detected, backend reload required.
  I0626 12:37:34.702054       6 leaderelection.go:252] successfully acquired lease ingress-nginx/ingress-controller-leader-nginx
  I0626 12:37:34.702550       6 status.go:86] new leader elected: ingress-nginx-controller-7656c59dc4-lxzr8
  I0626 12:37:34.832600       6 controller.go:155] Backend successfully reloaded.
  I0626 12:37:34.832669       6 controller.go:164] Initial sync, sleeping for 1 second.
  </code></pre>
  <p><strong>kubectl apply -f ingress.yaml</strong></p>
  <pre><code>deployment.apps/hello-app created
  service/hello-service created
  Error from server (Timeout): error when creating &quot;ingress.yaml&quot;: Timeout: request did not complete within requested timeout 30s
  </code></pre>
  <p><strong>kubectl logs ingress-nginx-controller-7656c59dc4-lxzr8 -n ingress-nginx</strong></p>
  <pre><code>-------------------------------------------------------------------------------
  NGINX Ingress controller
    Release:       0.33.0
    Build:         git-589187c35
    Repository:    https://github.com/kubernetes/ingress-nginx
    nginx version: nginx/1.19.0
  
  -------------------------------------------------------------------------------
  
  I0626 12:37:33.117229       6 flags.go:204] Watching for Ingress class: nginx
  W0626 12:37:33.117726       6 flags.go:249] SSL certificate chain completion is disabled (--enable-ssl-chain-completion=false)
  W0626 12:37:33.117819       6 client_config.go:552] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
  I0626 12:37:33.118042       6 main.go:218] Creating API client for https://10.0.70.1:443
  I0626 12:37:33.129303       6 main.go:262] Running in Kubernetes cluster version v1.14+ (v1.14.10-gke.36) - git (clean) commit 34a615f32e9a0c9e97cdb9f749adb392758349a6 - platform linux/amd64
  I0626 12:37:33.423095       6 main.go:103] SSL fake certificate created /etc/ingress-controller/ssl/default-fake-certificate.pem
  I0626 12:37:33.427971       6 ssl.go:528] loading tls certificate from certificate path /usr/local/certificates/cert and key path /usr/local/certificates/key
  I0626 12:37:33.489675       6 nginx.go:263] Starting NGINX Ingress controller
  I0626 12:37:33.514359       6 event.go:278] Event(v1.ObjectReference{Kind:&quot;ConfigMap&quot;, Namespace:&quot;ingress-nginx&quot;, Name:&quot;ingress-nginx-controller&quot;, UID:&quot;b61c2d49-b7a9-11ea-b6c6-4201ac100064&quot;, APIVersion:&quot;v1&quot;, ResourceVersion:&quot;10997045&quot;, FieldPath:&quot;&quot;}): type: 'Normal' reason: 'CREATE' ConfigMap ingress-nginx/ingress-nginx-controller
  I0626 12:37:34.690278       6 nginx.go:307] Starting NGINX process
  I0626 12:37:34.690278       6 leaderelection.go:242] attempting to acquire leader lease  ingress-nginx/ingress-controller-leader-nginx...
  I0626 12:37:34.691363       6 nginx.go:327] Starting validation webhook on :8443 with keys /usr/local/certificates/cert /usr/local/certificates/key
  I0626 12:37:34.692058       6 controller.go:139] Configuration changes detected, backend reload required.
  I0626 12:37:34.702054       6 leaderelection.go:252] successfully acquired lease ingress-nginx/ingress-controller-leader-nginx
  I0626 12:37:34.702550       6 status.go:86] new leader elected: ingress-nginx-controller-7656c59dc4-lxzr8
  I0626 12:37:34.832600       6 controller.go:155] Backend successfully reloaded.
  I0626 12:37:34.832669       6 controller.go:164] Initial sync, sleeping for 1 second.
  </code></pre>