[英]Use Azure ARM template to create an AKS cluster and deploy my Kubernetes application
I have a Kubernetes application that I'd like to deploy to Azure using ARM templates. 我有一个Kubernetes应用程序,我想使用ARM模板部署到Azure。 I have a Helm chart created to deploy the application to Kubernetes and ideally I'd like the ARM template to call Helm to deploy the application after creating the AKS cluster.
我创建了一个Helm图表,将应用程序部署到Kubernetes,理想情况下,我希望ARM模板在创建AKS集群后调用Helm来部署应用程序。
Does anyone know a way to do this? 有人知道这样做的方法吗? I noticed that there is an extension for calling a script from a provisioned VM , is there similar extension for a created AKS?
我注意到有一个用于从已配置的VM调用脚本的扩展,对于创建的AKS是否有类似的扩展?
if the ARM template should be the "orchestrator", use Custom Script Extension , but this requires you to provision a VM for you script to run on. 如果ARM模板应该是“协调器”,请使用“ 自定义脚本扩展” ,但这需要您提供VM以便脚本可以运行。
write a script, deploy ARM template, then call helm install. 编写脚本,部署ARM模板,然后调用helm install。
consider your use case, if possible. 如果可能,请考虑您的用例。 K8s cluster should be considered "infrastructure", and should be deployed separately from "application" in most real-world cases.
K8s群集应被视为“基础结构”,并且在大多数实际情况下应与“应用程序”分开部署。
I am not aware of any other possibilities ... 我不知道还有其他可能性...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.