我正在尝试使用 centos 镜像创建 Azure aks 集群。
我已经使用 ubuntu 镜像创建了一个 aks 集群。
搜索了互联网,没有找到任何表明 centos 是一个选项的信息。
resource "azurerm_kubernetes_cluster" "k8s" {
name = "${var.aks_name}"
location = "${data.azurerm_resource_group.rg.location}"
dns_prefix = "${var.aks_dns_prefix}"
resource_group_name = "${data.azurerm_resource_group.rg.name}"
linux_profile {
admin_username = "${var.vm_user_name}"
ssh_key {
key_data = "${file(var.public_ssh_key_path)}"
}
}
addon_profile {
http_application_routing {
enabled = false
}
}
agent_pool_profile {
name = "agentpool"
count = "${var.aks_agent_count}"
vm_size = "${var.aks_agent_vm_size}"
os_type = "Linux"
os_disk_size_gb = "${var.aks_agent_os_disk_size}"
vnet_subnet_id = "${data.azurerm_subnet.kubesubnet.id}"
}
最佳答案
不,您无法控制用于创建 AKS 的虚拟机镜像。我认为 AKS 引擎可以与 CoreOS 配合使用。 https://github.com/Azure/aks-engine/issues/541
关于azure - 我可以使用 centos 镜像创建 Azure aks kubernetes 集群吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56045890/