mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-15 13:49:20 +00:00
53 lines
1.3 KiB
Markdown
53 lines
1.3 KiB
Markdown
# registration-operator
|
|
|
|
Minimum cluster registration and work
|
|
|
|
# How to Deploy
|
|
|
|
## Deploy all-in-one deployment on kind
|
|
|
|
1. Create a kind cluster
|
|
2. Deploy all compoenent on the kind cluster
|
|
```
|
|
export KIND_CLUSTER={kind cluster name}
|
|
make deploy
|
|
```
|
|
3. To clean the environment, run `make clean-deploy`
|
|
|
|
## Deploy on OCP
|
|
|
|
1. Deploy hub component
|
|
```
|
|
export OLM_NAMESPACE=openshift-operator-lifecycle-manager
|
|
make deploy-hub
|
|
```
|
|
2. Deploy agent component
|
|
```
|
|
export KLUSTERLET_KUBECONFIG_CONTEXT={kube config context of managed cluster}
|
|
export OLM_NAMESPACE=openshift-operator-lifecycle-manager
|
|
make deploy-spoke
|
|
```
|
|
3. To clean the environment, run `make clean-hub` and `make clean-spoke`
|
|
|
|
## What is next
|
|
|
|
After a successfull 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
|