Register Cluster
This is a method of deploying a reverse proxy service in the managed cluster, where the managed cluster actively initiates registration requests to the platform.
TOC
Prerequisites
-
Depending on the type of managed cluster, the versions and parameters of Kubernetes and other components on the managed cluster must meet the Version and Parameter Requirements for Managed Clusters.
-
The image registry must support HTTPS access and provide a valid TLS certificate authenticated by a public certification authority. If this cannot be met, refer to the FAQ How to Trust Insecure Image Registries?
Note: The Public Registry provided by the platform on the public network already meets HTTPS access requirements. You only need to verify whether the Platform Default and Private Registry support HTTPS access.
-
If the runtime component of the cluster to be connected is Containerd, you need to modify the Containerd configuration before connecting the cluster to ensure successful deployment of distributed storage.
Important Notes
The platform's network card traffic monitoring recognizes network cards with names matching eth\.\|en\.\|wl\.*\|ww\.* by default. Therefore, if you use network cards with other naming conventions, please refer to the Collecting Network Data from Custom Named Network Cards documentation to modify the corresponding resources after cluster connection, ensuring the platform can properly monitor network card traffic.
Register Cluster
-
In the left navigation bar, click Clusters > Clusters.
-
Click Managed Clusters > Register Cluster.
-
Configure the registry parameters for storing platform component images required by the registered cluster according to the following instructions.
-
Click Create, obtain the registration command on the Registration Command page and run the command in the cluster to be registered.
Note: The registration command is valid for 24 hours. Please re-obtain it after expiration.
View Registration Command
You can find the cluster waiting for registration in the cluster list and click View Registration Command. Please perform the registration operation before the expiration time.
FAQ
How to Resolve Distributed Storage Deployment Failure When the Runtime Component of the Connected Cluster is Containerd?
When the runtime component of the connected cluster is Containerd, distributed storage deployment will fail. To resolve this issue, you need to manually modify the Containerd configuration information on all nodes of the cluster and restart Containerd.
Note: If you modify the Containerd configuration by following the steps below before deploying distributed storage, you do not need to execute step four.
-
Log in to the cluster node and edit the
/etc/systemd/system/containerd.servicefile, changing theLimitNOFILEparameter value to1048576. -
Execute the command
systemctl daemon-reloadto reload the configuration. -
Execute the command
systemctl restart containerdto restart Containerd. -
Execute the command
kubectl delete pod --all -n rook-cephon the cluster control node to restart all Pods in the rook-ceph namespace to make the configuration effective.