Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocateLoadBalancerNodePorts errors on K8s 1.22 #71

Open
roothorp opened this issue Oct 19, 2021 · 0 comments
Open

allocateLoadBalancerNodePorts errors on K8s 1.22 #71

roothorp opened this issue Oct 19, 2021 · 0 comments

Comments

@roothorp
Copy link

roothorp commented Oct 19, 2021

Installing 2.3 with helm on a 1.22 cluster causes an error:
{"level":"info","ts":1634652530.9705253,"logger":"cluster","msg":"Reconciliation failed","cluster":"default/cb-couchbase-cluster","error":"Service \"cb-couchbase-cluster-ui\" is invalid: spec.allocateLoadBalancerNodePorts: Forbidden: may only be used when `type` is 'LoadBalancer'","stack":"github.com/couchbase/couchbase-operator/pkg/util/k8sutil.reconcileService\n\tgithub.com/couchbase/couchbase-operator/pkg/util/k8sutil/services.go:531\ngithub.com/couchbase/couchbase-operator/pkg/util/k8sutil.ReconcileAdminConsole\n\tgithub.com/couchbase/couchbase-operator/pkg/util/k8sutil/services.go:440\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcileAdminService\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:267\ngithub.com/couchbase/couchbase-operator/pkg/cluster.reconcileFuncList.run\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:45\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:104\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).runReconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:482\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).Update\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:525\ngithub.com/couchbase/couchbase-operator/pkg/controller.(*CouchbaseClusterReconciler).Reconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/controller/controller.go:90\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214"}

This does not occur on 1.20 or 1.21, so may be due to an API change between these versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant