Use the Verrazzano Console
To register a cluster, complete the following steps:
-
Enable
syncClusters
.
For information aboutsyncClusters
, see Enable syncClusters.kubectl apply -f - <<EOF apiVersion: install.verrazzano.io/v1beta1 kind: Verrazzano metadata: name: admin spec: profile: prod components: clusterOperator: overrides: - values: syncClusters: enabled: true EOF
-
On the admin cluster, open the Rancher console.
You can find the Rancher console URL for your cluster by following the instructions here. -
Select Cluster Management, and then click Import Existing Cluster.
-
Provide a name for your managed cluster, for example, managed1.
-
Optional. In your Verrazzano configuration, if you specified a cluster label selector, then under Labels & Annotations provide the
label
andvalue
for the cluster. Thelabel
andvalue
information must match the cluster selectionmatchExpression
in your Verrazzano configuration for selective cluster registration to occur. -
Click Create.
-
On the next screen, follow the on-screen instructions to complete the registration by running the provided command against the managed cluster.
After the cluster reaches the Active
state in the console, synchronization with Verrazzano will happen automatically and a VerrazzanoManagedCluster resource will be created in the verrazzano-mc
namespace.
Run the following command to view the details and status of Verrazzano’s multicluster initialization operations:
$ kubectl get vmc -n verrazzano-mc <Rancher_cluster_name> -o yaml
For more information, see Registering Existing Clusters in the Rancher documentation.
NOTE: You can also register managed clusters using kubectl
, see Register Managed Clusters using kubectl.
Next steps
- Verify your multicluster Verrazzano environment set up by following the instructions at Verify Multicluster Installation.
- Deploy multicluster example applications. See Examples of using Verrazzano in a multicluster environment.
NOTE
To deregister a managed cluster, see Deregister a Managed Cluster.Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.