Terraform을 사용하여 VCF 어플라이언스 추가
이 페이지에서는 엔드 투 엔드 (E2E) Terraform 자동화 모듈을 사용하여 Google Cloud 의 VMware 솔루션에서 추가 VMware Cloud Foundation (VCF) 관리 어플라이언스에 대해 Google Cloud 부하 분산기, 예약된 내부 IPv4 주소, Cloud DNS 레코드를 프로비저닝하는 방법을 설명합니다.
가전제품 추가
기존 클러스터에 새 관리 어플라이언스를 추가하려면 클러스터의 초기 배포 중에 사용한 것과 동일한 Terraform 작업공간 및 상태 파일 (terraform.tfstate)을 사용합니다. 어플라이언스가 관리 서브넷에 있어야 하는 경우 mgmt_ip_values 맵에 어플라이언스를 추가하고 NSX TEP 서브넷에 있어야 하는 경우 nsx_ip_values 맵에 추가합니다.
다음 단계에서는 e2e-terraform/sample_management_cluster.tfvars 파일의 샘플 구성을 기반으로 VCF Automation Appliance 가상 IP(VIP)(auto-vip) 및 VCF Automation Runtime(auto-platform) 어플라이언스를 추가하는 방법을 보여줍니다.
변수 정의 파일 (
management_cluster.tfvars) 업데이트:deployment_mode변수를"appliance_addition"로 설정하고 새 어플라이언스 항목을mgmt_ip_values(또는nsx_ip_values) 맵에 직접 추가합니다.deployment_mode = "appliance_addition" mgmt_ip_values = { # VCF Control Plane Core Services "sddcm" = "10.200.0.9" # VCF SDDC Manager Appliance "collector" = "10.200.0.10" # VMware Cloud Proxy Appliance "vc01" = "10.200.0.11" # Management vCenter Server Appliance (VCSA) "license" = "10.200.0.16" # VCF License Manager Service "shared01" = "10.200.0.17" # VCF Instance Service Manager "vidb" = "10.200.0.18" # VMware Workspace ONE Access / Identity Broker "vsp01" = "10.200.0.50" # VCF Services Runtime Platform "vsrt" = "10.200.0.51-10.200.0.62" # VCF Services Runtime IP Pool # VMware Aria Suite Operations & Automation Services "ops01" = "10.200.0.12" # VMware Aria Operations Primary Node "ops02" = "10.200.0.24" # VMware Aria Operations Replica Node "ops03" = "10.200.0.25" # VMware Aria Operations Data Node "fleetlcm" = "10.200.0.13" # VMware Aria Operations Fleet Management Service # New appliances added in this operation "auto-vip" = "10.200.0.20" # VCF Automation Appliance VIP "auto-platform" = "10.200.0.21" # VCF Automation Runtime # "auto-node" = "10.200.0.81-10.200.0.85" # VCF Automation Cluster Node IP Pool (5 nodes) # NSX Management Cluster & Management Interfaces "nsx01" = "10.200.0.14" # NSX Management Cluster Floating Virtual IP (VIP) "nsx02" = "10.200.0.15" # NSX Manager Node 1 Management IP "nsx03" = "10.200.0.22" # NSX Manager Node 2 Management IP "nsx04" = "10.200.0.23" # NSX Manager Node 3 Management IP }Terraform 실행 계획 생성 및 적용:
terraform plan -var-file='management_cluster.tfvars' -out=tfplan terraform apply tfplan
예상 동작
appliance_addition 구성을 적용하면 Terraform은 다음과 같은 중단 없는 작업을 수행합니다.
- 새 어플라이언스의 고정 내부 IPv4 주소 (
10.200.0.20및10.200.0.21)를 예약합니다. GARP_RA고가용성 빠른 IP 이동 정책으로 구성된 리전 백엔드 서비스 (vcf-mgmt-sample-auto-vip-lb및vcf-mgmt-sample-auto-platform-lb)를 프로비저닝합니다.- 리전 전달 규칙 (
vcf-mgmt-sample-auto-vip-fr및vcf-mgmt-sample-auto-platform-fr)을 프로비저닝합니다. - Cloud DNS에 정방향 (
A) 및 역방향 (PTR) 레코드를 등록합니다.
다음 단계
- 온라인 또는 오프라인 저장소를 사용하여 VCF 9.x 클러스터에 어플라이언스를 배포합니다.
- Terraform을 사용하여 노드 용량 관리에서 클러스터 용량을 확장하는 방법을 알아봅니다.