Use the Verrazzano Console

Register managed clusters using the Verrazzano console

To register a cluster, complete the following steps:

  1. Enable syncClusters.
    For information about syncClusters, see Enable syncClusters.

    kubectl apply -f - <<EOF
    kind: Verrazzano
      name: admin
      profile: prod
          - values:
                enabled: true

  2. On the admin cluster, open the Rancher console.
    You can find the Rancher console URL for your cluster by following the instructions here.

  3. Select Cluster Management, and then click Import Existing Cluster.

  4. Provide a name for your managed cluster, for example, managed1.

  5. Optional. In your Verrazzano configuration, if you specified a cluster label selector, then under Labels & Annotations provide the label and value for the cluster. The label and value information must match the cluster selection matchExpression in your Verrazzano configuration for selective cluster registration to occur.

  6. Click Create.

  7. 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