Update templates/deployment.yaml to use `apps/v1`

extensions/v1beta1 has been deprecated for a while now.

Proposal

  • upgrade apiVersion of the deployment to apps/v1
  • spec.selector must match .spec.template.metadata.labels in apps/v1

Links

It is also causing issues such as https://gitlab.com/gitlab-org/gitlab-ce/issues/50186

Edited by Thong Kuah