From VPS to Kubernetes: Containerizing the app in user space

From VPS to Kubernetes: Containerizing the app in user space

In the previous VPS post we deployed URL shortener service the old-fashioned way: clone the repository, build it on the server, wire up Jetty server, configure nginx by hand, and run Certbot. Quite many steps and moving parts, and everything living as bare processes on a single Ubuntu machine.

And I got some feedback about that. While I believe it is a great way to understand what is really going on under the hood, maybe not the most modern way to do it. I had already discovered UpCloud also offers a K8s upgrade and a Kubernetes control plane to deploy and manage containerized applications. However, this felt like too big a change. I wanted to make a smaller step and test the containerized deployment.

This time we will package each service into its own container image and hand the running of them over to MicroK8s, a lean, single-node Kubernetes distribution that installs straight onto our existing Ubuntu server with one command. Reading this article, no new machine needed, no cloud provider managed control plane. We can use the same UpCloud server we already have. And if you wish you can do that locally also.

Build Better Java Web Apps 

One email a month: Vaadin release news, expert tutorials, and guides for Java developers.

How To Ensure Serializable Sessions in Vaadin 25 Applications

How To Ensure Serializable Sessions in Vaadin 25 Applications

In many real-world Vaadin 25 applications, strict session serialization isn’t always required. However, it becomes important in clustered deployments, failover setups, session passivation scenarios, and environments with frequent restarts. The good news is that this is manageable when you apply a ...
Vaadin control center is here! Manage java apps on kubernetes with ease.

Introducing Vaadin Control Center: The DevOps tool for managing and scaling Java apps on Kubernetes

We’re excited to introduce the very first public preview of Vaadin Control Center—a powerful DevOps tool for Java developers deploying on Kubernetes. It simplifies the operation of Vaadin apps in production, seamlessly integrating with both new and existing Java applications, so you can deploy, ...

Deploying a Vaadin app to Kubernetes

Because there are few things more exciting than deploying an AI app to your own cloud, today we'll be deploying Alejandre Duarte's Vaadin Chatbot demo app to a local Kubernetes cluster. It is fairly straightforward. If you haven’t already done so, read the blog on how to build the Chatbot app here. ...