Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
multicluster: Add (and use) deploy-MulticlusterService.sh (#3770)
Browse files Browse the repository at this point in the history
* multicluster: Add (and use) deploy-MulticlusterService.sh

Signed-off-by: Delyan Raychev <[email protected]>
  • Loading branch information
draychev authored Jul 16, 2021
1 parent 3fd5cd6 commit a9f2e21
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions demo/deploy-MultiClusterService.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

set -auexo pipefail

NS=bookstore
NAME=bookstore

kubectl delete MultiClusterService -n $NS $NAME || true

kubectl apply -f - <<EOF
apiVersion: config.openservicemesh.io/v1alpha1
kind: MultiClusterService
metadata:
namespace: $NS
name: $NAME
spec:
clusters:
- name: alpha
# TODO: This address and port number must be updated
address: 1.1.1.1:1111
- name: beta
# TODO: This address and port number must be updated
address: 2.2.2.2:2222
serviceAccount: bookstore-v1
EOF
4 changes: 4 additions & 0 deletions demo/run-osm-multicluster-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,8 @@ for CONTEXT in $MULTICLUSTER_CONTEXTS; do
else
./demo/deploy-traffic-target.sh
fi

# Create the MultiClusterService object.
./demo/deploy-MultiClusterService.sh

done

0 comments on commit a9f2e21

Please sign in to comment.