Build your Kubernetes application with Podman Desktop
The integration of Podman Desktop with Kubernetes helps you to run your application on a Kubernetes cluster, such as Kind or Minikube.
This blog covers the following aspects:
- Build a containerized application from registry images
- Create a pod
- Set up a local Kubernetes cluster
- Deploy the application to Kubernetes
- Verify the running service
Building a containerized application
With this blog, you will build a containerized application that uses:
- a back-end Redis server container
- a front-end Python application container
To do so, you can pull the relevant images from the quay.io
registry.
-
Go to the Images component page.
-
Click Pull.
-
Start the first container:
- Enter the image name to pull from a registry. For example,
quay.io/podman-desktop-demo/podify-demo-backend
. - Click Pull image. A download complete notification opens.
- Click Done.
- Click the Run Image icon corresponding to the new image added.
- Enter the container name
redis-server
. - Click Start Container.
- Click the Logs tab to view that the Redis server is running in standalone mode.
- Enter the image name to pull from a registry. For example,
-
Start the second container:
-
Enter the image name to pull from a registry. For example,
quay.io/podman-desktop-demo/podify-demo-frontend
. -
Click Pull image and then Done.
-
Click the
Run Image
icon corresponding to the new image added. -
Enter the container name
python-app
.noteIf the default port is already in use, you can specify a different port in the
Port mapping
field. -
Select the Networking tab and enter hostname as
redis-server
and IP address as10.88.0.2
to enable communication with the Redis server.noteYou can find the IP address in the Inspect tab of the
redis-server
Container Details page. -
Click Start Container.
-
Click the Logs tab to view that the application is running on port
5000
. -
Click the Open browser icon on the right side of the page.
-
View the running front-end application.
-