☁️ Cloud

Hybrid Cloud

Hybrid Cloud

Infrastructure that combines on-premises and public cloud. An enterprise cloud strategy that selects the optimal environment for each workload's characteristics, achieving flexibility, data sovereignty, and cost optimization at the same time.

📖 Detailed Explanation

Hybrid Cloud is a cloud computing strategy that integrates and operates on-premises infrastructure (or a private cloud) together with public cloud services. Data and applications are orchestrated so that they can move between the two environments, making it possible to make the most of the strengths of each environment.

The main reason enterprises choose hybrid cloud is the practical constraint that "not everything can be migrated to the public cloud." Various factors, such as regulatory compliance (GDPR, the Personal Information Protection Act), legacy systems, latency requirements, and cost optimization, call for a hybrid approach.

Hybrid Cloud Architecture

🏢

On-Premises

  • Sensitive Data (PII, Financial)
  • Legacy Applications
  • Low-Latency Workloads
  • Compliance Systems
⬅️ VPN/Dedicated Line ➡️
🔄

Unified Management Layer

  • Kubernetes (Unified Orchestration)
  • Unified Monitoring
  • Unified Security Policy
  • Unified Cost Management
⬅️ API/Network ➡️
☁️

Public Cloud

  • Burst Workloads
  • Global Services
  • AI/ML Services
  • Development/Test Environments

Major Cloud Deployment Models

🌐

Public Cloud

Public infrastructure such as AWS, Azure, and GCP shared by multiple organizations

Startups, variable load
🔒

Private Cloud

Cloud dedicated to a single organization (on-premises or hosted)

Finance, healthcare, public sector
🔀

Hybrid Cloud

Combination of on-premises + public, with optimal placement per workload

Enterprise
🌈

Multi-Cloud

Simultaneous use of multiple public clouds (AWS + Azure, etc.)

Avoiding vendor lock-in

Major Hybrid Cloud Solutions

🎯 Workload Placement Decision Guide

The most important decision in a hybrid cloud is "which workload to place where."

🏢 When On-Premises Is Suitable

  • Sensitive information such as personal data and financial data
  • Regulatory requirements (keeping data in the country)
  • Ultra-low latency required (under 1ms)
  • Predictable and stable workloads
  • Legacy systems (difficult to migrate)

☁️ When Public Cloud Is Suitable

  • Variable load (events, seasons)
  • Providing global services
  • AI/ML, big data analytics
  • Development/Test Environments
  • New projects, experiments

Cost Comparison Table

Factor On-Premises Public Cloud Hybrid
Initial Investment High (CAPEX) None Medium
Operating Cost Predictable Usage-based (OPEX) Optimizable
Scalability Limited (advance planning) Instant scaling Selective scaling
Maintenance Handled in-house Handled by the CSP Mixed
Data Sovereignty Full control Limited Selective control

💻 Code Example

# Terraform으로 하이브리드 인프라 정의
# AWS + 온프레미스 연결

# AWS VPC 생성
resource "aws_vpc" "hybrid_vpc" {
  cidr_block           = "10.0.0.0/16"
  enable_dns_hostnames = true

  tags = {
    Name        = "hybrid-vpc"
    Environment = "production"
  }
}

# Virtual Private Gateway (VPN용)
resource "aws_vpn_gateway" "vpn_gw" {
  vpc_id = aws_vpc.hybrid_vpc.id

  tags = {
    Name = "hybrid-vpn-gateway"
  }
}

# 온프레미스 게이트웨이 정의
resource "aws_customer_gateway" "onprem" {
  bgp_asn    = 65000
  ip_address = var.onprem_gateway_ip
  type       = "ipsec.1"

  tags = {
    Name = "onprem-gateway"
  }
}

# Site-to-Site VPN 연결
resource "aws_vpn_connection" "onprem_vpn" {
  vpn_gateway_id      = aws_vpn_gateway.vpn_gw.id
  customer_gateway_id = aws_customer_gateway.onprem.id
  type                = "ipsec.1"
  static_routes_only  = true

  tags = {
    Name = "onprem-to-aws-vpn"
  }
}

# 온프레미스 네트워크로의 라우팅
resource "aws_vpn_connection_route" "onprem" {
  destination_cidr_block = "192.168.0.0/16"  # 온프레미스 CIDR
  vpn_connection_id      = aws_vpn_connection.onprem_vpn.id
}
# Kubernetes로 하이브리드 워크로드 관리
# 온프레미스와 클라우드 클러스터 연합

# 민감 데이터 처리 Pod - 온프레미스 전용
apiVersion: v1
kind: Pod
metadata:
  name: sensitive-data-processor
  labels:
    app: data-processor
    data-classification: pii
spec:
  # 온프레미스 노드에만 스케줄링
  nodeSelector:
    topology.kubernetes.io/zone: "onprem-datacenter"
    data-zone: "sensitive"

  tolerations:
    - key: "location"
      operator: "Equal"
      value: "onprem"
      effect: "NoSchedule"

  containers:
    - name: processor
      image: myregistry.local/data-processor:v1
      resources:
        requests:
          memory: "256Mi"
          cpu: "500m"

---
# 버스트 워크로드 - 클라우드 스케일 아웃
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: web-frontend-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: web-frontend
  minReplicas: 3    # 온프레미스 최소 유지
  maxReplicas: 100  # 클라우드로 스케일 아웃
  metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 70
#!/bin/bash
# 온프레미스 측 IPsec VPN 설정 (StrongSwan)

# StrongSwan 설치
sudo apt-get install strongswan strongswan-pki

# /etc/ipsec.conf 설정
cat > /etc/ipsec.conf << 'EOF'
config setup
    charondebug="ike 2, knl 2, cfg 2"

conn aws-tunnel
    type=tunnel
    auto=start
    keyexchange=ikev2

    # 온프레미스 측
    left=%defaultroute
    leftid=${ONPREM_PUBLIC_IP}
    leftsubnet=192.168.0.0/16
    leftauth=psk

    # AWS 측
    right=${AWS_VPN_ENDPOINT}
    rightsubnet=10.0.0.0/16
    rightauth=psk

    # 암호화 설정
    ike=aes256-sha256-modp2048
    esp=aes256-sha256-modp2048

    # 연결 유지
    dpdaction=restart
    dpddelay=30s
    dpdtimeout=120s
EOF

# Pre-Shared Key 설정
cat > /etc/ipsec.secrets << 'EOF'
${ONPREM_PUBLIC_IP} ${AWS_VPN_ENDPOINT} : PSK "${VPN_PSK}"
EOF

# 서비스 재시작
sudo systemctl restart strongswan
sudo ipsec status

💬 Example Conversation in Practice

CTO: We are considering a cloud transition, but due to financial regulations it is difficult to move all our data to the public cloud. What should we do?
Architect: A hybrid cloud strategy is a good fit. Keep sensitive customer data on-premises, and migrate analytics workloads and development environments to the cloud. AWS Outposts or Azure Arc enable consistent management.
CTO: How do we connect the two environments? I am worried about security.
Architect: You use a dedicated line such as Site-to-Site VPN or AWS Direct Connect. A dedicated line does not go through the internet, so it is more secure and its latency is also consistent. A dedicated line is recommended for critical systems.
CTO: Wouldn't managing the two environments separately increase operational complexity?
Architect: You can use Kubernetes as a unified orchestration layer. If you manage both on-premises and cloud with the same Kubernetes cluster, you can unify deployment, monitoring, and logging. Rancher and OpenShift are specialized in this kind of hybrid management.

⚠️ Cautions

⚠️ Consider Network Latency

Network latency occurs in communication between on-premises and the cloud. Architectures with many synchronous API calls may suffer performance degradation. Place latency-sensitive workloads in the same environment, and give priority to asynchronous methods for communication between environments.

⚠️ Data Transfer Costs

Data transfer out of the cloud (egress) incurs costs. Frequently transferring large volumes of data between on-premises and the cloud can lead to unexpected costs. Design your data placement strategy carefully.

⚠️ Security Policy Consistency

Applying different security policies in the two environments can create vulnerabilities. Keep unified IAM, encryption policies, and network security group settings consistent. Automating with Policy as Code is recommended.

⚠️ Managing Complexity

Hybrid is more complex than a single cloud. Adopting it without sufficient operational capability actually increases the management burden. Clear workload classification criteria, unified monitoring, and automated deployment pipelines are essential.

📋 Success Stories

🟢 Hybrid Transition at a Major Domestic Bank

Because of financial regulations, customer data was kept on-premises, while AI-based credit scoring model training used cloud GPU instances. By sending only the analysis results to on-premises, they were able to comply with regulations while still using the latest AI technology.

💡 Result: AI model training time reduced by 90%, regulatory compliance maintained

🟢 Handling Bursts at an E-Commerce Company

They built a hybrid architecture that normally runs services on-premises and automatically scales out to the cloud during Black Friday and sale seasons. Costs are predictable in normal times, and unlimited scaling became possible at peak times.

💡 Result: Handled 30x traffic at peak, annual infrastructure costs reduced by 40%

🟢 Edge-Cloud Integration at a Manufacturer

IoT sensor data inside the factory is processed in real time on on-premises edge servers, and only aggregated data is sent to the cloud for big data analytics. Low-latency monitoring and advanced analytics were achieved at the same time.

💡 Result: Defect detection time 10 seconds → 100ms, downtime reduced by 70% through predictive maintenance

🧠 Comprehension Quiz

What is the main difference between hybrid cloud and multi-cloud?

Hybrid is cheaper
Hybrid is a combination of on-premises and public cloud, while multi-cloud is a combination of multiple public clouds
Multi-cloud is more secure
Hybrid requires Kubernetes

🔗 Related Terms

📚 Learning Resources