[Bug]: cluster does not start after adding the barman-cloud-plugin
Is there an existing issue already for this bug?
- [x] I have searched for an existing issue, and could not find anything. I believe this is a new bug.
I have read the troubleshooting guide
- [x] I have read the troubleshooting guide and I think this is a new bug.
I am running a supported version of CloudNativePG
- [x] I have read the troubleshooting guide and I think this is a new bug.
Contact Details
No response
Version
1.26.0-rc1
What version of Kubernetes are you using?
other (unsupported)
What is your Kubernetes environment?
Self-managed: kind (evaluation)
How did you install the operator?
YAML manifest
What happened?
I added the barman-cloud-plugin to the cluster spec and afterwards the cluster does not start any more
Cluster resource
...
plugins:
- name: barman-cloud.cloudnative-pg.io
isWALArchiver: true
parameters:
barmanObjectName: c800flo-store
...
Relevant log output
"error": "unable to create Pod: Pod \"cluster-1\" is invalid: spec.initContainers[1].startupProbe: Forbidden: may not be set for init containers without restartPolicy=Always",
"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:347\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:294\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:255"
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
@smiyc The sideCar containers need to work with kubernetes v1.29 and above, please check if your kubernetes version.
@litaocdl thanks a lot! We are using v1.28.7+vmware.1-fips.1
I'll PR to add the k8s version as a Prerequisite
I am seeing this same error on a Kubernetes cluster running Kubernetes 1.32
@smiyc did you then find a solution for this issue? facing the same issue
@skemil007 yes, when using k8s 1.29 or later the pugin works
@smiyc I am already using 1.30 k8 version and latest barman and cnpg operator version. Still facing issue
@skemil007 then open an new issue and/or ask at the community meeting