January 14, 2020 By Dimitri Prosper 3 min read

As a developer or administrator, learn how to access applications and services running on the IBM Cloud from on-premises while maintaining network isolation to your applications and backend databases.

A Virtual Private Cloud (VPC) is an isolated environment in the IBM Cloud where you can create subnets, load balancers, storage, virtual server instances (VSIs), and Kubernetes clusters that are then used to deploy small to complex applications and/or microservices

A common scenario is to build/deploy new applications in the cloud while maintaining existing enterprise applications on-premises. With a VPC, anyone can quickly create an environment leveraging the IBM Cloud UI, CLI, REST API, or Terraform and tie to on-premises users and applications when needed.  

This post will explore such a deployment scenario and reference several relevant resources to help you get started on this journey. 

For more of a background on virtual private clouds, see “What is a Virtual Private Cloud (VPC)?

Deployment scenario

The diagram below depicts a virtual private cloud deployed in an IBM Cloud region. A virtual server hosting an application and a Kubernetes cluster hosting containerized microservices are deployed across one to three availability zones. The application and microservices interact with IBM Cloud services—databases, logging, and monitoring tools—over private endpoints. You can learn more about deploying a Kubernetes cluster from the “Creating a classic cluster in your Virtual Private Cloud (VPC)” tutorial.  

The VPC and the on-premises network are connected via VPN Gateways. In the on-premises network, users access an application running in the cloud via a single-page application (SPA) or mobile UI.

Below is an a rundown of the various steps included in the diagram: 

  1. The VPC is created in one of the IBM Cloud regions, and subnets are defined in one, two, or three availability zones. 
  2. A VPC/VPN Gateway is provisioned and configured to connect with an on-premises VPN Gateway, and it exposes the virtual private cloud environment to the on-premises network. Routing rules are configured to allow an on-premises enterprise application to communicate directly with IBM Cloud services (e.g., databases, logging, and monitoring) over their private endpoints. You can learn more about creating a VPC and configuring the VPN Gateway from the “Use a VPC/VPN gateway for secure and private on-premises access to cloud resources” tutorial. This tutorial also provides an example of using private endpoints to access a PostgreSQL instance, and the steps are similar for other database services running in IBM Cloud. 
  3. Virtual servers are deployed to run one or multiple applications across one, two, or three availability zones. A highly available load balancer service is available in VPC to distribute inbound traffic across the zones. 
  4. Kubernetes clusters are deployed to run multiple microservices and, again, a highly available load balancer service is available in VPC to distribute inbound traffic across the nodes/zones. 
  5. The application and microservices interface with database services in IBM Cloud (e.g., Databases for PostgreSQL) through private endpoints.
  6. Logging and monitoring tools like Log Analysis with LogDNA are configured to capture system information coming from the VPC and other cloud services, such as Databases for PostgreSQL.
  7. On-premises enterprise applications and end-users are able to interact with both the applications/microservices running in the VPC and the cloud services through the private/cloud service endpoints

Deploying your applications or shrink-wrapped software to virtual servers is described in great detail in the “Install software on virtual server instances in VPC” tutorial. Once your applications are deployed, you can further secure your data by applying encryption and authenticating access to your application (the “Apply end-to-end security to a cloud application” tutorial covers these topics extensively).

Log in to your IBM Cloud account and get started with these great tutorials. 

Questions and feedback

If you have feedback, suggestions, or questions about this post, please reach out on LinkedIn (Dimitri Prosper) or use the feedback button on the referenced individual tutorials:

You can also open GitHub issues on related code samples for clarifications. 

Was this article helpful?
YesNo

More from Cloud

The power of embracing distributed hybrid infrastructure

2 min read - Data is the greatest asset to help organizations improve decision-making, fuel growth and boost competitiveness in the marketplace. But today’s organizations face the challenge of managing vast amounts of data across multiple environments. This is why understanding the uniqueness of your IT processes, workloads and applications demands a workload placement strategy based on key factors such as the type of data, necessary compute capacity and performance needed and meeting your regulatory security and compliance requirements. While hybrid cloud has become…

Serverless vs. microservices: Which architecture is best for your business?

7 min read - When enterprises need to build an application, one of the most important decisions their leaders must make is what kind of software development to use. While there are many software architectures to choose from, serverless and microservices architectures are increasingly popular due to their scalability, flexibility and performance. Also, with spending on cloud services expected to double in the next four years, both serverless and microservices instances should grow rapidly since they are widely used in cloud computing environments. While…

Seamless cloud migration and modernization: overcoming common challenges with generative AI assets and innovative commercial models

3 min read - As organizations continue to adopt cloud-based services, it’s more pressing to migrate and modernize infrastructure, applications and data to the cloud to stay competitive. Traditional migration and modernization approach often involve manual processes, leading to increased costs, delayed time-to-value and increased risk. Cloud migration and modernization can be complex and time-consuming processes that come with unique challenges; meanwhile there are many benefits to gen AI assets and assistants and innovative commercial models. Cloud Migration and Modernization Factory from IBM Consulting®…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters