Open grzesuav opened 2 years ago
/kind feature
Thanks, I think it is a great idea. Do you expect that this will be implemented in clusteradm?
Actually no, it must be implemented in some watcher/controller in the hub cluster to dynamically watch which clusters are being created by ClusterAPI and take appropriate action
Looking at https://github.com/open-cluster-management-io/registration-operator I think it should be a companion operator for them, like setting up klusterjet
parton remote cluster and provide bootstrapping token
Yes, I think it is possible.
what would be steps/code to register managed cluster assuming we have user kubeconfig from Cluster API?
I think you want to look at registration controller: https://open-cluster-management.io/getting-started/core/register-cluster/#prerequisite
what would be steps/code to register managed cluster assuming we have user kubeconfig from Cluster API?
You can use the link Scott provided above. In summary:
If you are using our clusteradm
tool and you have ran the clusteradm init
command on the "hub" cluster and have the token output for managed cluster registration. You can then use clusteradm join --kubeconfig /path/to/managed_cluster_kubeconfig --hub-token <token_here> --hub-apiserver <https://apiserver_here> --cluster-name <cluster_name_of_your_choice> --wait
If you don't want to use clusteradm
cli tool. You can refer to https://github.com/open-cluster-management-io/registration-operator#deploy-hub-spoke-deployment In short it will,
open-cluster-management-agent
clusteradm
looks easier initial approach. Thanks
This issue is stale because it has been open for 120 days with no activity. After 14 days of inactivity, it will be closed. Remove the stable
label to prevent this issue from being closed.
This issue is stale because it has been open for 120 days with no activity. After 14 days of inactivity, it will be closed. Remove the stable
label to prevent this issue from being closed.
/assign
I will do some investigation on this.
We have a discussion on the last community meeting. There are some good points:
will do a demo in the following community meeting after 0.13.0 release
Proposal
Currently you can use
ClusterAPI
to spin up new kubernetes clusters. It has different provider implementations, however. most of them (I didn't checked all) provides CA secrets to access managed cluster. Having this, and having OCM in admin/hub cluster, it would be useful to automatically installklusterjet
agent of any new cluster and join them to the hub.