stolostron Foundation supports some foundational components based ManagedCluster for ACM.
Check the CONTRIBUTING Doc for how to contribute to the repo.
This is a guide on how to build and deploy stolostron Foundation from code.
Run the following after cloning/pulling/making a change.
make images
make images
will build a new image named quay.io/stolostron/multicloud-manager:latest
.
Need to install Cluster Manager and Klusterlet before deploy Foundation components. The installation instruction is here.
Need to approve and accept the managed clusters registered to the Hub.
-
Approve CSR on Hub cluster.
MANAGED_CLUSTER=$(kubectl get managedclusters | grep cluster | awk '{print $1}') CSR_NAME=$(kubectl get csr |grep $MANAGED_CLUSTER | grep Pending |awk '{print $1}') kubectl certificate approve "${CSR_NAME}"
-
Accept Managed Cluster on Hub.
MANAGED_CLUSTER=$(kubectl get managedclusters | grep cluster | awk '{print $1}') kubectl patch managedclusters $MANAGED_CLUSTER --type merge --patch '{"spec":{"hubAcceptsClient":true}}'
-
Deploy foundation hub components on hub cluster and deploy foundation agent components on all managed clusters.
make deploy-foundation
```sh
make clean-foundation
```
If you've found a security issue that you'd like to disclose confidentially please contact Red Hat's Product Security team. Details at here.