Skip to content

Commit

Permalink
docs(getting-started): update sample app example (cryostatio#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed May 24, 2023
1 parent fad1058 commit 3c614ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions get-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ deployed Cryostat into a namespace where you are already running other
applications, feel free to continue to the next step.

```bash
$ oc new-app --docker-image=quay.io/andrewazores/quarkus-test:0.0.2
$ oc patch svc/quarkus-test -p '{"spec":{"$setElementOrder/ports":[{"port":9096},{"port":9999}],"ports":[{"name":"jfr-jmx","port":9096}]}}'
$ oc new-app --docker-image=quay.io/andrewazores/quarkus-test:0.0.10
$ oc patch svc/quarkus-test -p '{"spec":{"$setElementOrder/ports":[{"port":9097},{"port":8080}],"ports":[{"name":"jfr-jmx","port":9097}]}}'
```

This is a Quarkus container in JVM mode with JMX enabled and pre-configured to
listen on port 9096. After deploying the container we patch its service to
name the 9096 service port `jfr-jmx`. Cryostat will detect and use this port
listen on port 9097. After deploying the container we patch its service to
name the 9097 service port `jfr-jmx`. Cryostat will detect and use this port
to determine that this is a compatible Java application that it should monitor.

### Open the Cryostat Web UI
Expand Down

0 comments on commit 3c614ee

Please sign in to comment.