Отладка проблемы тайм-аута Kubernetes / GKE при создании входящего трафика с помощью ingress-nginx

Использование ingress-nginx v0.30 в кластере GKE не вызывает проблем с созданием входа с помощью команды kubectl apply -f. После обновления до ingress-nginx v0.31.1 была показана следующая ошибка:

Error from server (Timeout): error when creating "kubernetes/ingress.yaml": Timeout: request did not complete within requested timeout 30s

Вопросов:

  1. How to debug the timeout of this request?
    • There is no connection issue
    • тот же файл входа работает на v0.30
    • Stackdriver не показывает подсказки
  2. Есть ли способ увеличить время ожидания (например, с 30 до 60 секунд)?

--- Обновление №1 - прикрепите логи контроллера ingress-nginx ---

-------------------------------------------------------------------------------
NGINX Ingress controller
  Release:       0.31.1
  Build:         git-b68839118
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.17.10

-------------------------------------------------------------------------------

I0430 10:43:55.316136       6 flags.go:204] Watching for Ingress class: nginx
W0430 10:43:55.316577       6 flags.go:249] SSL certificate chain completion is disabled (--enable-ssl-chain-completion=false)
W0430 10:43:55.316748       6 client_config.go:543] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0430 10:43:55.316999       6 main.go:220] Creating API client for https://10.32.0.1:443
I0430 10:43:55.325457       6 main.go:264] Running in Kubernetes cluster version v1.15+ (v1.15.9-gke.24) - git (clean) commit 39e41a8d6b7221b901a95d3af358dea6994b4a40 - platform linux/amd64
I0430 10:43:55.623453       6 main.go:105] SSL fake certificate created /etc/ingress-controller/ssl/default-fake-certificate.pem
I0430 10:43:55.628959       6 ssl.go:528] loading tls certificate from certificate path /usr/local/certificates/cert and key path /usr/local/certificates/key
I0430 10:43:55.686051       6 nginx.go:263] Starting NGINX Ingress controller
I0430 10:43:55.739629       6 event.go:278] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"ingress-nginx", Name:"ingress-nginx-controller", UID:"dabd96c2-1027-4d90-82cd-9f77b11bdf26", APIVersion:"v1", ResourceVersion:"5294", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap ingress-nginx/ingress-nginx-controller
I0430 10:43:56.886801       6 nginx.go:307] Starting NGINX process
I0430 10:43:56.887408       6 nginx.go:327] Starting validation webhook on :8443 with keys /usr/local/certificates/cert /usr/local/certificates/key
I0430 10:43:56.887637       6 leaderelection.go:242] attempting to acquire leader lease  ingress-nginx/ingress-controller-leader-nginx...
I0430 10:43:56.888136       6 controller.go:139] Configuration changes detected, backend reload required.
I0430 10:43:56.903811       6 leaderelection.go:252] successfully acquired lease ingress-nginx/ingress-controller-leader-nginx
I0430 10:43:56.904281       6 status.go:86] new leader elected: ingress-nginx-controller-686c8db8cb-xwjm6
I0430 10:43:57.005488       6 controller.go:155] Backend successfully reloaded.
I0430 10:43:57.005534       6 controller.go:164] Initial sync, sleeping for 1 second.

person ChinKang    schedule 30.04.2020    source источник
comment
совместно использовать журналы модулей контроллера входящего трафика nginx   -  person Arghya Sadhu    schedule 30.04.2020
comment
вы выполнили обновление на месте или удалили старый контроллер входящего трафика и повторно развернули новую версию?   -  person Patrick W    schedule 01.05.2020
comment
Я установил v0.31.1 на новый кластер k8s .. в новом кластере только один входной контроллер   -  person ChinKang    schedule 02.05.2020
comment
Когда именно вы получите эту ошибку? потому что я видел, что вы разместили логи с nginx-31.1, чтобы вы могли его развернуть. Такое случается с любыми командами kubectl?   -  person Will R.O.F.    schedule 04.05.2020
comment
@willrof У меня возникла ошибка при попытке развернуть вход kind: Ingress с помощью команды kubectl apply.   -  person ChinKang    schedule 05.05.2020
comment
Я воспроизвел здесь 1.15.9-gke.24 с nginx-ingress 0.31.1 без тайм-аутов. Какая у вас версия GKE ?. Так же 4 дня назад заметил выпуск версии 0.32.0, стоит попробовать. Запустите kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.31.1/deploy/static/provider/cloud/deploy.yaml , чтобы удалить текущую версию и переустановить, как указано в Руководство по установке Nginx-Ingress.. и дайте мне знать, если это решено!   -  person Will R.O.F.    schedule 05.05.2020