How-tos

Move a VM based application to Kubernetes

Share this post:

The IBM Cloud Kubernetes Service offers managed Kubernetes clusters with isolation and hardware choice, operational tools, integrated security, as well as insights into images and containers. Kubernetes offers many great benefits like application scalability, visibility, time savings, version control, rolling updates and more.

To move applications to Kubernetes, you need to:

  • Define clusters for different environment types(dev, test, and production).

  • Handle data storage and the importance of persistent data storage.
  • Apply the 12-factor principles to your application and use secrets for credentials in Kubernetes.
  • Build docker images and push them to IBM Cloud container registry.
  • Create Kubernetes deployment files and deploy the docker image to Kubernetes.

With this in place, let’s explore how to do all that on IBM Cloud. To do that we added a new tutorial to our collection with a step by step guide. In this tutorial, you will learn how to:

  • Map components between VMs and Kubernetes.
  • Containerize the application.
  • Deploy the container to a Kubernetes cluster on the IBM Cloud Kubernetes Service.

Following this tutorial, you will understand how to take an existing traditional application architecture, based on virtual machines: 

To a modern container, architecture that would look similar to:

Try it today

There is more to discover to this tutorial guide. We encourage you to go through the tutorial. It will guide you how to take an existing application, containerize it and deploy it to a Kubernetes cluster.

View the tutorial

The tutorials section has a feedback form on the side where you can comment on the content. So if you have suggestions on the existing tutorials or ideas for future additions, please submit your feedback.

Full-Stack Software Developer & Developer Advocate at IBM Cloud

More How-tos stories

Configuring IBM Cloud App ID From the Toolchain

Learn how to configure the IBM Cloud App ID from a toolchain as part of continuous delivery process. This post gives some background and the script we use.

Continue reading

How to Backup Your IBM Cloud Linux Server

This post covers how to backup entire partitions in Linux systems. The process utilizes the tar command in IBM Cloud's unique rescue environment and showcases the simplicity and flexibility of the process.

Continue reading

Speed up your WordPress with IBM Cloud

WordPress is one of the most popular content management systems available, but the many websites and blogs that use it experience issues with speed. At IBM Cloud, there are several solutions that can help alleviate some of these issues and allow you to have a better and faster WordPress experience.

Continue reading