Skip to content

Commit 71d4868

Browse files
committed
add mirror use case
Signed-off-by: Michael Kalantar <[email protected]>
1 parent 4bdb419 commit 71d4868

File tree

16 files changed

+610
-0
lines changed

16 files changed

+610
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
# Cleanup application
3+
kubectl -n modelmesh-serving delete isvc/wisdom-primary isvc/wisdom-candidate
4+
# Cleanup routemap
5+
kubectl delete cm/wisdom
6+
# Cleanup networking
7+
kubectl delete svc/wisdom vs/wisdom
8+
# Cleanup sleep utility
9+
kubectl delete deploy/sleep cm/wisdom-input
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
# First, get $SLEEP_POD
3+
SLEEP_POD=$(kubectl get pod --sort-by={metadata.creationTimestamp} -l app=sleep -o jsonpath={.items..metadata.name} | rev | cut -d' ' -f 1 | rev)
4+
# Second, exec into it
5+
kubectl exec --stdin --tty "${SLEEP_POD}" -c sleep -- /bin/sh
6+
# Third, cd wisdom && source query.sh in order to query wisdom

0 commit comments

Comments
 (0)