Tvo*_*Tvo 5 terraform azure-service-fabric terraform-provider-azure
我正在尝试使用 Terraform 脚本在 Azure 中创建 Service Fabric 群集。Terraform 中的Azure 服务提供商发布了“Service Fabric Cluster”(azurerm_service_fabric_cluster)资源。该资源仅创建服务结构管理部分,即不创建 vm 规模集或网络资源。
如何通过 Terraform 创建工作的 SF 集群?
小智 1
Terraform azurerm_service_fabric_cluster 资源仅提供管理。要调配节点,请部署具有配置 SF 节点的服务结构扩展的 VMSS。
请参阅官方提供商 GitHub 上的示例以获取信息。
extension {
name = "${var.prefix}ServiceFabricNode"
publisher = "Microsoft.Azure.ServiceFabric"
type = "ServiceFabricNode"
type_handler_version = "1.1"
auto_upgrade_minor_version = false
settings = jsonencode({
"clusterEndpoint" = azurerm_service_fabric_cluster.example.cluster_endpoint
"nodeTypeRef" = azurerm_service_fabric_cluster.example.node_type[0].name
"durabilityLevel" = "bronze"
"nicPrefixOverride" = azurerm_subnet.example.address_prefixes[0]
"enableParallelJobs" = true
"certificate" = {
"commonNames" = [
"${var.prefix}servicefabric.${var.location}.cloudapp.azure.com",
]
"x509StoreName" = "My"
}
})
protected_settings = jsonencode({
"StorageAccountKey1" = azurerm_storage_account.example.primary_access_key
"StorageAccountKey2" = azurerm_storage_account.example.secondary_access_key
})
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1570 次 |
| 最近记录: |