The logging-ocm-addon is a pluggable addon working on OCM rebased on the extensibility provided by addon-framework which automates the installation of cluster-logging-operator and configuration of ClusterLogForwarder on managed clusters to forward logs to a central log store.
The logging-ocm-addon consists of one component:
- Addon-Manager: Not only manages the installation of the AddOn on spoke clusters. But also builds the manifests that will be deployed to the spoke clusters.
To help demonstrate how the add on can be used we have prepared a demo that goes through all the necesssary steps, from provisioning clusters, to validating that the managed clusters are sending logs.
- OCM registration (>= 0.5.0)
- Install the AddOn using Kustomize
$ kubectl apply -k deploy/
- The addon should now be installed in you hub cluster
$ kubectl get ClusterManagementAddOn logging-ocm-addon
- The addon can now be installed it managed clusters by creating
ManagedClusterAddOn
resources in their respective namespaces