You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to upgrade Pulsar version after upgrading kubernetes to 1.25.0
$ microk8s kubectl get nodes
NAME STATUS ROLES AGE VERSION
centos8vm02 Ready <none> 348d v1.25.0
centos8vm03 Ready <none> 348d v1.25.0
centos8vm01 Ready <none> 348d v1.25.0
centos8vm04 Ready <none> 348d v1.25.0
$ microk8s.helm3 --namespace pulsar upgrade pulsar-mini apache/pulsar --version 2.9.4 -f pulsar.yaml
Error: UPGRADE FAILED: [resource mapping not found for name: "pulsar-mini-bookie" namespace: "pulsar" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "pulsar-mini-broker" namespace: "pulsar" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "pulsar-mini-proxy" namespace: "pulsar" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "pulsar-mini-zookeeper" namespace: "pulsar" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first]
I'm no kubernetes/helm expert, so may have done this incorrectly, but I pulled the chart from git, edited all policy/v1beta1 to policy/v1 and tried installing from local chart, but it still gave same errors.
The text was updated successfully, but these errors were encountered:
Fix should be straight forward. As workaround you can just disable the policy (do this for broker proxy and zookeeper) by
bookie:
pdb:
usePolicy: false
This worked for me. In the chart as PodDisruptionBudget has been moved out of beta and has been stable since v1.21 all the .pdb charts should look something like this
{{- if semverCompare ">=1.21" .Capabilities.KubeVersion.GitVersion }}apiVersion: policy/v1{{- else }}apiVersion: policy/v1beta1{{- end }}kind: PodDisruptionBudget
Haven't tested this yet. But it should work. Are you sure you caught all the deprecated policy/v1beta kinds?
I am unable to upgrade Pulsar version after upgrading kubernetes to 1.25.0
I'm no kubernetes/helm expert, so may have done this incorrectly, but I pulled the chart from git, edited all
policy/v1beta1
topolicy/v1
and tried installing from local chart, but it still gave same errors.The text was updated successfully, but these errors were encountered: