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
NOTE: You can also use Docker/Podman to build & push. To do so, just omit 'jib' from the command.
108
+
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.
109
109
110
110
[.console-output]
111
111
[source,text]
@@ -129,7 +129,7 @@ NOTE: You can also use Docker/Podman to build & push. To do so, just omit 'jib'
129
129
130
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.
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`
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:
167
165
[.console-input]
168
166
[source,bash,subs="+macros,+attributes"]
169
167
----
170
168
quarkus deploy
171
169
----
172
-
=====
173
170
174
-
You might need to wait a few seconds until your application is up and running. Once it is, let's get the url to test:
171
+
172
+
After the command has finished, you might need to wait a few more seconds until your application is up and running. Once it is, let's get the url to test. (command prompt and powershell users will need to tweak these commands a little bit)
175
173
176
174
177
175
[tabs]
@@ -239,6 +237,11 @@ curl $IP:$PORT/hello
239
237
Hello y'all!
240
238
----
241
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:
0 commit comments