Gitlab helm installation not wokring on latest v1.22.3 kubernetes

Summary

Gitlab latest helm chart not working on latest kubernetes release v1.22.3

Steps to reproduce

install latest chart on v1.22.3 of Kubernetes and following pods will start crashing

  • gitlab-cainjector
  • gitlab-nginx-ingress-controller

Configuration used

default configurations are used

Current behavior

i just upgraded my Kubernetes release from v1.19 in 2 steps to v1.22.3 and the updated helm chart is not working with latest Kubernetes release It was working fine with v1.19.3 but now its broken and i cannot revert back to previous version

Expected behavior

Should install chart and all pods should work fine

Versions

Latest version

Relevant logs

gitlab-cainjector logs

I1109 16:53:06.202527       1 start.go:82] starting ca-injector v0.10.1 (revision 4aa10bedc)
F1109 16:53:09.722597       1 start.go:147] error registering core-only controllers: no matches for kind "MutatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1beta1"

ingress controller logs

NGINX Ingress controller
  Release:       v0.41.2
  Build:         d8a93551e6e5798fc4af3eb910cef62ecddc8938
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.19.4

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

W1109 16:51:33.654822       7 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This
might not work.
I1109 16:51:33.655579       7 main.go:241] "Creating API client" host="https://10.96.0.1:443"
I1109 16:51:33.672299       7 main.go:285] "Running in Kubernetes cluster" major="1" minor="22" git="v1.22.2" state="clean" commit="8b5a19147530eaac9476b0ab82980b4088bbc1b2" platform="linux/amd64"
I1109 16:51:33.679589       7 main.go:87] "Valid default backend" service="default/gitlab-ce-nginx-ingress-default-backend"
I1109 16:51:33.868966       7 main.go:105] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem"
I1109 16:51:33.873545       7 main.go:115] "Enabling new Ingress features available since Kubernetes v1.18"
E1109 16:51:33.876798       7 main.go:124] "Searching IngressClass" err="ingressclasses.networking.k8s.io \"gitlab-ce-nginx\" is forbidden: User \"system:serviceaccount:default:gitlab-ce-nginx-ingress\" cannot get resource \"ingressclasses\" in API group \"networking.k8s.io\" at the cluster scope" class="gitlab-ce-nginx"
W1109 16:51:33.876890       7 main.go:127] No IngressClass resource with name gitlab-ce-nginx found. Only annotation will be used.
I1109 16:51:33.938626       7 nginx.go:249] "Starting NGINX Ingress controller"
I1109 16:51:33.950044       7 event.go:282] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"default", Name:"gitlab-ce-nginx-ingress-controller", UID:"ca56a583-8c24-4c12-8465-5325fb390703", APIVersion:"v1", ResourceVersion:"115898976", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap default/gitlab-ce-nginx-ingress-controller
I1109 16:51:33.953549       7 event.go:282] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"default", Name:"gitlab-ce-nginx-ingress-tcp", UID:"0c69a743-a5a8-484e-9779-e52f00a12ef9", APIVersion:"v1", ResourceVersion:"131033328", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap default/gitlab-ce-nginx-ingress-tcp
E1109 16:51:35.041740       7 reflector.go:127] k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource
E1109 16:51:36.543964       7 reflector.go:127] k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource
E1109 16:51:38.264338       7 reflector.go:127] k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource
2021/11/09 16:51:38 Get "http://127.0.0.1:10246/nginx_status": dial tcp 127.0.0.1:10246: connect: connection refused
W1109 16:51:38.914747       7 nginx_status.go:172] unexpected error obtaining nginx status info: Get "http://127.0.0.1:10246/nginx_status": dial tcp 127.0.0.1:10246: connect: connection refused
E1109 16:51:42.242444       7 reflector.go:127] k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource
E1109 16:51:52.139556       7 reflector.go:127] k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource
E1109 16:52:04.994231       7 reflector.go:127] k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource
I1109 16:52:33.024861       7 main.go:187] "Received SIGTERM, shutting down"

Please give a fix for this

Edited by Hassnain Raza Alvi