From 01791a176fbe99af92c62c42fb4aea8424ae213a Mon Sep 17 00:00:00 2001 From: RainbowMango Date: Thu, 2 Jun 2022 20:07:47 +0800 Subject: [PATCH] Add example of ResourceRegistry Signed-off-by: RainbowMango --- artifacts/example/resourceregistry.yaml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 artifacts/example/resourceregistry.yaml diff --git a/artifacts/example/resourceregistry.yaml b/artifacts/example/resourceregistry.yaml new file mode 100644 index 000000000..ca147d96d --- /dev/null +++ b/artifacts/example/resourceregistry.yaml @@ -0,0 +1,31 @@ +apiVersion: search.karmada.io/v1alpha1 +kind: ResourceRegistry +metadata: + name: foo +spec: + resourceSelectors: + # cache Deployments from all namespaces + - apiVersion: apps/v1 + kind: Deployment + # cache resources from cluster list + targetCluster: + clusterNames: + - member1 + - member2 + # store the cached resources to OpenSearch. + backendStore: + openSearch: + addresses: + - http://10.240.0.100:9200 + secretRef: + namespace: default + name: opensearch-account +--- +apiVersion: v1 +kind: Secret +metadata: + name: opensearch-account + namespace: default +stringData: + username: admin + password: dummy