Asking for help? Comment out what you need so we can get more information to help you!
Kubernetes version: 1.22.1
Cloud being used: bare-metal
Host OS: CentOS
CNI and version:
CRI and version:
I have Kubernetes cluster v1.22.1 set up in bare metal CentOS. I am facing a problem when I am setting up Nginx Ingress controller following the following link
I followed exactly the same in step 1 - 3, but got a CrashLoopBackOff error in nginx ingress controller pod. I checked the logs of the pod and found below
[root@dev1 deployments]# kubectl logs -n nginx-ingress nginx-ingress-5cd5c7549d-hw6l7 I0910 23:15:20.729196 1 main.go:271] Starting NGINX Ingress controller Version=1.12.1 GitCommit=6f72db6030daa9afd567fd7faf9d5fffac9c7c8f Date=2021-09-08T13:39:53Z PlusFlag=false W0910 23:15:20.770569 1 main.go:310] The '-use-ingress-class-only' flag will be deprecated and has no effect on versions of kubernetes >= 1.18.0. Processing ONLY resources that have the 'ingressClassName' field in Ingress equal to the class. F0910 23:15:20.774788 1 main.go:314] Error when getting IngressClass nginx: the server could not find the requested resource
I believe I have the IngressClass setup properly as shown in below
[root@dev1 deployments]# kubectl get IngressClass NAME CONTROLLER PARAMETERS AGE nginx nginx.org/ingress-controller <none> 2m12s
So I have no idea why it said Error when getting IngressClass nginx. Can anyone shed me some lights please?