Awesome
How to use this addon
-
Deploy clusternet-hub on the OCM hub cluster
-
Deploy the clusternet-addon hub controller on the OCM hub cluster
kubectl apply -k deploy/config/manifests
- Create a clusternet ManagedCluster in the OCM managed cluster namespace (e.g.
cluster1
) on the OCM hub cluster
cat << EOF | kubectl apply -f -
apiVersion: clusters.clusternet.io/v1beta1
kind: ManagedCluster
metadata:
labels:
clusters.clusternet.io/cluster-id: cluster1
name: clusternet-cluster1
namespace: cluster1
spec:
clusterId: 00000000-0000-0000-0000-000000000000
syncMode: Dual
EOF
- Use clusternet proxy visiting your managed clusters with RBAC, refer to Visit ManagedCluster With RBAC. Note: The direct proxy path is not supported.