简体   繁体   English

使用Azure ARM模板创建AKS群集并部署我的Kubernetes应用程序

[英]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是否有类似的扩展?

  1. 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以便脚本可以运行。

  2. write a script, deploy ARM template, then call helm install. 编写脚本,部署ARM模板,然后调用helm install。

  3. 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.

相关问题 没有使用 Azure 容器注册表 (ACR) 使用 ARM 模板创建 Azure AKS 集群的选项 - No option to Create Azure AKS cluster with Azure container registry (ACR) using ARM template 如何使用ARM模板创建Azure Kubernetes服务(AKS) - How to Create Azure Kubernetes Service (AKS) using ARM Templates 使用 ARM 模板将用户分配的身份用于 AKS 群集 - Use User assigned identity to AKS cluster using ARM template 我可以使用 centos 映像创建 Azure aks kubernetes 集群吗? - Can I create an Azure aks kubernetes cluster using a centos image? 尝试使用 AKS 在 Azure 上创建托管 Kubernetes 集群时出现“不正确的填充” - “Incorrect padding” when trying to create managed Kubernetes cluster on Azure with AKS 如何通过 ARM 模板创建 Azure AKS 服务 - How to create an Azure AKS service through ARM Template 如何使用 azure arm 模板部署集群 Kubernetes,包括应用程序(例如 nginx) - How to deploy clustered Kubernetes including an application (ex. nginx) using azure arm template 无法在 Azure Kubernetes 集群 (AKS) 中使用 helm 部署第二个入口控制器 - Unable to deploy a second ingress controller using helm in Azure Kubernetes Cluster ( AKS ) 无法在 Azure 上创建 AKS 群集 - Unable to create AKS cluster on Azure 调整 Azure Kubernetes 服务 (AKS) 群集的大小 - Sizing Azure Kubernetes Services (AKS) Cluster
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM