您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

适用于容器的 CI/CD

Application Insights
容器注册表
Azure DevOps
Kubernetes 服务

解决方案构想 Solution Idea

若要查看有关详细信息、实现细节、定价指南或代码示例的信息,请向我们提供 GitHub 反馈If you'd like to see us expand this article with more information, implementation details, pricing guidance, or code examples, let us know with GitHub Feedback!

容器使你能够轻松地持续生成和部署应用程序。Containers make it easy for you to continuously build and deploy your applications. 通过使用 Azure Kubernetes Service (AKS) 中的 Kubernetes 协调这些容器的部署,你可以获得可复制、可管理的容器群集。By orchestrating deployment of those containers using Kubernetes in Azure Kubernetes Service (AKS), you can achieve replicable, manageable clusters of containers.

通过设置持续生成来生成容器映像和业务流程,Azure DevOps 可提高部署的速度和可靠性。By setting up a continuous build to produce your container images and orchestration, Azure DevOps increases the speed and reliability of your deployment.

体系结构Architecture

体系结构关系图 下载此体系结构的SVGArchitecture diagram Download an SVG of this architecture.

数据流Data Flow

  1. 更改应用程序源代码Change application source code
  2. 提交应用程序代码Commit Application Code
  3. 持续集成触发应用程序生成、容器映像生成和单元测试Continuous integration triggers application build, container image build and unit tests
  4. 容器映像已推送到 Azure 容器注册表Container image pushed to Azure Container Registry
  5. 连续部署触发器利用特定于环境的参数来协调应用程序项目的部署Continuous deployment trigger orchestrates deployment of application artifacts with environment-specific parameters
  6. 部署到 Azure Kubernetes Service (AKS) Deployment to Azure Kubernetes Service (AKS)
  7. 使用 Azure 容器注册表中的容器映像启动容器Container is launched using Container Image from Azure Container Registry
  8. Application Insights 收集和分析运行状况、性能和使用情况数据Application Insights collects and analyses health, performance, and usage data
  9. 查看运行状况、性能和使用情况信息Review health, performance and usage information
  10. 更新积压工作项Update backlog item

组件Components

  • 容器注册表:跨所有类型的 Azure 部署存储和管理容器映像Container Registry: Store and manage container images across all types of Azure deployments
  • Azure Kubernetes Service (AKS) :简化 Kubernetes 的部署、管理和操作Azure Kubernetes Service (AKS): Simplify the deployment, management, and operations of Kubernetes
  • Application Insights:检测、会审和诊断 web 应用和服务中的问题Application Insights: Detect, triage, and diagnose issues in your web apps and services
  • Azure DevOps:构建并部署多平台应用,充分利用 Azure 服务Azure DevOps: Build and deploy multi-platform apps to get the most from Azure services

后续步骤Next steps

定价计算器Pricing Calculator