我创建了一个包含两个 VirtualMachineScaleSet 代理池的托管集群。现在我尝试将 CustomScript 扩展安装到 VMSS,但失败,因为已经安装了扩展。
{
"name": "vmssCSE",
"properties": {
"autoUpgradeMinorVersion": true,
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"settings": {}
}
}
这个扩展有什么作用?显然它没有任何设置。删除它安全吗?如何防止在创建集群时创建它?
最佳答案
对于 Azure Kubernetes 服务,它是 Azure 中的托管服务并由 Azure 管理。无论是 VirtualMachine 代理还是 VirtualMachineScaleSet 代理,都不建议手动更改其 IaaS 资源。它显示在 Azure AKS FAQ 中:
Can I use custom VM extensions?
No. AKS is a managed service, and manipulation of the IaaS resources is not supported. To install custom components, etc. please leverage the kubernetes APIs and mechanisms. For example, leverage DaemonSets to install required components.
Azure 在创建时安装现有扩展,以将 VM 或 VMSS 配置为 AKS 群集中的节点。因此删除它们并不安全。
关于azure - 我的托管集群 VirtualMachineScaleSet 中的 vmssCSE 扩展是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58013091/