Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGINX Ingress controller 0.48.1 does not support Kubernetes 1.22.3 #4486

Closed
ljmict opened this issue Nov 29, 2021 · 3 comments
Closed

NGINX Ingress controller 0.48.1 does not support Kubernetes 1.22.3 #4486

ljmict opened this issue Nov 29, 2021 · 3 comments

Comments

@ljmict
Copy link

ljmict commented Nov 29, 2021

I installed Kubersphere 3.2.0. When I enable the project gateway, Kubesphere will create an Nginx Ingress Controller. When I check the log, the error message is as follows:

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

 NGINX Ingress controller

   Release:       v0.48.1

   Build:         30809c066cd027079cbb32dccc8a101d6fbffdcb

   Repository:    https://github.com/kubernetes/ingress-nginx

   nginx version: nginx/1.20.1

 

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

 

 I1129 09:18:44.077622       7 flags.go:211] "Watching for Ingress" class="nginx"

 W1129 09:18:44.077807       7 flags.go:216] Ingresses with an empty class will also be processed by this Ingress controller

 W1129 09:18:44.079148       7 client_config.go:614] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.

 I1129 09:18:44.079885       7 main.go:241] "Creating API client" host="https://10.96.0.1:443"

 I1129 09:18:44.098439       7 main.go:285] "Running in Kubernetes cluster" major="1" minor="22" git="v1.22.3" state="clean" commit="c92036820499fedefec0f847e2054d824aea6cd1" platform="linux/amd64"

 I1129 09:18:44.286102       7 main.go:105] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem"

 I1129 09:18:44.288720       7 main.go:115] "Enabling new Ingress features available since Kubernetes v1.18"

 W1129 09:18:44.292505       7 main.go:127] No IngressClass resource with name nginx found. Only annotation will be used.

 I1129 09:18:44.358765       7 nginx.go:254] "Starting NGINX Ingress controller"

 I1129 09:18:44.408676       7 event.go:282] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"kubesphere-controls-system", Name:"kubesphere-router-kubesphere-system", UID:"5af19877-6ca7-49cd-ad57-3c8288574c87", APIVersion:"v1", ResourceVersion:"7526978", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap kubesphere-controls-system/kubesphere-router-kubesphere-system

 E1129 09:18:45.467401       7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

 E1129 09:18:47.072284       7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

 E1129 09:18:49.919647       7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

 E1129 09:18:54.422136       7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

The Kubernetes version I use is 1.22.3

Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:41:28Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:35:25Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}

The way I thought was to replace kubesphere/nginx-ingress-controller:v0.48.1 with k8s.gcr.io/ingress-nginx/controller:v1.1.0, but it did not take effect.

@RolandMa1986
Copy link
Member

RolandMa1986 commented Nov 29, 2021

/kind feature-request
/area microservice

This is a known issue. we are planning to upgrade the nginx ingress controller.

@RolandMa1986
Copy link
Member

/duplicate
/close

@ks-ci-bot
Copy link
Collaborator

@RolandMa1986: Closing this issue.

In response to this:

/duplicate
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants