Skip to content

Commit

Permalink
Kubernetes deploy section for Quarkus app
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubois committed May 3, 2024
1 parent 27e0b4b commit 2f707e6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions documentation/modules/ROOT/pages/kubernetes-deploying.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ With the new connection to our Developer Sandbox cluster, you can easily deploy

== Deploying a Pod to Kubernetes

Let's begin by deploying the Flask & Redis container pod to the Developer Sandbox. In the *Pods* section of Podman Desktop, select the `summit-pod` you created earlier. Click on the *Deploy to Kubernetes* button from the top right corner menu.
Let's begin by deploying the Quarkus & Redis container pod to the Developer Sandbox. In the *Pods* section of Podman Desktop, select the `summit-pod` you created earlier. Click on the *Deploy to Kubernetes* button from the top right corner menu.

image::podman-desktop-deploy-to-kubernetes-button.png[Podman Desktop Deploy to Kubernetes, 600]

Expand All @@ -17,25 +17,25 @@ TIP: You can specify the Kubernetes context where you want to deploy the pod by

Podman Desktop will communicate with the Kubernetes API server and create the required resources in the cluster. You can monitor the deployment status, and when ready, access the deployed application using the provided URL.

image::podman-desktop-kubernetes-pod-details.png[Podman Desktop Kubernetes Pod Details, 600]
image::podman-desktop-kubernetes-pod-details2.png[Podman Desktop Kubernetes Pod Details, 600]

=== Accessing the Deployed Application

Once the pod is successfully deployed to Kubernetes, you can access the Flask application's endpoint directly from Podman Desktop.
Once the pod is successfully deployed to Kubernetes, you can access the Quarkus application's endpoint directly from Podman Desktop by clicking on the `summit-pod-8080` link.

image::podman-desktop-kubernetes-pod-exposed.png[Podman Desktop Kubernetes Pod Details, 600]

You should see the familiar Flask application with the Redis-backed counter, now running on the Developer Sandbox.
You should see the familiar Quarkus application with the Redis-backed counter, now running on the Developer Sandbox.

=== Scaling and Managing the Deployment

Kubernetes allows you to easily scale and manage your deployments. Back in Podman Desktop, select *Open in OpenShift console* from the right hand side to access the OpenShift console for the deployed pod.

image::podman-desktop-kubernetes-pod-openshift-console.png[Podman Desktop Kubernetes Pod OpenShift Console, 600]
image::podman-desktop-kubernetes-pod-openshift-console2.png[Podman Desktop Kubernetes Pod OpenShift Console, 600]

Now in the OpenShift console, you can view the details of the deployed pod, including its status, events, and logs.

image::podman-desktop-kubernetes-pod-openshift-console-details.png[Podman Desktop Kubernetes Pod OpenShift Console Details, 600]
image::podman-desktop-kubernetes-pod-openshift-console-details2.png[Podman Desktop Kubernetes Pod OpenShift Console Details, 600]

TIP: In the *Topology* view, you can also scale the deployment by adjusting the number of replicas and manage the pod's lifecycle.

Expand Down Expand Up @@ -65,4 +65,4 @@ If necessary, you can also perform a rollback to a previous version of the deplo

== Next Steps

Congratulations! You have successfully deployed a Flask + Redis application to Kubernetes using Podman Desktop. You have learned how to generate Kubernetes manifests, deploy pods, and manage your application in the Developer Sandbox.
Congratulations! You have successfully deployed a Quarkus + Redis application to Kubernetes using Podman Desktop. You have learned how to generate Kubernetes manifests, deploy pods, and manage your application in the Developer Sandbox.
2 changes: 1 addition & 1 deletion documentation/modules/ROOT/pages/kubernetes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ image::podman-desktop-devsandbox-cluster.png[Podman Desktop Developer Sandbox Cl

=== Managing Kubernetes Resources

NOTE: Because of the desktop environment, you won't be able to see the Kubernetes resources inferface. This information is just as a reference for later use.
NOTE: You may have to restart Podman Desktop after logging in to the Developer Sandbox before you can see the Kubernetes context and resources.

Podman Desktop provides a centralized interface for managing Kubernetes resources, including pods, services, deployments, and more. You can view and interact with Kubernetes objects directly from the Podman Desktop interface, although it's only visible once you have a connection to a Kubernetes cluster.

Expand Down
4 changes: 4 additions & 0 deletions documentation/modules/ROOT/pages/pods.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Pods offer several key advantages over running containers individually, includin

Podman Desktop's _Podify_ feature takes advantage of these pod benefits by simplifying the process of creating a pod from existing containers. Let's walk through the steps to create a pod from the Quarkus app and Redis containers.

You will need to change the environment variable `redis` to point to `localhost` instead of the hard coded IP we set earlier. In order to do so, delete the existing quarkus-app container and create a new one from the images tab.

TIP: the Quarkus application is by default configured to look for a Redis instance on `localhost` already, so you don't actually need to set the environment variable this time. Just create a new container with name `quarkus-app`, and continue with the instructions below.

In the *Containers* section of Podman Desktop, select both the `quarkus-app` and `redis` containers using the checkboxes. Now, click on the *Podify* button from the top right corner menu to initiate the pod creation process.

image::podman-desktop-podify-button2.png[Podman Desktop Podify, 600]
Expand Down

0 comments on commit 2f707e6

Please sign in to comment.