You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I went through all the content and made the following changes:
- fixed typos
- reported some issues that were not that easy to fix (for instance the
use of dead punkapi.com in some sections)
- adjusted the first tutorials to use Jackson instead of JSON-B: we
recommend using Jackson. Also it avoids having to go back to switch
from JSON-B to Jackson when dealing with Spring
- the reactive sections are still using JSON-B for two reasons: they are
using some JSON-P features and I couldn't test things given the API is
not available. When reworking them, we should switch them to Jackson
too.
This is a bit massive, I will go through the changes and add comments
when they are needed.
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/04_panache.adoc
+24-25Lines changed: 24 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
:project-name: tutorial-app
4
4
5
5
[#quarkusp-demo-overview]
6
-
== Demo Overview
6
+
== Demo Overview
7
7
8
8
You'll learn how easy and productive Quarkus is with Hibernate with Panache. For this, we'll develop a simple CRUD REST API that handles information about fruits.
9
9
@@ -21,12 +21,12 @@ Just open a new terminal window, and make sure you're at the root of your `{proj
In this chapter we will push our newly built application to Kubernetes. If you don't have a Kubernetes instance at your disposal, you can create a free Openshift Sandbox instance on https://developers.redhat.com/developer-sandbox[developers.redhat.com/sandbox].
6
+
In this chapter we will push our newly built application to Kubernetes. If you don't have a Kubernetes instance at your disposal, you can create a free OpenShift Sandbox instance on https://developers.redhat.com/developer-sandbox[developers.redhat.com/sandbox].
7
7
8
8
9
-
10
-
IMPORTANT: You will need a public container registry to store your image. If you don't have an account, we recommend to create a free account at http://quay.io[window=_blank].
9
+
10
+
IMPORTANT: You will need a public container registry to store your image. If you don't have an account, we recommend to create a free account at http://quay.io[window=_blank].
11
11
12
12
Our examples will be using the `quay.io` container registry and the `myrepo` organization, but you should change it to match your configuration.
13
13
14
14
== Adding the Kubernetes and Jib extensions
15
15
16
-
In this chapter we'll be using the Quarkus Kubernetes Extension to create the Kubernetes deployment file, and the Quarkus Jib Extension to create and push the container image to your container registry without the need of a local podman/docker instance.
16
+
In this chapter we'll be using the Quarkus Kubernetes extension to create the Kubernetes deployment file, and the Quarkus Jib Extension to create and push the container image to your container registry without the need of a local Podman/Docker instance.
NOTE: If you're having trouble with jib, you can also just use Docker/Podman to build & push. To do so, omit 'jib' from the command.
108
+
NOTE: If you're having trouble with Jib, you can also just use Docker/Podman to build and push. To do so, omit 'jib' from the command.
109
109
110
110
[.console-output]
111
111
[source,text]
@@ -127,9 +127,9 @@ NOTE: If you're having trouble with jib, you can also just use Docker/Podman to
127
127
128
128
== Deploy the application to your Kubernetes cluster
129
129
130
-
When a Kubernetes extension is present in the classpath, Quarkus will scaffold a Kubernetes deployment file in your target folder during the package phase. We can apply it to deploy the application to our Kubernetes cluster:
130
+
When a Kubernetes extension is present in the classpath, Quarkus will scaffold a Kubernetes deployment file in your `target/` folder during the package phase. We can apply it to deploy the application to our Kubernetes cluster:
131
131
132
-
NOTE: You will need the https://kubernetes.io/docs/tasks/tools/[kubectl] or oc cli tool installed locally for the apply command below. https://developers.redhat.com/blog/2021/04/21/access-your-developer-sandbox-for-red-hat-openshift-from-the-command-line#[Here are instructions] to install the oc tool and log in to your Openshift Sandbox. Hint: your favorite package manager (dnf/brew/choco) can likely be used for the installation. Eg. `dnf install kubectl` or `choco install kubernetes-client` or `choco install openshift-client`
132
+
NOTE: You will need the https://kubernetes.io/docs/tasks/tools/[kubectl] or `oc` cli tool installed locally for the apply command below. https://developers.redhat.com/blog/2021/04/21/access-your-developer-sandbox-for-red-hat-openshift-from-the-command-line#[Here are instructions] to install the `oc` tool and log in to your OpenShift Sandbox. Hint: your favorite package manager (dnf/brew/choco) can likely be used for the installation. Eg. `dnf install kubectl` or `choco install kubernetes-client` or `choco install openshift-client`
133
133
134
134
[tabs]
135
135
====
@@ -161,7 +161,7 @@ deployment.apps/tutorial-app created
161
161
----
162
162
163
163
164
-
With the Quarkus CLI tool deploying is even easier. Instead of the above `kubectl apply` command, you can simply run `quarkus deploy` to deploy the application to your cluster. If you don't have the kubectl or oc cli installed or are not sure how to log in to your cluster, just add `-Dquarkus.kubernetes-client.api-server-url={yourServerUrl} -Dquarkus.kubernetes-client.token={myToken}` to the below command.
164
+
With the Quarkus CLI tool, deploying is even easier. Instead of the above `kubectl apply` command, you can simply run `quarkus deploy` to deploy the application to your cluster. If you don't have the `kubectl` or `oc` CLI installed or are not sure how to log in to your cluster, just add `-Dquarkus.kubernetes-client.api-server-url={yourServerUrl} -Dquarkus.kubernetes-client.token={myToken}` to the below command.
165
165
[.console-input]
166
166
[source,bash,subs="+macros,+attributes"]
167
167
----
@@ -174,10 +174,10 @@ After the command has finished, you might need to wait a few more seconds until
174
174
175
175
[tabs]
176
176
====
177
-
Openshift Sandbox / Kubernetes on AWS::
177
+
OpenShift Sandbox / Kubernetes on AWS::
178
178
+
179
179
--
180
-
If using a hosted Kubernetes cluster like OpenShift (Sandbox) on AWS then use curl and the EXTERNAL-IP address with port `8080` or get it using `kubectl`:
180
+
If using a hosted Kubernetes cluster like OpenShift (Sandbox) on AWS then use `curl` and the `EXTERNAL-IP` address with port `8080` or get it using `kubectl`:
181
181
182
182
:tmp-service-exposed: tutorial-app
183
183
@@ -207,7 +207,7 @@ echo $IP:$PORT
207
207
Hosted::
208
208
+
209
209
--
210
-
If using a hosted Kubernetes cluster like OpenShift then use curl and the EXTERNAL-IP address with port `8080` or get it using `kubectl`:
210
+
If using a hosted Kubernetes cluster like OpenShift then use `curl` and the `EXTERNAL-IP` address with port `8080` or get it using `kubectl`:
211
211
212
212
:tmp-service-exposed: tutorial-app
213
213
@@ -237,18 +237,18 @@ curl $IP:$PORT/hello
237
237
Hello y'all!
238
238
----
239
239
240
-
If you're using the Openshift Sandbox UI, you can also find the application running in the "Topology" view as seen in the screenshot below:
240
+
If you're using the OpenShift Sandbox UI, you can also find the application running in the "Topology" view as seen in the screenshot below:
0 commit comments