File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,12 +267,12 @@ curl "http://localhost:8080/api/k8s/tls?url=https://my-service.default.svc.clust
267267# Install mirrord
268268curl -fsSL https://raw.githubusercontent.com/metalbear-co/mirrord/main/scripts/install.sh | bash
269269
270+ # Run with Maven (hot reload)
271+ mirrord exec -n clients --target deployment/javahttpclient --fs-mode=local -- mvn spring-boot:run
272+
270273# Look up the target pod
271274POD=$( kubectl get pod -n clients -l app=javahttpclient -o jsonpath=' {.items[0].metadata.name}' )
272275
273- # Run with Maven (hot reload)
274- mirrord exec -n clients --target deployment/javahttpclient -- mvn spring-boot:run
275-
276276# Run the packaged JAR against a specific pod
277277mirrord exec -n clients --target pod/$POD -- java -jar target/javahttpclient-0.0.1-SNAPSHOT.jar
278278
You can’t perform that action at this time.
0 commit comments