kubernetes / ingress-nginx

Ingress NGINX Controller for Kubernetes
https://kubernetes.github.io/ingress-nginx/
Apache License 2.0
17.58k stars 8.27k forks source link

Controller does not recreate removed ingress-nginx-controller service of LoadBalancer type, nor if removed its LB #9525

Closed bd-spl closed 1 year ago

bd-spl commented 1 year ago

What happened:

Ingress Nginx Controller does not recreate removed ingress-nginx-controller service of LoadBalancer type, nor the LB itself. The service needs to be recreated in order to apply changed annotations, for example, from internal to internet-facing LB type.

What you expected to happen:

If the service and/or LB removed manually, controller recreates it back. If annotation change for the service, controller recreates the service and/or its LB.

NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):

NGINX Ingress controller
  Release:       v1.5.2
  Build:         e0733c7fd0520ec8d7f351ca49b09199d35d35df
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.21.6

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.7-eks-4721010", GitCommit:"b77d9473a02fbfa834afa67d677fd12d690b195f", GitTreeState:"clean", BuildDate:"2022-06-27T22:22:16Z", GoVersion:"go1.17.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.13-eks-fb459a0", GitCommit:"55bd5d5cb7d32bc35e4e050f536181196fb8c6f7", GitTreeState:"clean", BuildDate:"2022-10-24T20:35:40Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}

Environment:

How to reproduce this issue:

Remove the LB service: kubectl delete svc/ingress-nginx-controller -n ingress-nginx, or its managed LB in AWS console/UI

Anything else we need to know:

k8s-ci-robot commented 1 year ago

@bd-spl: This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
bd-spl commented 1 year ago

w/a: full redeploy of the ingress-nginx addon with helm

longwuyuan commented 1 year ago

/remove-kind bug

longwuyuan commented 1 year ago

I will close for now. Please re-open when required. /close

k8s-ci-robot commented 1 year ago

@longwuyuan: Closing this issue.

In response to [this](https://github.com/kubernetes/ingress-nginx/issues/9525#issuecomment-1399884327): >I will close for now. Please re-open when required. >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.