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 マップに追加します。

次の手順では、VCF Automation Appliance 仮想 IP(VIP)(auto-vip)と VCF Automation Runtime(auto-platform)アプライアンスを追加する方法を示します(e2e-terraform/sample_management_cluster.tfvars ファイルのサンプル構成に基づきます)。

  1. 変数定義ファイル(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
    }
    
  2. 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)レコードを登録します。

次のステップ