mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-08 10:17:17 +00:00
9c4a96ba845e6192676b4fbece33fd39f8d7e520
registration-operator
Minimum cluster registration and work
Community, discussion, contribution, and support
Check the CONTRIBUTING Doc for how to contribute to the repo.
How to Deploy
Deploy all-in-one deployment on kind
- Create a kind cluster
kind create cluster --name cluster1 kind get kubeconfig --name cluster1 > ./.kubeconfig - Deploy all components on the kind cluster
export MANAGED_CLUSTER=cluster1 make deploy - To clean the environment, run
make clean-deploy
Deploy on OCP
- Deploy hub component
export OLM_NAMESPACE=openshift-operator-lifecycle-manager make deploy-hub - Deploy agent component
export KLUSTERLET_KUBECONFIG_CONTEXT={kube config context of managed cluster} export OLM_NAMESPACE=openshift-operator-lifecycle-manager make deploy-spoke - To clean the environment, run
make clean-hubandmake clean-spoke
What is next
After a successful deployment, a certificatesigningrequest and a managedcluster will
be created on the hub.
kubectl get csr
kubectl get managedcluster
Next approve the csr and set managecluster to be accepcted by hub with the following command
kubectl certificate approve {csr name}
kubectl patch managedcluster {cluster name} -p='{"spec":{"hubAcceptsClient":true}}' --type=merge
Security Response
If you've found a security issue that you'd like to disclose confidentially please contact Red Hat's Product Security team. Details at https://access.redhat.com/security/team/contact
License
This code is released under the Apache 2.0 license. See the file LICENSE for more information.
Description
Core components in the OCM project. Report here if you found any issues in OCM.
Languages
Go
98.8%
Makefile
0.5%
Shell
0.5%
Python
0.1%