简体   繁体   English

Azure DevOps - 本地部署管道

[英]Azure DevOps - on prem deployment pipeline

I am going to create CI/CD pipeline in Azure DevOps for.Net core web app.我将在 Azure DevOps for .Net core web 应用程序中创建 CI/CD 管道。 I need to have below procedure: CI: Visual Studio -> Azure repo -> Build on hosted agent -> create a Docker image and push it to Azure container registry CD: Deploy created image to on-prem docker swarm cluster Now, I have 2 questions: 1- how can I deploy to docker swarm cluster 2- I have to deploy directly from build agent to swarm cluster without internet access. I need to have below procedure: CI: Visual Studio -> Azure repo -> Build on hosted agent -> create a Docker image and push it to Azure container registry CD: Deploy created image to on-prem docker swarm cluster Now, I have 2 个问题: 1- 我如何部署到 docker 集群 2- 我必须直接从构建代理部署到集群集群而无需访问互联网。

I would appreciate if you can help me.如果您能帮助我,我将不胜感激。

For your requirement, I'd suggest that you could setup a private agent for Release Pipeline (CD) to deploy created image to on-prem docker swarm cluster.根据您的要求,我建议您可以为发布管道 (CD) 设置一个私有代理,以将创建的映像部署到本地 docker 集群。

For CI pipeline, you could use Microsoft Hosted agent.对于 CI 管道,您可以使用 Microsoft 托管代理。

Regarding that private agent, it should able to connect to internet, but you could restrict it just can connect to Azure DevOps by adding white-list: Allowed address lists and network connections关于那个私人代理,它应该能够连接到互联网,但您可以通过添加白名单来限制它只能连接到 Azure DevOps: 允许的地址列表和网络连接

Regarding deploy to on-prem docker swarm cluster, you could call command through Command Line task.关于部署到本地 docker swarm 集群,您可以通过命令行任务调用命令。

Deploy a stack to a swarm将堆栈部署到 swarm

Apply rolling updates to a service 将滚动更新应用于服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 "在 Azure DevOps 管道中为 WebApp 创建部署槽" - Create deployment slot for WebApp in Azure DevOps pipeline Azure DevOps 管道部署到 Postgres 数据库 - Azure DevOps Pipeline Deployment to Postgres DB Azure DevOps - 使用部署组或部署作业向环境发布管道? - Azure DevOps - Release Pipeline using Deployment Groups or Deployment Job to an Environment? 如何从 Azure Devops Release 管道连接本地 SQL 服务器(安装了 SQL 的 VM) - How to connect On prem SQL Server (VM installed with SQL) from Azure Devops Release pipeline Azure DevOps 发布管道消除了应用服务部署槽 - Azure DevOps Release Pipeline wipes out App Service Deployment Slot Azure DevOps - 在管道部署中继续超时错误 - Azure DevOps - Continue on Time out error in Pipeline Deployment Azure web 使用 vscode 部署应用程序比 devops 管道更快 - Azure web app deployment using vscode is faster than devops pipeline Azure DevOps yaml 管道部署:“不支持提供程序阶段” - Azure DevOps yaml-pipeline deployment: “Provider phase is not supported” Azure Devops Pipeline ACR 部署到 Web 应用程序容器 - Azure Devops Pipeline ACR deployment to Web App Container Azure 用于本地按需 kube.netes 部署的 Devops 发布管道 - Azure Devops release pipeline for local on-demand kubernetes deployment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM