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
September 24, 2018

Migrating Java Microservices from Spring Boot to MicroProfile

Spring or MicroProfile, which one should you pick for more interaction between backend microservices? Which one is more easily adaptable to different user interaction patterns?  And most of all, which one allows you to write less code? This series explores the migrating of our reference Java microservices app from Spring Boot to MicroProfile.

Continue reading

September 20, 2018

Deploying to IBM Cloud Private 2.1.0.3 with IBM Cloud Developer Tools CLI

IBM Cloud Developer Tools CLI version 2.1.4 adds deployment support for IBM Cloud Private 2.1.0.3. This version of IBM Cloud Private uses a more secure Helm for Kubernetes deployments and simplifies the cluster configuration for the client compared to prior IBM Cloud Private releases.

Continue reading

September 19, 2018

Tutorial: Apply End-to-End Security to Cloud Applications

A new tutorial will show you how to use IBM Cloud services to secure your cloud application. Capture and review security-related events, encrypt storage, integrate authentication, and more.

Continue reading