The page has been translated by Gen AI.
icon

Container-Based Web Application

Container-Based Web Application

Overview

A container virtualizes and provides the actual runtime environment for an application. Developers can easily and continuously deploy applications in any environment. Virtual machines virtualize the hardware stack, whereas containers virtualize at the operating system level. As a result, containers share the OS kernel, use significantly less memory, and start up faster than an OS reboot.

Kubernetes is a platform that enables the elastic execution and management of distributed system environments by automating the management of numerous containerized applications. Kubernetes facilitates the scaling and failover of applications and provides an environment for easy and rapid continuous deployment, enabling the successful construction and operation of web application systems.

Architecture Diagram

Container Application
Figure. Container-based Web Application Architecture
  1. Provision the Kubernetes Engine product service for container runtime management and orchestration.
  2. Install a Kubernetes Ingress Controller to expose the HTTP and HTTPS paths of internal services to the outside of the cluster.
  3. To ensure the availability of the Ingress Controller, apply for the Load Balancer product and register the Worker Node IP to connect it to the Ingress Controller.
  4. To configure WEB/WAS applications, run container images such as Apache HTTP Server and Tomcat.

Use Cases

Containerization of Management Information Systems

Applying container technology and standard open-source software typically reduces hardware resource consumption by approximately 20% and cuts software licensing costs by around 80%. Because the technologies, software, and versions differ across systems, developing and investing in the same functionality incurs additional costs. Migrating to containers minimizes redundant development and shortens the transition period.

Containerization of systems requiring resource scaling due to a surge in users

You can scale out WEB/WAS container resources in advance of expected user surges to prepare for the increased load.

To prepare for unpredictable user surges, you can apply Kubernetes Auto Scaling to automatically increase container resources when CPU or memory usage exceeds a defined threshold. Conversely, when the value drops below the threshold, container resources are automatically released, enabling cost-efficient system operation.

Prerequisites

None

Constraints

The maximum number of worker nodes that can be created in Kubernetes Engine is limited by the available IP range within the subnet, with a maximum of 100 nodes.

Considerations

Container-based configurations for WEB/WAS and other components must be optimized according to the characteristics of the application. We recommend configuring container image optimization and environment settings for WEB/WAS, etc., by referring to the respective container image provider communities.

When using an Ingress Controller, it is recommended to configure it to be served through a Load Balancer to ensure load balancing and availability. Because the Ingress Controller manages connections to application containers based on domains, it is recommended to use it after registering the domain and DNS.

To connect to a DB system from a WEB/WAS container, the connection is made to the IP address of the Worker Node where the container is running. When using a security group or DB access control, the IP address of the worker node where the container is running must be registered to establish a connection with the DB system.

Related Services

The following is a list of Samsung Cloud Platform services that are associated with the features or configurations described in this guide. Refer to this when selecting and designing services.

Service groupServiceDetailed Description
ComputeVirtual ServerVirtual servers optimized for cloud computing
ContainerKubernetes EngineKubernetes container orchestration service
DatabasePostgreSQL(DBaaS)A service for easily creating and managing open-source PostgreSQL
NetworkingVPCA service that provides an isolated virtual network in a cloud environment
NetworkingSecurity GroupA virtual firewall that controls VM traffic
NetworkingLoad BalancerA service that automatically distributes server traffic load
StorageFile StorageStorage that allows connected servers to easily store and share data over a network connection
Table. List of related services