instruction: How do you implement GitLab CI/CD with Kubernetes deployment?
output: Auto DevOps | GitLab Docs Skip to main content Go to GitLab Docs homepage What's new? What's new? Get free trial Toggle menu Use GitLab GitLab Duo Extend Install Administer Subscribe Contribute Solutions Help us learn about your current experience with the documentation. Take the survey . Auto DevOps Tier : Free, Premium, Ultimate Offering : GitLab.com, GitLab Self-Managed, GitLab Dedicated Auto DevOps turns your code into production-ready applications without the usual configuration overhead. The entire DevOps lifecycle is pre-configured using industry best practices. Start with the defaults to ship quickly, then customize when you need more control. No complex configuration files or deep DevOps expertise is required. With Auto DevOps you get: CI/CD pipelines that automatically detect your language and framework Built-in security scanning to find vulnerabilities before they reach production Code quality and performance testing on every commit Ready-to-use review apps for previewing changes in a live environment Quick deployments to Kubernetes clusters Progressive deployment strategies that reduce risk and downtime For an introduction to Auto DevOps, watch Auto DevOps . Auto DevOps features Auto DevOps supports development during each of the DevOps stages . Stage Auto DevOps feature Build Auto Build Build Auto Dependency Scanning Test Auto Test Test Auto Browser Performance Testing Test Auto Code Intelligence Test Auto Code Quality Test Auto Container Scanning Deploy Auto Review Apps Deploy Auto Deploy Secure Auto Dynamic Application Security Testing (DAST) Secure Auto Static Application Security Testing (SAST) Secure Auto Secret Detection Comparison to application platforms and PaaS Auto DevOps provides features often included in an application platform or in a Platform as a Service (PaaS). Inspired by Heroku , Auto DevOps goes beyond it in multiple ways: Auto DevOps works with any Kubernetes cluster. There is no additional cost. You can use a cluster hosted by yourself or on any public cloud. Auto DevOps offers an incremental graduation path. If you need to customize , start by changing the templates and evolve from there. Get started with Auto DevOps To get started, you only need to enable Auto DevOps . This is enough to run an Auto DevOps pipeline to build and test your application. If you want to build, test, and deploy your app: View the requirements for deployment . Enable Auto DevOps . Deploy your app to a cloud provider . Enable or disable Auto DevOps Auto DevOps runs pipelines automatically only if a Dockerfile or matching buildpack exists. You can enable or disable Auto DevOps for a project or an entire group. Instance administrators can also set Auto DevOps as the default for all projects in an instance. Before enabling Auto DevOps, consider preparing it for deployment . If you don&rsquo;t, Auto DevOps can build and test your app, but cannot deploy it. Per project To use Auto DevOps for individual projects, you can enable it in a project-by-project basis. If you intend to use it for more projects, you can enable it for a group or an instance . This can save you the time of enabling it in each project. Prerequisites: You must have at least the Maintainer role for the project. Ensure your project does not have a .gitlab-ci.yml present. If present, your CI/CD configuration takes precedence over the Auto DevOps pipeline. To enable Auto DevOps for a project: On the left sidebar, select Search or go to and find your project. Select Settings > CI/CD . Expand Auto DevOps . Select the Default to Auto DevOps pipeline checkbox. Optional but recommended. Add the base domain . Optional but recommended. Choose the deployment strategy . Select Save changes . GitLab triggers the Auto DevOps pipeline on the default branch. To disable it, follow the same process and clear the Default to Auto DevOps pipeline checkbox. Per group When you enable Auto DevOps for a group, the subgroups and projects in that group inherit the configuration. You can save time by enabling Auto DevOps for a group instead of enabling it for each subgroup or project. When enabled for a group, you can still disable Auto DevOps for the subgroups and projects where you don&rsquo;t want to use it. Prerequisites: You must have the Owner role for the group. To enable Auto DevOps for a group: On the left sidebar, select Search or go to and find your group. Select Settings > CI/CD . Expand Auto DevOps . Select the Default to Auto DevOps pipeline checkbox. Select Save changes . To disable Auto DevOps for a group, follow the same process and clear the Default to Auto DevOps pipeline checkbox. After enabling Auto DevOps for a group, you can trigger the Auto DevOps pipeline for any project that belongs to that group: On the left sidebar, select Search or go to and find your project. Make sure the project doesn&rsquo;t contain a .gitlab-ci.yml file. Select Build > Pipelines . To trigger the Auto DevOps pipeline, select New pipeline . Deploy your app to a cloud provider Use Auto DevOps to deploy to a Kubernetes cluster on Google Kubernetes Engine (GKE) Use Auto DevOps to deploy to a Kubernetes cluster on Amazon Elastic Kubernetes Service (EKS) Use Auto DevOps to deploy to EC2 Use Auto DevOps to deploy to ECS Upgrade Auto DevOps dependencies when updating GitLab When updating GitLab, you might need to upgrade Auto DevOps dependencies to match your new GitLab version: Upgrading Auto DevOps resources : Auto DevOps template. Auto Deploy template. Auto Deploy image. Helm. Kubernetes. Environment variables. Upgrading PostgreSQL . Private registry support There is no guarantee that you can use a private container registry with Auto DevOps. Instead, use the GitLab container registry with Auto DevOps to simplify configuration and prevent any unforeseen issues. Install applications behind a proxy The GitLab integration with Helm does not support installing applications when behind a proxy. If you want to do so, you must inject proxy settings into the installation pods at runtime. Related topics Continuous methodologies Docker GitLab Runner Helm Kubernetes Prometheus Troubleshooting See troubleshooting Auto DevOps . Facebook LinkedIn Twitter YouTube Company About GitLab View pricing Try GitLab for free Feedback View page source Edit in web IDE Contribute to GitLab Suggest updates Help & Community Get certified Get support Post on the GitLab forum Resources Terms Privacy statement Use of generative AI Acceptable use of user licenses