mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-20 16:14:23 +00:00
23 lines
560 B
Bash
Executable File
23 lines
560 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $(dirname ${BASH_SOURCE})
|
|
|
|
set -e
|
|
|
|
hubctx="kind-hub"
|
|
|
|
kubectl config use ${hubctx}
|
|
|
|
echo "Add cluster1, cluster2 to the clusterset"
|
|
|
|
kubectl label managedcluster cluster1 cluster.open-cluster-management.io/clusterset=app-demo --overwrite
|
|
kubectl label managedcluster cluster2 cluster.open-cluster-management.io/clusterset=app-demo --overwrite
|
|
|
|
echo "Label cluster1 so placement will select cluster1 only"
|
|
|
|
kubectl label managedcluster cluster1 purpose=test --overwrite
|
|
|
|
echo "Deploy the application with placement"
|
|
|
|
kubectl apply -f manifests/
|