AKS 应用容器化部署
azure-kubernetes-app-deploy
当将现有 Web 应用或 API 部署到已在运行的 Azure Kubernetes Service 集群时使用。检测框架、生成 Dockerfile 和 Kubernetes 清单、依据 AKS Deployment Safeguards 进行校验,并在验证后完成部署。WHEN:将应用部署到 AKS、部署到现有 AKS 集群、将应用容器化用于 Kubernetes、为 Azure 生成 K8s 清单、为 AKS 设置 CI/CD、我的 AKS 部署未通过 safeguard 检查、我有一个 Django/Express/Spring Boot 应用要在 AKS 上运行。DO NOT USE FOR:创建或配置 AKS 集群(请使用 azure-kubernetes)、评估迁移到 AKS Automatic(请使用 azure-kubernetes-automatic-readiness),或部署到非 AKS 目标,如 Web Apps、Container Apps 或 Functions。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 267
01 前言 Front Matter
- name
- azure-kubernetes-app-deploy
- license
- MIT
- metadata
- { "author": "Microsoft", "version": "1.0.0" }
- description
- Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster, containerize app for Kubernetes, generate K8s manifests for Azure, set up CI/CD for AKS, my AKS deployment is failing safeguard checks, I have a Django/Express/Spring Boot app to run on AKS. DO NOT USE FOR: creating or provisioning an AKS cluster (use azure-kubernetes), assessing migration to AKS Automatic (use azure-kubernetes-automatic-readiness), or deploying to non-AKS targets like Web Apps, Container Apps, or Functions.
02 资源文件 54
- 参考文档knowledge-packs/frameworks/aspnet-core.md7.3 KB
- 参考文档knowledge-packs/frameworks/django.md6.0 KB
- 参考文档knowledge-packs/frameworks/express.md6.7 KB
- 参考文档knowledge-packs/frameworks/fastapi.md5.8 KB
- 参考文档knowledge-packs/frameworks/flask.md6.2 KB
- 参考文档knowledge-packs/frameworks/go.md6.8 KB
- 参考文档knowledge-packs/frameworks/nestjs.md6.7 KB
- 参考文档knowledge-packs/frameworks/nextjs.md7.1 KB
- 参考文档knowledge-packs/frameworks/spring-boot.md6.0 KB
- 参考文档phases/quick-deploy.md7.8 KB
- 参考文档references/autogen-patterns.md17.7 KB
- 参考文档references/base-images.md3.6 KB
- 参考文档references/crewai-patterns.md14.7 KB
- 参考文档references/custom-agent-guide.md22.8 KB
- 参考文档references/detection.md3.5 KB
- 参考文档references/framework-comparison.md10.5 KB
- 参考文档references/langchain-patterns.md17.8 KB
- 参考文档references/observability-guide.md19.7 KB
- 参考文档references/production-patterns.md19.2 KB
- 参考文档references/rollback.md2.0 KB
- 参考文档references/safeguards.md2.9 KB
- 参考文档references/workload-identity.md7.4 KB
- 脚本scripts/agent-debugger.py10.4 KB
- 脚本scripts/agent-system-template/config.yaml460 B
- 脚本scripts/agent-system-template/main.py1.3 KB
- 脚本scripts/agent-system-template/README.md1.1 KB
- 脚本scripts/agent-system-template/requirements.txt65 B
- 脚本scripts/cost-estimator.py6.8 KB
- 其他templates/dockerfiles/dotnet.Dockerfile2.6 KB
- 其他templates/dockerfiles/dotnet.dockerignore125 B
- 其他templates/dockerfiles/go.Dockerfile2.1 KB
- 其他templates/dockerfiles/go.dockerignore128 B
- 其他templates/dockerfiles/java.Dockerfile3.0 KB
- 其他templates/dockerfiles/java.dockerignore156 B
- 其他templates/dockerfiles/node.Dockerfile3.0 KB
- 其他templates/dockerfiles/node.dockerignore173 B
- 其他templates/dockerfiles/python.Dockerfile2.6 KB
- 其他templates/dockerfiles/python.dockerignore201 B
- 其他templates/dockerfiles/rust.Dockerfile3.2 KB
- 其他templates/dockerfiles/rust.dockerignore87 B
- 参考文档templates/github-actions/deploy.yml7.4 KB
- 参考文档templates/k8s/configmap.yaml1.0 KB
- 参考文档templates/k8s/deployment.yaml3.4 KB
- 参考文档templates/k8s/gateway.yaml1.5 KB
- 参考文档templates/k8s/hpa.yaml1.4 KB
- 参考文档templates/k8s/httproute.yaml1.3 KB
- 参考文档templates/k8s/ingress.yaml1.9 KB
- 参考文档templates/k8s/namespace.yaml734 B
- 参考文档templates/k8s/networkpolicy.yaml1.6 KB
- 参考文档templates/k8s/pdb.yaml758 B
- 参考文档templates/k8s/service.yaml864 B
- 参考文档templates/k8s/serviceaccount.yaml1.4 KB
- 参考文档templates/mermaid/architecture-diagram.md1.6 KB
- 参考文档templates/mermaid/summary-dashboard.md1.7 KB
03 SKILL.md 正文
Deploy to AKS
Use when: deploying a web app/API to AKS; containerizing for Kubernetes; generating manifests; AKS CI/CD; DS001–DS013 failures.
Not for: provisioning clusters (azure-kubernetes), AKS Automatic readiness (azure-kubernetes-automatic-readiness), non-AKS targets.
Workflow
Requires: existing AKS cluster, az login, kubectl configured. Follow phases/quick-deploy.md. On failure: references/rollback.md.
References
- detection.md — framework/port/health detection
- safeguards.md — DS001-DS013 checklist
- workload-identity.md — Workload Identity setup
- rollback.md — recovery procedures
- base-images.md — base image policy and
<LATEST_STABLE_*>resolution
Knowledge Packs
Load knowledge-packs/frameworks/<framework>.md per detected framework. Available: spring-boot, express, nextjs, fastapi, django, nestjs, aspnet-core, go, flask
Templates
templates/ (dockerfiles/, k8s/, github-actions/, mermaid/).
04 同仓库更多 Skills
azure-advisor-cost-optimization
Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: "find unused Azure resources", "what resources am I paying for but no longer using", "idle-resource savings", "historical idle-resource savings", "are these idle resources safe to delete". Generic Cost, other subcategories, and cross-category requests use azure-advisor.
Python应用Azure App Service部署
python-appservice-deploy
将Python(Flask/Django/FastAPI)代码部署到Azure App Service Linux。适用场景:"Flask App Service"、"Django App Service"、"FastAPI App Service"、"将Python部署到App Service"。不适用于:Container Apps、Functions、非Python、Terraform/Bicep/IaC、完整基础设施——请使用 azure-prepare。
Azure OpenAI模型最佳区域部署
preset
通过分析所有可用区域的容量,智能地将Azure OpenAI模型部署到最佳区域。自动先检查当前区域,并在必要时显示备选方案。适用于:快速部署、最佳区域、最优区域、自动区域选择、快速设置、多区域容量检查、高可用部署、部署到最佳位置。不适用于:自定义SKU选择(请使用 customize)、特定版本选择(请使用 customize)、自定义容量配置(请使用 customize)、PTU部署(请使用 customize)。
Azure OpenAI模型自定义部署
customize
Azure OpenAI模型的交互式引导部署流程,提供完全自定义控制。逐步选择模型版本、SKU(GlobalStandard/Standard/ProvisionedManaged)、容量、RAI策略(内容过滤器)以及高级选项(动态配额、优先处理、溢出)。适用于:自定义部署、自定义模型部署、选择版本、选择SKU、设置容量、配置内容过滤器、RAI策略、部署选项、详细部署、高级部署、PTU部署、预置吞吐量。不适用于:快速部署到最佳区域(请使用 preset)。
Azure OpenAI容量查询
capacity
发现跨区域和项目的可用 Azure OpenAI 模型容量。分析配额限制、比较可用性,并根据容量需求推荐最佳部署位置。USE FOR:查找容量、检查配额、可以在哪里部署、容量发现、容量最佳区域、多项目容量搜索、配额分析、模型可用性、区域比较、检查 TPM 可用性。DO NOT USE FOR:实际部署(发现后转交给预设或自定义技能)、配额提升请求(引导用户前往 Azure 门户)、列出现有部署。
Azure OpenAI模型部署
deploy-model
统一的 Azure OpenAI 模型部署技能,具备基于意图的智能路由。处理快速预设部署、完全自定义部署(版本/SKU/容量/RAI 策略)以及跨区域和项目的容量发现。USE FOR:部署模型、部署 gpt、创建部署、模型部署、部署 openai 模型、设置模型、配置模型、查找容量、检查模型可用性、可以在哪里部署、模型最佳区域、容量分析。DO NOT USE FOR:列出现有部署(使用 foundry_models_deployments_list MCP 工具)、删除部署、创建智能体(使用 agent/create)、创建项目(使用 project/create)。