<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Requirements for Auto DevOps > 原文:[https://docs.gitlab.com/ee/topics/autodevops/requirements.html](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) * [Auto DevOps requirements for Kubernetes](#auto-devops-requirements-for-kubernetes) * [Auto DevOps requirements for Amazon ECS](#auto-devops-requirements-for-amazon-ecs) # Requirements for Auto DevOps[](#requirements-for-auto-devops "Permalink") 您可以為[Kubernetes](#auto-devops-requirements-for-kubernetes)或[Amazon Elastic Container Service(ECS)](#auto-devops-requirements-for-amazon-ecs)設置 Auto DevOps. 有關 Auto DevOps 的更多信息,請參見[Auto DevOps 主頁](index.html)或[快速入門指南](quick_start_guide.html) . ## Auto DevOps requirements for Kubernetes[](#auto-devops-requirements-for-kubernetes "Permalink") 要充分利用 Auto DevOps 和 Kubernetes,您需要: * **Kubernetes** (用于[自動審閱應用程序](stages.html#auto-review-apps) , [自動部署](stages.html#auto-deploy)和[自動監視](stages.html#auto-monitoring) ) 要啟用部署,您需要: 1. 您的項目的[Kubernetes 1.12+集群](../../user/project/clusters/index.html) . 最簡單的方法是[使用 GitLab UI](../../user/project/clusters/add_remove_clusters.html#create-new-cluster)創建[新集群](../../user/project/clusters/add_remove_clusters.html#create-new-cluster) . 對于 Kubernetes 1.16+群集,您必須為[Auto Deploy for Kubernetes 1.16+](stages.html#kubernetes-116)執行附加配置. 2. NGINX 入口. 在上一步中配置了 GitLab 的 Kubernetes 集成之后,可以通過安裝[用于 Ingress](../../user/clusters/applications.html#ingress)的[GitLab 托管的應用程序,](../../user/clusters/applications.html#ingress)將其部署到 Kubernetes 集群中. 另外,您可以使用[`nginx-ingress`](https://github.com/helm/charts/tree/master/stable/nginx-ingress) Helm 圖表手動安裝 Ingress. **注意:**如果您使用自己的 Ingress 而不是 GitLab 托管應用程序提供的 Ingress,請確保您至少運行的是 NGINX Ingress 0.9.0 版,并[啟用 Prometheus](https://github.com/helm/charts/tree/master/stable/nginx-ingress#prometheus-metrics)指標以顯示響應指標. 您還必須使用`prometheus.io/scrape: "true"`和`prometheus.io/port: "10254"` [注釋](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)由 Prometheus 抓取的 NGINX Ingress 部署. * **基本域** (用于[自動審閱應用程序](stages.html#auto-review-apps) , [自動部署](stages.html#auto-deploy)和[自動監視](stages.html#auto-monitoring) ) 您需要一個配置了通配符 DNS 的域,所有您的 Auto DevOps 應用程序都將使用該域. 如果您使用的是[GitLab 托管的 Ingress 應用程序](../../user/clusters/applications.html#ingress) ,則會自動為您配置 URL 端點. 您還必須[指定 Auto DevOps 基本域](index.html#auto-devops-base-domain) . * **GitLab Runner** (所有階段) 必須將 Runner 配置為運行 Docker,通常使用[Docker](https://docs.gitlab.com/runner/executors/docker.html)或[Kubernetes](https://docs.gitlab.com/runner/executors/kubernetes.html)執行程序,并[啟用特權模式](https://docs.gitlab.com/runner/executors/docker.html) . Runner 不需要安裝在 Kubernetes 集群中,但是 Kubernetes 執行器易于使用,并且可以自動縮放. 您還可以使用[Docker Machine 將](https://docs.gitlab.com/runner/install/autoscaling.html)基于 Docker 的 Runner 配置為自動縮放. 如果您在第一步中配置了 GitLab 的 Kubernetes 集成,則可以通過[為 GitLab Runner](../../user/clusters/applications.html#gitlab-runner)安裝由[GitLab 管理的應用程序](../../user/clusters/applications.html#gitlab-runner)將其部署到集群中. 運動員應注冊為[共享亞軍](../../ci/runners/README.html#shared-runners)整個 GitLab 實例或[特定的運動員](../../ci/runners/README.html#specific-runners)被分配到具體項目(默認值,如果你已經安裝了 GitLab 亞軍管理應用程序). * **Prometheus** (for [Auto Monitoring](stages.html#auto-monitoring)) 要啟用自動監控,您需要在集群內部或外部安裝 Prometheus,并配置為刮取 Kubernetes 集群. 如果已經配置了 GitLab 的 Kubernetes 集成,則可以通過安裝[Prometheus](../../user/clusters/applications.html#prometheus)的[GitLab 托管的應用程序](../../user/clusters/applications.html#prometheus)將其部署到集群中. 必須為項目啟用[Prometheus 服務](../../user/project/integrations/prometheus.html)集成,或者將其作為整個 GitLab 安裝的[默認服務模板](../../user/project/integrations/services_templates.html)啟用. 要獲取響應指標(除了系統指標之外),您必須[配置 Prometheus 來監視 NGINX](../../user/project/integrations/prometheus_library/nginx_ingress.html#configuring-nginx-ingress-monitoring) . * **cert-manager** (可選,用于 TLS / HTTPS) 要為您的應用程序啟用 HTTPS 端點,必須安裝 cert-manager,這是一個本地 Kubernetes 證書管理控制器,可幫助頒發證書. 在您的群集上安裝 cert-manager 會發出[Let's Encrypt](https://letsencrypt.org/)證書,并確保證書有效和最新. 如果已經配置了 GitLab 的 Kubernetes 集成,則可以通過安裝[GitLab 托管的 cert-manager 應用程序](../../user/clusters/applications.html#cert-manager)將其部署到集群中. 如果您沒有安裝 Kubernetes 或 Prometheus,則將跳過[Auto Review Apps](stages.html#auto-review-apps) , [Auto Deploy](stages.html#auto-deploy)和[Auto Monitoring](stages.html#auto-monitoring) . 滿足所有要求后,您可以[啟用 Auto DevOps](index.html#enablingdisabling-auto-devops) . ## Auto DevOps requirements for Amazon ECS[](#auto-devops-requirements-for-amazon-ecs "Permalink") [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/208132) in GitLab 13.0. 您可以選擇將[AWS ECS](../../ci/cloud_deployment/index.html)定位為部署平臺,而不是使用 Kubernetes. 要開始使用針對 AWS ECS 的 Auto DevOps,您必須添加特定的環境變量. 這樣做,請按照下列步驟操作: 1. 在您的項目中,轉到**"設置">" CI / CD",**然后展開" **變量"**部分. 2. 通過添加具有以下值之一的`AUTO_DEVOPS_PLATFORM_TARGET`變量,指定在 Auto DevOps 部署期間要定位的 AWS 平臺: * `FARGATE`如果您的目標服務必須啟動類型 FARGATE 的. * `ECS`如果部署到 ECS,當你不執行任何啟動類型檢查. 觸發管道時,如果啟用了 Auto DevOps 且已正確[輸入 AWS 憑證作為環境變量](../../ci/cloud_deployment/index.html#deploy-your-application-to-the-aws-elastic-container-service-ecs) ,則您的應用程序將部署到 AWS ECS. **注意:**部署到 AWS ECS 時, [GitLab 托管應用程序](../../user/clusters/applications.html)不可用. 您必須在 AWS ECS 上手動配置應用程序(例如 Ingress 或 Help).**注意:**如果您同時具有有效的`AUTO_DEVOPS_PLATFORM_TARGET`變量和與項目綁定的 Kubernetes 集群,則僅運行 Kubernetes 的部署.**警告:**將`AUTO_DEVOPS_PLATFORM_TARGET`變量設置為`ECS`將觸發[`Jobs/Deploy/ECS.gitlab-ci.yml`模板中](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/Deploy/ECS.gitlab-ci.yml)定義的[`Jobs/Deploy/ECS.gitlab-ci.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/Deploy/ECS.gitlab-ci.yml) . 但是,不建議單獨[包含](../../ci/yaml/README.html#includetemplate)它. 該模板僅設計用于 Auto DevOps. 如果單獨包含它,它可能會發生意外更改,從而導致您的管道失敗. 同樣,此模板中的作業名稱也可能會更改. 不要在自己的管道中覆蓋這些作業的名稱,因為當名稱更改時,覆蓋將停止工作.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看