Upgrade from 6.3.3 to 6.4.6 or 6.11.13 is failing

I am using gitlab version 6.3.3 installed on kubernetes. Unfortunately we keep upgrading the kubernetes version and now it is the 1.28 version. We could not upgrade gitlab.

Now we plan to upgrade gitlab to the latest version by following upgrade path. But facing big problem “HorizontalPodAutoscaler”.

When we see the apiVersion of hpa using “kubectl get” command, it shows autoscaling/v2 but when we get manifest it shows autoscaling/v2beta2.

helm get manifest gitlab -n gitlab --revision 8 > gitlab-manifest.yaml

We did everything but following error is not being resolved. Please helm accordingly.

Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: [resource mapping not found for name: “gitlab-gitlab-shell” namespace: “gitlab” from “”: no matches for kind “HorizontalPodAutoscaler” in version “autoscaling/v2beta2”
ensure CRDs are installed first, resource mapping not found for name: “gitlab-kas” namespace: “gitlab” from “”: no matches for kind “HorizontalPodAutoscaler” in version “autoscaling/v2beta2”
ensure CRDs are installed first, resource mapping not found for name: “gitlab-sidekiq-all-in-1-v2” namespace: “gitlab” from “”: no matches for kind “HorizontalPodAutoscaler” in version “autoscaling/v2beta2”
ensure CRDs are installed first, resource mapping not found for name: “gitlab-webservice-default” namespace: “gitlab” from “”: no matches for kind “HorizontalPodAutoscaler” in version “autoscaling/v2beta2”
ensure CRDs are installed first]

I have no experience in making GitLab run on kubernetes - as our GitLab plays a role in bringing our k8s environment to life, we have chosen not to investigate running GitLab on that to avoid circular dependencies.

If you’re really running GitLab version 6.3.3, I predict that you’re in for rough ride - I guess that version is about 10 years old, it’s so old it’s not even on the “Historic releases” list on GitLab releases | GitLab, but it is in the Upgrade path tool.

The problem you’re seeing seems more about kubernetes than about GitLab, so you should probably ask somewhere dedicated to that rather than here, where we focus on GitLab.