Step1 : Install community operator from OperatorHub.io
Step2 : Create a Cluster Manager on console
Step3 : Install the managedcluster-import-controller from source files
Step4 : Manually register a cluster
We got error:
E0526 05:51:18.661381 1 lease_controller.go:127] unable to get cluster lease "managed-cluster-lease" on hub cluster: leases.coordination.k8s.io "managed-cluster-lease" is forbidden: User "system:open-cluster-management:cluster1:cv6xm" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "cluster1"
We fixed it by change all images version in the import.yaml from "latest" to "0.0.3" at Step4
This because hub is 0.0.3 (2.2), but add-on is latest (2.3), we cannot support to use a low version hub to work with high version add-on (the low version add-on can be worked with high version hub)
After processed these steps:
Step1 : Install community operator from OperatorHub.io Step2 : Create a Cluster Manager on console Step3 : Install the managedcluster-import-controller from source files Step4 : Manually register a cluster
We got error:
We fixed it by change all images version in the import.yaml from "latest" to "0.0.3" at Step4