Pod disruption budget not created
Summary
Pod disruption budgets(PDB's) are configured in GitLab CR, but don't get applied accordingly, unless configuration used provided by the docs:
- https://docs.gitlab.com/charts/charts/gitlab/webservice/
- https://docs.gitlab.com/charts/charts/globals/#configure-poddisruptionbudget-settings
Steps to reproduce
- Create and apply CR manifest
Configuration used
spec:
chart:
values:
gitlab:
webservice:
deployments:
default:
ingress:
path: /
pdb:
minAvailable: 1
global:
pdb:
apiVersion: "policy/v1"
version: 8.10.1
Current behavior
No PDB is created. Events, operator logging or kube-apiserver logging don't mention anything about PDBs or configuration mismatches.
kubectl get poddisruptionbudget -n example
No resources found in example namespace.
Expected behavior
PDB for gitlab-webservice
Versions
- Operator: 1.11.1
- Platform:
- Self-hosted: OpenShift
- Kubernetes: (
kubectl version)- Client: v1.26.1
- Server: v1.31.5
Relevant logs
{"level":"info","ts":1744794530.1493142,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794530.1624258,"logger":"template","msg":"Rendering a new template.","namespace":"example","releaseName":"gitlab","hash":"b236d44d-ca29-4acf-8d88-1cf1a0ee0735-27"}
{"level":"info","ts":1744794551.7093837,"msg":"Warning: Reconciler returned both a non-zero result and a non-nil error. The result will always be ignored if the error is non-nil and the non-nil error causes requeuing with exponential backoff. For more details, see: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler","controller":"gitlab","controllerGroup":"apps.gitlab.com","controllerKind":"GitLab","GitLab":{"name":"gitlab","namespace":"example"},"namespace":"example","name":"gitlab","reconcileID":"4fb44b52-7604-41f9-9992-279e989dcd6a"}
{"level":"error","ts":1744794551.7524521,"msg":"Reconciler error","controller":"gitlab","controllerGroup":"apps.gitlab.com","controllerKind":"GitLab","GitLab":{"name":"gitlab","namespace":"example"},"namespace":"example","name":"gitlab","reconcileID":"4fb44b52-7604-41f9-9992-279e989dcd6a","error":"Job.batch \"gitlab-shared-secrets-30e7b88\" not found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.3/pkg/internal/controller/controller.go:341\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.3/pkg/internal/controller/controller.go:288\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.3/pkg/internal/controller/controller.go:249"}
{"level":"info","ts":1744794551.7526321,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794551.7704291,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794551.8891919,"logger":"controllers.GitLab","msg":"shared secrets Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794561.889805,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794561.9053645,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794561.9544072,"logger":"controllers.GitLab","msg":"shared secrets Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794571.9550571,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.0529733,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794572.1799688,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.2147741,"msg":"Warning: Reconciler returned both a non-zero result and a non-nil error. The result will always be ignored if the error is non-nil and the non-nil error causes requeuing with exponential backoff. For more details, see: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler","controller":"gitlab","controllerGroup":"apps.gitlab.com","controllerKind":"GitLab","GitLab":{"name":"gitlab","namespace":"example"},"namespace":"example","name":"gitlab","reconcileID":"96078af1-20a3-4bd3-be2d-fca6644b862f"}
{"level":"error","ts":1744794572.214797,"msg":"Reconciler error","controller":"gitlab","controllerGroup":"apps.gitlab.com","controllerKind":"GitLab","GitLab":{"name":"gitlab","namespace":"example"},"namespace":"example","name":"gitlab","reconcileID":"96078af1-20a3-4bd3-be2d-fca6644b862f","error":"Job.batch \"gitlab-migrations-d9d5643-35-27\" not found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.3/pkg/internal/controller/controller.go:341\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.3/pkg/internal/controller/controller.go:288\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.3/pkg/internal/controller/controller.go:249"}
{"level":"info","ts":1744794572.2155716,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.2665992,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794572.468294,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.4697466,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.4698226,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.5541525,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794572.6788292,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794572.6802578,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794582.4699972,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794582.4874983,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794582.6756248,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794582.6773546,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794592.677749,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794592.6955884,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794592.8690174,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794592.8705525,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794602.8718145,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794602.886934,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794603.0709713,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794603.0725682,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794613.073509,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794613.091371,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794613.553389,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794613.5616784,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794623.5626502,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794623.5788522,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794623.7712562,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794623.773414,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794633.7737002,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794633.7890565,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794633.9735086,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794633.975824,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794643.9765482,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794643.9908948,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794644.1730263,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794644.174647,"logger":"controllers.GitLab","msg":"migrations Job not yet finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794654.175394,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794654.19076,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794654.3688722,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794654.3708532,"logger":"controllers.GitLab","msg":"ensuring Webservice and Sidekiq are reconciled if enabled","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794654.5698266,"logger":"controllers.GitLab","msg":"object deleted","gitlab":{"name":"gitlab","namespace":"example"},"kind":"batch/v1, Kind=Job","name":"gitlab-shared-secrets-3330527"}
{"level":"info","ts":1744794654.583625,"logger":"controllers.GitLab","msg":"object deleted","gitlab":{"name":"gitlab","namespace":"example"},"kind":"batch/v1, Kind=Job","name":"gitlab-migrations-d9d5643-35-26"}
{"level":"info","ts":1744794654.5970333,"logger":"controllers.GitLab","msg":"GitLab is running and available to accept requests","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794659.608008,"logger":"controllers.GitLab","msg":"reconciling GitLab","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794659.6224875,"logger":"controllers.GitLab","msg":"GitLab is initializing","gitlab":{"name":"gitlab","namespace":"example"},"operation":"install","current version":"8.10.1","desired version":"8.10.1"}
{"level":"info","ts":1744794659.7727115,"logger":"controllers.GitLab","msg":"ensuring migrations Job has finished","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794659.7741885,"logger":"controllers.GitLab","msg":"ensuring Webservice and Sidekiq are reconciled if enabled","gitlab":{"name":"gitlab","namespace":"example"}}
{"level":"info","ts":1744794659.966702,"logger":"controllers.GitLab","msg":"GitLab is running and available to accept requests","gitlab":{"name":"gitlab","namespace":"example"}}