Skip to content

Commit 02492dc

Browse files
author
wlanboy
committed
added pod command
1 parent 75db405 commit 02492dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ curl -L -X POST 'http://127.0.0.1:8080/client' -H 'Content-Type: application/jso
3232
```bash
3333
curl -fsSL https://raw.githubusercontent.com/metalbear-co/mirrord/main/scripts/install.sh | bash
3434

35+
POD=$(kubectl get pod -n javahttpclient -l app=javahttpclient -o jsonpath='{.items[0].metadata.name}')
36+
3537
mirrord exec -n javahttpclient --target deployment/javahttpclient -- mvn spring-boot:run
3638

39+
mirrord exec -n javahttpclient --target pod/$POD -- java -jar target/javahttpclient-0.0.1-SNAPSHOT.jar
40+
3741
mirrord exec -n javahttpclient --target deployment/javahttpclient -- java -jar target/javahttpclient-0.0.1-SNAPSHOT.jar
3842

3943
```

0 commit comments

Comments
 (0)