Skip to content

Commit 58e2c6a

Browse files
committed
📝 Tested and verified native mode in minikube and CRC
1 parent 3f1fb9f commit 58e2c6a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ Apr 05, 2022 1:32:52 PM io.quarkus.bootstrap.runner.Timing printStartupTime
2828
INFO: kafka-clients-quarkus-sample 2.7.5-SNAPSHOT on JVM (powered by Quarkus 2.7.5.Final) started in 1.359s. Listening on: http://0.0.0.0:8080
2929
```
3030

31+
But in 'native' mode, then the applications is a high-fast :rocket: starting in a few milliseconds.
32+
33+
```text
34+
2022-04-06 08:15:19,360 INFO [io.quarkus] (main) kafka-clients-quarkus-sample 2.7.5-SNAPSHOT native (powered by Quarkus 2.7.5.Final) started in 0.026s. Listening on: http://0.0.0.0:8080
35+
```
36+
3137
## :rocket: :sparkles: :rotating_light: QUARKUS EDITION :rotating_light: :sparkles: :rocket:
3238

3339
This sample project demonstrates how to use [Kafka Clients](https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients)
@@ -291,7 +297,7 @@ schemas used by this application:
291297

292298
To register the schemas in Service Registry running in Kubernetes:
293299

294-
```shell script
300+
```shell
295301
❯ ./mvnw clean generate-sources -Papicurio \
296302
-Dapicurio.registry.url=$(minikube service service-registry-deployment --url -n amq-streams-demo)/apis/registry/v2
297303
```
@@ -384,18 +390,18 @@ If you want to deploy the native version of this project:
384390
```shell
385391
eval $(minikube docker-env)
386392
❯ kubectl create -f src/main/k8s/role.yml
387-
❯ ./mvnw package k8s:resource k8s:build k8s:apply -Pnative,kubernetes
393+
❯ ./mvnw package k8s:resource k8s:build k8s:apply -Pnative,kubernetes -Dquarkus.native.container-build=true
388394
```
389395

390396
To deploy the application using the OpenShift Maven Plug-In (only valid for OpenShift Platform):
391397

392-
```shell script
398+
```shell
393399
❯ ./mvnw package oc:resource oc:build oc:apply -Popenshift
394400
```
395401

396402
If you want to deploy the native version of this project:
397403

398-
```shell script
404+
```shell
399405
❯ ./mvnw package oc:resource oc:build oc:apply -Pnative,openshift -Dquarkus.native.container-build=true
400406
```
401407

@@ -412,7 +418,7 @@ service.
412418

413419
To get the route the following command in OpenShift give you the host:
414420

415-
```shell script
421+
```shell
416422
❯ oc get route kafka-clients-quarkus-sample -o jsonpath='{.spec.host}'
417423
```
418424

img/ocp-application-topology.png

102 KB
Loading

0 commit comments

Comments
 (0)