[{"data":1,"prerenderedAt":1133},["ShallowReactive",2],{"/blog/how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab":3,"navigation-en-us":382,"banner-en-us":819,"footer-en-us":827,"blog-post-authors-en-us-Sergey Nuzhdin":1073,"blog-related-posts-en-us-how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab":1088,"blog-share-wrapper-en-us":1113,"next-steps-en-us":1123},{"id":4,"title":5,"authors":6,"body":8,"category":353,"date":354,"description":355,"extension":356,"externalUrl":357,"faq":357,"featured":358,"heroImage":359,"hidePromo":358,"meta":360,"navigation":161,"path":367,"seo":368,"slug":373,"stem":374,"tags":375,"template":380,"updatedDate":357,"__hash__":381},"blogPosts/en-us/blog/how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab.md","How to create a CI/CD pipeline with Auto Deploy to Kubernetes using GitLab and Helm",[7],"Sergey Nuzhdin",{"type":9,"value":10,"toc":347},"minimark",[11,21,41,49,65,70,81,91,94,233,236,242,246,260,268,272,275,282,287,290,293,299,302,309,315,319,325,335,343],[12,13,14,15,20],"p",{},"Recently, I started working on a few Golang ",[16,17,19],"a",{"href":18},"/topics/microservices/","microservices",". I decided to try GitLab’s caching and split the job into multiple steps for better feedback in the UI.",[12,22,23,24,29,30,35,36,40],{},"Since my previous posts[",[16,25,28],{"href":26,"rel":27},"http://blog.lwolf.org/post/how-to-build-tiny-golang-docker-images-with-gitlab-ci/",[],"1","][",[16,31,34],{"href":32,"rel":33},"http://blog.lwolf.org/post/continuous-deployment-to-kubernetes-from-gitlab-ci/",[],"2","] about ",[16,37,39],{"href":38},"/topics/ci-cd/","CI/CD",", a lot has changed. I started using Helm charts for packaging applications, and stopped using docker-in-docker in gitlab-runner.",[12,42,43,44,48],{},"Here are a few of the main changes to my ",[45,46,47],"code",{},".gitlab-ci.yml"," file since my previous post:",[50,51,52,56,59,62],"ul",{},[53,54,55],"li",{},"no docker-in-docker",[53,57,58],{},"using cache for packages instead of a prebuilt image with dependencies",[53,60,61],{},"splitting everything into multiple steps",[53,63,64],{},"autodeploy to staging environment using Helm, a package manager for Kubernetes",[66,67,69],"h3",{"id":68},"building-golang-image","Building Golang image",[12,71,72,73,76,77,80],{},"Since Golang is very strict about the location of the project, we need to make some adjustments to the CI job. This is done in the ",[45,74,75],{},"before_script"," block. Simply create needed directories and link source code in there. Assuming that the official repository of the project is ",[45,78,79],{},"gitlab.example.com/librerio/libr_files"," it should look like this.",[82,83,89],"pre",{"className":84,"code":86,"language":87,"meta":88},[85],"language-text","variables:\n  APP_PATH: /go/src/gitlab.example.com/librerio/libr_files\n\nbefore_script:\n  - mkdir -p /go/src/gitlab.example.com/librerio/\n  - ln -s $PWD ${APP_PATH}\n  - mkdir -p ${APP_PATH}/vendor\n  - cd ${APP_PATH}\n\n","text","",[45,90,86],{"__ignoreMap":88},[12,92,93],{},"With this in place, we can install dependencies and build our binaries. To avoid the download of all packages on each build we need to configure caching. Due to the strange caching rules of GitLab, we need to add vendor directory to both cache and artifacts. Cache will give us an ability to use it between build jobs and artifacts will allow us to use it inside the same job.",[82,95,99],{"className":96,"code":97,"language":98,"meta":88,"style":88},"language-yaml shiki shiki-themes github-light","cache:\n  untracked: true\n  key: \"$CI_BUILD_REF_NAME\"\n  paths:\n    - vendor/\n\nsetup:\n  stage: setup\n  image: lwolf/golang-glide:0.12.3\n  script:\n    - glide install -v\n  artifacts:\n    paths:\n     - vendor/\n\n","yaml",[45,100,101,114,127,139,147,156,163,171,182,193,201,209,217,225],{"__ignoreMap":88},[102,103,106,110],"span",{"class":104,"line":105},"line",1,[102,107,109],{"class":108},"shJU0","cache",[102,111,113],{"class":112},"sgsFI",":\n",[102,115,117,120,123],{"class":104,"line":116},2,[102,118,119],{"class":108},"  untracked",[102,121,122],{"class":112},": ",[102,124,126],{"class":125},"sYu0t","true\n",[102,128,130,133,135],{"class":104,"line":129},3,[102,131,132],{"class":108},"  key",[102,134,122],{"class":112},[102,136,138],{"class":137},"sYBdl","\"$CI_BUILD_REF_NAME\"\n",[102,140,142,145],{"class":104,"line":141},4,[102,143,144],{"class":108},"  paths",[102,146,113],{"class":112},[102,148,150,153],{"class":104,"line":149},5,[102,151,152],{"class":112},"    - ",[102,154,155],{"class":137},"vendor/\n",[102,157,159],{"class":104,"line":158},6,[102,160,162],{"emptyLinePlaceholder":161},true,"\n",[102,164,166,169],{"class":104,"line":165},7,[102,167,168],{"class":108},"setup",[102,170,113],{"class":112},[102,172,174,177,179],{"class":104,"line":173},8,[102,175,176],{"class":108},"  stage",[102,178,122],{"class":112},[102,180,181],{"class":137},"setup\n",[102,183,185,188,190],{"class":104,"line":184},9,[102,186,187],{"class":108},"  image",[102,189,122],{"class":112},[102,191,192],{"class":137},"lwolf/golang-glide:0.12.3\n",[102,194,196,199],{"class":104,"line":195},10,[102,197,198],{"class":108},"  script",[102,200,113],{"class":112},[102,202,204,206],{"class":104,"line":203},11,[102,205,152],{"class":112},[102,207,208],{"class":137},"glide install -v\n",[102,210,212,215],{"class":104,"line":211},12,[102,213,214],{"class":108},"  artifacts",[102,216,113],{"class":112},[102,218,220,223],{"class":104,"line":219},13,[102,221,222],{"class":108},"    paths",[102,224,113],{"class":112},[102,226,228,231],{"class":104,"line":227},14,[102,229,230],{"class":112},"     - ",[102,232,155],{"class":137},[12,234,235],{},"Build step didn’t change, it’s still about building the binary. I add binary to artifacts.",[82,237,240],{"className":238,"code":239,"language":87,"meta":88},[85],"build:\n  stage: build\n  image: lwolf/golang-glide:0.12.3\n  script:\n    - cd ${APP_PATH}\n    - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o release/app -ldflags '-w -s'\n    - cd release\n  artifacts:\n    paths:\n     - release/\n\n",[45,241,239],{"__ignoreMap":88},[66,243,245],{"id":244},"test-stage","Test stage",[12,247,248,249,254,255,259],{},"To run golang tests with coverage reports I’m using the variation of ",[16,250,253],{"href":251,"rel":252},"https://github.com/mlafeldt/chef-runner/blob/v0.7.0/script/coverage",[],"this shell script",". It runs all tests in project subdirectories and creates a ",[16,256,258],{"href":257},"/blog/publish-code-coverage-report-with-gitlab-pages/","coverage report",". I changed it a bit before putting into a gist. I exclude vendor directory from tests.",[50,261,262],{},[53,263,264,265],{},"coverage regexp for gitlab-ci: ",[45,266,267],{},"^total:\\s*\\(statements\\)\\s*(\\d+.\\d+\\%)",[66,269,271],{"id":270},"deploy-stage","Deploy stage",[12,273,274],{},"I don’t use native GitLab’s integration with Kubernetes.",[12,276,277,278,281],{},"First I thought about creating Kubernetes secrets and mounting it to the gitlab-runner pod. But it’s very complicated. You need to upgrade deployment every time you want to add new Kubernetes cluster configurations. So I’m using GitLab’s CI/CD variables with base64 encoded Kubernetes config. Each project can have any number of configurations. The process is easy – create base64 string from the configuration file and copy it to the clipboard. After this, put it into ",[45,279,280],{},"kube_config"," variable (name it whatever you like).",[12,283,284],{},[45,285,286],{},"cat ~/.kube/config | base64 | pbcopy",[12,288,289],{},"If you do not own a full GitLab installation, consider creating a Kubernetes user with restricted permissions.",[12,291,292],{},"Then on the deploy stage, we can decode this variable back into the file and use it with kubectl.",[82,294,297],{"className":295,"code":296,"language":87,"meta":88},[85],"variables:\n  KUBECONFIG: /etc/deploy/config\n\ndeploy:\n  ...\n  before_script:\n    - mkdir -p /etc/deploy\n    - echo ${kube_config} | base64 -d > ${KUBECONFIG}\n    - kubectl config use-context homekube\n    - helm init --client-only\n    - helm repo add stable https://kubernetes-charts.storage.googleapis.com/\n    - helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/\n    - helm repo update\n\n",[45,298,296],{"__ignoreMap":88},[12,300,301],{},"Deploy stage also covers the case when you have several versions of the same application.",[12,303,304,305,308],{},"For example, you have two versions of API: v1.0 and v1.1. All you need to do is set ",[45,306,307],{},"appVersion"," in Chart.yaml file. Build system will check API version and either deploy or upgrade needed release.",[82,310,313],{"className":311,"code":312,"language":87,"meta":88},[85],"- export API_VERSION=\"$(grep \"appVersion\" Chart.yaml | cut -d\" \" -f2)\"\n- export RELEASE_NAME=\"libr-files-v${API_VERSION/./-}\"\n- export DEPLOYS=$(helm ls | grep $RELEASE_NAME | wc -l)\n- if [ ${DEPLOYS}  -eq 0 ]; then helm install --name=${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE}; else helm upgrade ${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE}; fi\n",[45,314,312],{"__ignoreMap":88},[66,316,318],{"id":317},"tldr","tl;dr",[82,320,323],{"className":321,"code":322,"language":87,"meta":88},[85],"Here is complete `.gitlab-ci.yaml` file for reference.\n\ncache:\n  untracked: true\n  key: \"$CI_BUILD_REF_NAME\"\n  paths:\n    - vendor/\n\nbefore_script:\n  - mkdir -p /go/src/gitlab.example.com/librerio/\n  - ln -s $PWD ${APP_PATH}\n  - mkdir -p ${APP_PATH}/vendor\n  - cd ${APP_PATH}\n\nstages:\n  - setup\n  - test\n  - build\n  - release\n  - deploy\n\nvariables:\n  CONTAINER_IMAGE: ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_BUILD_REF_NAME}_${CI_BUILD_REF}\n  CONTAINER_IMAGE_LATEST: ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest\n  DOCKER_DRIVER: overlay2\n\n  KUBECONFIG: /etc/deploy/config\n  STAGING_NAMESPACE: app-stage\n  PRODUCTION_NAMESPACE: app-prod\n\n  APP_PATH: /go/src/gitlab.example.com/librerio/libr_files\n  POSTGRES_USER: gorma\n  POSTGRES_DB: test-${CI_BUILD_REF}\n  POSTGRES_PASSWORD: gorma\n\nsetup:\n  stage: setup\n  image: lwolf/golang-glide:0.12.3\n  script:\n    - glide install -v\n  artifacts:\n    paths:\n     - vendor/\n\nbuild:\n  stage: build\n  image: lwolf/golang-glide:0.12.3\n  script:\n    - cd ${APP_PATH}\n    - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o release/app -ldflags '-w -s'\n    - cd release\n  artifacts:\n    paths:\n     - release/\n\nrelease:\n  stage: release\n  image: docker:latest\n  script:\n    - cd ${APP_PATH}/release\n    - docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}\n    - docker build -t ${CONTAINER_IMAGE} .\n    - docker tag ${CONTAINER_IMAGE} ${CONTAINER_IMAGE_LATEST}\n    - docker push ${CONTAINER_IMAGE}\n    - docker push ${CONTAINER_IMAGE_LATEST}\n\ntest:\n  stage: test\n  image: lwolf/golang-glide:0.12.3\n  services:\n    - postgres:9.6\n  script:\n    - cd ${APP_PATH}\n    - curl -o coverage.sh https://gist.githubusercontent.com/lwolf/3764a3b6cd08387e80aa6ca3b9534b8a/raw\n    - sh coverage.sh\n\ndeploy_staging:\n  stage: deploy\n  image: lwolf/helm-kubectl-docker:v152_213\n  before_script:\n    - mkdir -p /etc/deploy\n    - echo ${kube_config} | base64 -d > ${KUBECONFIG}\n    - kubectl config use-context homekube\n    - helm init --client-only\n    - helm repo add stable https://kubernetes-charts.storage.googleapis.com/\n    - helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/\n    - helm repo update\n  script:\n    - cd deploy/libr-files\n    - helm dep build\n    - export API_VERSION=\"$(grep \"appVersion\" Chart.yaml | cut -d\" \" -f2)\"\n    - export RELEASE_NAME=\"libr-files-v${API_VERSION/./-}\"\n    - export DEPLOYS=$(helm ls | grep $RELEASE_NAME | wc -l)\n    - if [ ${DEPLOYS}  -eq 0 ]; then helm install --name=${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE}; else helm upgrade ${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE}; fi\n  environment:\n    name: staging\n    url: https://librerio.example.com\n  only:\n  - master\n\n",[45,324,322],{"__ignoreMap":88},[12,326,327],{},[328,329,330,334],"em",{},[16,331,5],{"href":332,"rel":333},"http://blog.lwolf.org/post/how-to-create-ci-cd-pipeline-with-autodeploy-k8s-gitlab-helm/",[]," was originally published on Lwolfs Blog.",[12,336,337,338],{},"Photo by C Chapman on ",[16,339,342],{"href":340,"rel":341},"https://unsplash.com/",[],"Unsplash",[344,345,346],"style",{},"html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":88,"searchDepth":116,"depth":116,"links":348},[349,350,351,352],{"id":68,"depth":129,"text":69},{"id":244,"depth":129,"text":245},{"id":270,"depth":129,"text":271},{"id":317,"depth":129,"text":318},"engineering","2017-09-21","One user walks through how he tried GitLab caching and split the job into multiple steps to get better feedback.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664472/Blog/Hero%20Images/gitlabflatlogomap.png",{"excerpt":361},{"type":9,"value":362},[363],[12,364,14,365,20],{},[16,366,19],{"href":18},"/en-us/blog/how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab",{"title":369,"description":355,"ogTitle":369,"ogDescription":355,"noIndex":358,"ogImage":359,"ogUrl":370,"ogSiteName":371,"ogType":372,"canonicalUrls":370},"CI/CD pipeline: GitLab & Helm for Kubernetes Auto Deploy","https://about.gitlab.com/blog/how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab","https://about.gitlab.com","article","how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab","en-us/blog/how-to-create-a-ci-cd-pipeline-with-auto-deploy-to-kubernetes-using-gitlab",[376,377,378,379],"CI","CD","tutorial","user stories","BlogPost","NlUQRI-lBt-9i9IvDkiD2_eSSchherOkqWcL-4p9nO8",{"logo":383,"freeTrial":388,"sales":393,"login":398,"items":403,"search":738,"minimal":770,"duo":789,"switchNav":798,"pricingDeployment":809},{"config":384},{"href":385,"dataGaName":386,"dataGaLocation":387},"/","gitlab logo","header",{"text":389,"config":390},"Get free trial",{"href":391,"dataGaName":392,"dataGaLocation":387},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":394,"config":395},"Request a demo",{"href":396,"dataGaName":397,"dataGaLocation":387},"/request-a-demo/","sales",{"text":399,"config":400},"Sign in",{"href":401,"dataGaName":402,"dataGaLocation":387},"https://gitlab.com/users/sign_in/","sign in",[404,489,577,582,662,716],{"text":405,"left":161,"config":406,"menu":408},"Platform",{"dataNavLevelOne":407},"platform",{"type":409,"link":410,"columns":414,"feature":478},"lists",{"text":411,"config":412},"Explore the Platform",{"href":413,"dataGaName":407,"dataGaLocation":387},"/platform/",[415,437,460],{"title":416,"items":417},"DevOps",[418,422,427,432],{"text":39,"config":419},{"href":420,"dataGaLocation":387,"dataGaName":421},"/solutions/continuous-integration/","ci/cd",{"text":423,"config":424},"Source Code Management",{"href":425,"dataGaLocation":387,"dataGaName":426},"/solutions/source-code-management/","source code management",{"text":428,"config":429},"Agile Delivery",{"href":430,"dataGaLocation":387,"dataGaName":431},"/solutions/agile-delivery/","agile delivery",{"text":433,"config":434},"Artifact Management",{"href":435,"dataGaLocation":387,"dataGaName":436},"/artifact-central/","artifact management",{"title":438,"items":439},"Security & Governance",[440,445,450,455],{"text":441,"config":442},"Application Security Testing",{"href":443,"dataGaLocation":387,"dataGaName":444},"/solutions/application-security-testing/","application security testing",{"text":446,"config":447},"Governance & Compliance",{"href":448,"dataGaLocation":387,"dataGaName":449},"/solutions/software-compliance/","governance and compliance",{"text":451,"config":452},"Secrets Management",{"href":453,"dataGaLocation":387,"dataGaName":454},"/gitlab-secrets-manager/","secrets management",{"text":456,"config":457},"Supply Chain Security",{"href":458,"dataGaLocation":387,"dataGaName":459},"/solutions/supply-chain/","supply chain security",{"title":461,"items":462},"Agentic AI & Context",[463,468,473],{"text":464,"config":465},"Duo Agent Platform",{"href":466,"dataGaLocation":387,"dataGaName":467},"/gitlab-duo-agent-platform/","duo agent platform",{"text":469,"config":470},"Orbit Context Graph",{"href":471,"dataGaLocation":387,"dataGaName":472},"/gitlab-orbit/","orbit",{"text":474,"config":475},"Visibility & Measurement",{"href":476,"dataGaLocation":387,"dataGaName":477},"/solutions/visibility-measurement/","visibility and measurement",{"config":479,"title":482,"text":483,"link":484},{"background":480,"textColor":481},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":485,"config":486},"Read the announcement",{"href":487,"dataGaName":488,"dataGaLocation":387},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":490,"left":161,"config":491,"menu":493},"Solutions",{"dataNavLevelOne":492},"solutions",{"type":409,"link":494,"columns":498,"feature":568},{"text":495,"config":496},"View all Solutions",{"href":497,"dataGaName":492,"dataGaLocation":387},"/solutions/",[499,517,535],{"title":500,"items":501},"Outcomes",[502,507,512],{"text":503,"config":504},"DevOps Modernization",{"href":505,"dataGaLocation":387,"dataGaName":506},"/assessments/devops-modernization-assessment/","devops modernization",{"text":508,"config":509},"Security Modernization",{"href":510,"dataGaLocation":387,"dataGaName":511},"/assessments/security-modernization-assessment/","security modernization",{"text":513,"config":514},"AI Modernization",{"href":515,"dataGaLocation":387,"dataGaName":516},"/assessments/ai-modernization-assessment/","ai modernization",{"title":518,"items":519},"By size",[520,525,530],{"text":521,"config":522},"Enterprise",{"href":523,"dataGaLocation":387,"dataGaName":524},"/enterprise/","enterprise",{"text":526,"config":527},"Small Business",{"href":528,"dataGaLocation":387,"dataGaName":529},"/small-business/","small business",{"text":531,"config":532},"Startups",{"href":533,"dataGaLocation":387,"dataGaName":534},"/solutions/startups/","startups",{"title":536,"items":537},"Industries",[538,543,548,553,558,563],{"text":539,"config":540},"Financial Services",{"href":541,"dataGaLocation":387,"dataGaName":542},"/solutions/finance/","financial services",{"text":544,"config":545},"Public Sector",{"href":546,"dataGaLocation":387,"dataGaName":547},"/solutions/public-sector/","public sector",{"text":549,"config":550},"Telecommunications",{"href":551,"dataGaLocation":387,"dataGaName":552},"/solutions/telecommunications/","telecommunications",{"text":554,"config":555},"Automotive",{"href":556,"dataGaLocation":387,"dataGaName":557},"/solutions/automotive/","automotive",{"text":559,"config":560},"Education",{"href":561,"dataGaLocation":387,"dataGaName":562},"/solutions/education/","education",{"text":564,"config":565},"Aerospace",{"href":566,"dataGaLocation":387,"dataGaName":567},"/solutions/aerospace/","aerospace",{"config":569,"title":570,"text":571,"link":572},{"background":480,"textColor":481},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":573,"config":574},"Explore the standard",{"href":575,"dataGaName":576,"dataGaLocation":387},"/gitlab-security-standard/","gitlab security standard",{"text":578,"config":579},"Pricing",{"href":580,"dataGaName":581,"dataGaLocation":387,"dataNavLevelOne":581},"/pricing/","pricing",{"text":583,"config":584,"menu":586},"Resources",{"dataNavLevelOne":585},"resources",{"type":409,"link":587,"columns":591,"feature":653},{"text":588,"config":589},"View all resources",{"href":590,"dataGaName":585,"dataGaLocation":387},"/resources/",[592,625],{"title":593,"items":594},"Discover",[595,600,605,610,615,620],{"text":596,"config":597},"Docs",{"href":598,"dataGaName":599,"dataGaLocation":387},"https://docs.gitlab.com/","docs",{"text":601,"config":602},"University",{"href":603,"dataGaName":604,"dataGaLocation":387},"https://university.gitlab.com/","university",{"text":606,"config":607},"Demo Series",{"href":608,"dataGaName":609,"dataGaLocation":387},"/gitlab-technical-demo-series/","demo series",{"text":611,"config":612},"Demo Hub",{"href":613,"dataGaName":614,"dataGaLocation":387},"/demo-hub/","demo hub",{"text":616,"config":617},"Services",{"href":618,"dataGaName":619,"dataGaLocation":387},"/services/","services",{"text":621,"config":622},"Well Architected",{"href":623,"dataGaName":624,"dataGaLocation":387},"/resources/well-architected/","well architected",{"title":626,"items":627},"Connect",[628,633,638,643,648],{"text":629,"config":630},"Blog",{"href":631,"dataGaName":632,"dataGaLocation":387},"/blog/","blog",{"text":634,"config":635},"Community",{"href":636,"dataGaName":637,"dataGaLocation":387},"/community/","community",{"text":639,"config":640},"Customers",{"href":641,"dataGaName":642,"dataGaLocation":387},"/customers/","customers",{"text":644,"config":645},"Partners",{"href":646,"dataGaName":647,"dataGaLocation":387},"/partners/","partners",{"text":649,"config":650},"Events",{"href":651,"dataGaName":652,"dataGaLocation":387},"/events/","events",{"config":654,"title":655,"text":656,"link":657},{"background":480,"textColor":481},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":658,"config":659},"Read the latest",{"href":660,"dataGaName":661,"dataGaLocation":387},"/whats-new/","whats new",{"text":663,"config":664,"menu":666},"Company",{"dataNavLevelOne":665},"company",{"type":409,"columns":667},[668],{"items":669},[670,675,681,686,691,696,701,706,711],{"text":671,"config":672},"About",{"href":673,"dataGaName":674,"dataGaLocation":387},"/company/","about",{"text":676,"config":677,"footerGa":680},"Jobs",{"href":678,"dataGaName":679,"dataGaLocation":387},"/jobs/","jobs",{"dataGaName":679},{"text":682,"config":683},"Press",{"href":684,"dataGaName":685,"dataGaLocation":387},"/press/","press",{"text":687,"config":688},"Handbook",{"href":689,"dataGaName":690,"dataGaLocation":387},"https://handbook.gitlab.com/","handbook",{"text":692,"config":693},"Leadership",{"href":694,"dataGaName":695,"dataGaLocation":387},"/company/team/e-group/","leadership",{"text":697,"config":698},"Investor relations",{"href":699,"dataGaName":700,"dataGaLocation":387},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":702,"config":703},"Trust Center",{"href":704,"dataGaName":705,"dataGaLocation":387},"/security/","trust center",{"text":707,"config":708},"AI Transparency Center",{"href":709,"dataGaName":710,"dataGaLocation":387},"/ai-transparency-center/","ai transparency center",{"text":712,"config":713},"Newsletter",{"href":714,"dataGaName":715,"dataGaLocation":387},"/company/contact/#contact-forms","newsletter",{"text":717,"config":718,"menu":719},"Contact us",{"dataNavLevelOne":665},{"type":409,"columns":720},[721],{"items":722},[723,728,733],{"text":724,"config":725},"Talk to sales",{"href":726,"dataGaName":727,"dataGaLocation":387},"/sales/","talk to sales",{"text":729,"config":730},"Support portal",{"href":731,"dataGaName":732,"dataGaLocation":387},"https://support.gitlab.com/hc/en-us","support portal",{"text":734,"config":735},"Customer portal",{"href":736,"dataGaName":737,"dataGaLocation":387},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":739,"login":740,"suggestions":747},"Close",{"text":741,"link":742},"To search repositories and projects, login to",{"text":743,"config":744},"gitlab.com",{"href":401,"dataGaName":745,"dataGaLocation":746},"search login","search",{"text":748,"default":749},"Suggestions",[750,753,756,758,762,766],{"text":751,"config":752},"GitLab Duo Agent Platform",{"href":466,"dataGaName":751,"dataGaLocation":746},{"text":754,"config":755},"Code Suggestions (AI)",{"href":466,"dataGaName":754,"dataGaLocation":746},{"text":39,"config":757},{"href":420,"dataGaName":39,"dataGaLocation":746},{"text":759,"config":760},"GitLab on AWS",{"href":761,"dataGaName":759,"dataGaLocation":746},"/partners/technology-partners/aws/",{"text":763,"config":764},"GitLab on Google Cloud",{"href":765,"dataGaName":763,"dataGaLocation":746},"/partners/technology-partners/google-cloud-platform/",{"text":767,"config":768},"Why GitLab?",{"href":769,"dataGaName":767,"dataGaLocation":746},"/why-gitlab/",{"freeTrial":771,"mobileIcon":776,"desktopIcon":781,"secondaryButton":784},{"text":772,"config":773},"Start free trial",{"href":774,"dataGaName":392,"dataGaLocation":775},"https://gitlab.com/-/trials/new/","nav",{"altText":777,"config":778},"Gitlab Icon",{"src":779,"dataGaName":780,"dataGaLocation":775},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":777,"config":782},{"src":783,"dataGaName":780,"dataGaLocation":775},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":785,"config":786},"Get Started",{"href":787,"dataGaName":788,"dataGaLocation":775},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":790,"mobileIcon":794,"desktopIcon":796},{"text":791,"config":792},"Learn more about GitLab Duo",{"href":466,"dataGaName":793,"dataGaLocation":775},"gitlab duo",{"altText":777,"config":795},{"src":779,"dataGaName":780,"dataGaLocation":775},{"altText":777,"config":797},{"src":783,"dataGaName":780,"dataGaLocation":775},{"button":799,"mobileIcon":804,"desktopIcon":806},{"text":800,"config":801},"/switch",{"href":802,"dataGaName":803,"dataGaLocation":775},"#contact","switch",{"altText":777,"config":805},{"src":779,"dataGaName":780,"dataGaLocation":775},{"altText":777,"config":807},{"src":808,"dataGaName":780,"dataGaLocation":775},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":810,"mobileIcon":815,"desktopIcon":817},{"text":811,"config":812},"Back to pricing",{"href":580,"dataGaName":813,"dataGaLocation":775,"icon":814},"back to pricing","GoBack",{"altText":777,"config":816},{"src":779,"dataGaName":780,"dataGaLocation":775},{"altText":777,"config":818},{"src":783,"dataGaName":780,"dataGaLocation":775},{"title":820,"button":821,"config":825},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":485,"config":822},{"href":487,"dataGaName":823,"dataGaLocation":824},"orbit-ga-banner","global-banner",{"layout":826,"disabled":358},"release",{"data":828},{"text":829,"config":830,"items":835,"minimal":1062},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":831,"facebook":832,"youtube":833,"linkedin":834},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[836,884,942,989,1030],{"title":578,"links":837,"subMenu":853},[838,843,848],{"text":839,"config":840},"View plans",{"href":580,"dataGaName":841,"dataGaLocation":842},"view plans","footer",{"text":844,"config":845},"Why Premium?",{"href":846,"dataGaName":847,"dataGaLocation":842},"/pricing/premium/","why premium",{"text":849,"config":850},"Why Ultimate?",{"href":851,"dataGaName":852,"dataGaLocation":842},"/pricing/ultimate/","why ultimate",[854],{"title":855,"links":856},"Contact Us",[857,860,862,864,869,874,879],{"text":858,"config":859},"Contact sales",{"href":726,"dataGaName":397,"dataGaLocation":842},{"text":729,"config":861},{"href":731,"dataGaName":732,"dataGaLocation":842},{"text":734,"config":863},{"href":736,"dataGaName":737,"dataGaLocation":842},{"text":865,"config":866},"Status",{"href":867,"dataGaName":868,"dataGaLocation":842},"https://status.gitlab.com/","status",{"text":870,"config":871},"Terms of use",{"href":872,"dataGaName":873,"dataGaLocation":842},"/terms/","terms of use",{"text":875,"config":876},"Privacy statement",{"href":877,"dataGaName":878,"dataGaLocation":842},"/privacy/","privacy statement",{"text":880,"config":881},"Cookie preferences",{"dataGaName":882,"dataGaLocation":842,"id":883,"isOneTrustButton":161},"cookie preferences","ot-sdk-btn",{"title":405,"links":885,"subMenu":901},[886,889,891,893,895,897],{"text":887,"config":888},"Explore the platform",{"href":413,"dataGaName":407,"dataGaLocation":842},{"text":464,"config":890},{"href":466,"dataGaName":467,"dataGaLocation":842},{"text":39,"config":892},{"href":420,"dataGaName":421,"dataGaLocation":842},{"text":469,"config":894},{"href":471,"dataGaName":472,"dataGaLocation":842},{"text":451,"config":896},{"href":453,"dataGaName":454,"dataGaLocation":842},{"text":898,"config":899},"Why GitLab",{"href":769,"dataGaName":900,"dataGaLocation":842},"why gitlab",[902],{"title":903,"links":904},"Topics",[905,908,913,917,922,927,932,937],{"text":39,"config":906},{"href":38,"dataGaName":907,"dataGaLocation":842},"cicd",{"text":909,"config":910},"GitOps",{"href":911,"dataGaName":912,"dataGaLocation":842},"/topics/gitops/","gitops",{"text":416,"config":914},{"href":915,"dataGaName":916,"dataGaLocation":842},"/topics/devops/","devops",{"text":918,"config":919},"Version Control",{"href":920,"dataGaName":921,"dataGaLocation":842},"/topics/version-control/","version control",{"text":923,"config":924},"DevSecOps",{"href":925,"dataGaName":926,"dataGaLocation":842},"/topics/devsecops/","devsecops",{"text":928,"config":929},"Cloud Native",{"href":930,"dataGaName":931,"dataGaLocation":842},"/topics/cloud-native/","cloud native",{"text":933,"config":934},"AI for Coding",{"href":935,"dataGaName":936,"dataGaLocation":842},"/topics/devops/ai-for-coding/","ai for coding",{"text":938,"config":939},"Agentic AI",{"href":940,"dataGaName":941,"dataGaLocation":842},"/topics/agentic-ai/","agentic ai",{"title":490,"links":943},[944,947,950,953,956,959,961,963,965,967,969,972,974,977,981,985],{"text":945,"config":946},"DevOps modernization",{"href":505,"dataGaName":506,"dataGaLocation":842},{"text":948,"config":949},"Security modernization",{"href":510,"dataGaName":511,"dataGaLocation":842},{"text":951,"config":952},"AI modernization",{"href":515,"dataGaName":516,"dataGaLocation":842},{"text":954,"config":955},"Financial services",{"href":541,"dataGaName":542,"dataGaLocation":842},{"text":957,"config":958},"Public sector",{"href":546,"dataGaName":547,"dataGaLocation":842},{"text":549,"config":960},{"href":551,"dataGaName":552,"dataGaLocation":842},{"text":554,"config":962},{"href":556,"dataGaName":557,"dataGaLocation":842},{"text":559,"config":964},{"href":561,"dataGaName":562,"dataGaLocation":842},{"text":564,"config":966},{"href":566,"dataGaName":567,"dataGaLocation":842},{"text":521,"config":968},{"href":523,"dataGaName":524,"dataGaLocation":842},{"text":970,"config":971},"Small business",{"href":528,"dataGaName":529,"dataGaLocation":842},{"text":531,"config":973},{"href":533,"dataGaName":534,"dataGaLocation":842},{"text":909,"config":975},{"href":976,"dataGaName":912,"dataGaLocation":842},"/solutions/gitops/",{"text":978,"config":979},"Software composition analysis",{"href":458,"dataGaName":980,"dataGaLocation":842},"software composition analysis",{"text":982,"config":983},"Value stream management",{"href":476,"dataGaName":984,"dataGaLocation":842},"value stream management",{"text":986,"config":987},"All solutions",{"href":497,"dataGaName":988,"dataGaLocation":842},"all solutions",{"title":583,"links":990},[991,996,1001,1003,1005,1007,1009,1011,1013,1015,1017,1019,1021,1023,1026],{"text":992,"config":993},"Install",{"href":994,"dataGaName":995,"dataGaLocation":842},"/install/","install",{"text":997,"config":998},"Quick start guides",{"href":999,"dataGaName":1000,"dataGaLocation":842},"/get-started/","quick setup checklists",{"text":596,"config":1002},{"href":598,"dataGaName":599,"dataGaLocation":842},{"text":601,"config":1004},{"href":603,"dataGaName":604,"dataGaLocation":842},{"text":606,"config":1006},{"href":608,"dataGaName":609,"dataGaLocation":842},{"text":611,"config":1008},{"href":613,"dataGaName":614,"dataGaLocation":842},{"text":616,"config":1010},{"href":618,"dataGaName":619,"dataGaLocation":842},{"text":629,"config":1012},{"href":631,"dataGaName":632,"dataGaLocation":842},{"text":634,"config":1014},{"href":636,"dataGaName":637,"dataGaLocation":842},{"text":639,"config":1016},{"href":641,"dataGaName":642,"dataGaLocation":842},{"text":644,"config":1018},{"href":646,"dataGaName":647,"dataGaLocation":842},{"text":649,"config":1020},{"href":651,"dataGaName":652,"dataGaLocation":842},{"text":712,"config":1022},{"href":714,"dataGaName":715,"dataGaLocation":842},{"text":1024,"config":1025},"What's new",{"href":660,"dataGaName":661,"dataGaLocation":842},{"text":1027,"config":1028},"All resources",{"href":590,"dataGaName":1029,"dataGaLocation":842},"all resources",{"title":663,"links":1031},[1032,1034,1036,1038,1040,1042,1044,1046,1048,1052,1057],{"text":671,"config":1033},{"href":673,"dataGaName":665,"dataGaLocation":842},{"text":676,"config":1035},{"href":678,"dataGaName":679,"dataGaLocation":842},{"text":682,"config":1037},{"href":684,"dataGaName":685,"dataGaLocation":842},{"text":687,"config":1039},{"href":689,"dataGaName":690,"dataGaLocation":842},{"text":692,"config":1041},{"href":694,"dataGaName":695,"dataGaLocation":842},{"text":697,"config":1043},{"href":699,"dataGaName":700,"dataGaLocation":842},{"text":702,"config":1045},{"href":704,"dataGaName":705,"dataGaLocation":842},{"text":707,"config":1047},{"href":709,"dataGaName":710,"dataGaLocation":842},{"text":1049,"config":1050},"Sustainability",{"href":1051,"dataGaName":1049,"dataGaLocation":842},"/sustainability/",{"text":1053,"config":1054},"Diversity, inclusion and belonging (DIB)",{"href":1055,"dataGaName":1056,"dataGaLocation":842},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1058,"config":1059},"Modern Slavery Transparency Statement",{"href":1060,"dataGaName":1061,"dataGaLocation":842},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1063},[1064,1067,1070],{"text":1065,"config":1066},"Terms",{"href":872,"dataGaName":873,"dataGaLocation":842},{"text":1068,"config":1069},"Cookies",{"dataGaName":882,"dataGaLocation":842,"id":883,"isOneTrustButton":161},{"text":1071,"config":1072},"Privacy",{"href":877,"dataGaName":878,"dataGaLocation":842},[1074],{"id":1075,"title":7,"body":357,"config":1076,"content":1078,"description":357,"extension":1082,"meta":1083,"navigation":161,"path":1084,"seo":1085,"stem":1086,"__hash__":1087},"blogAuthors/en-us/blog/authors/sergey-nuzhdin.yml",{"template":1077},"BlogAuthor",{"name":7,"config":1079},{"headshot":1080,"ctfId":1081},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659488/Blog/Author%20Headshots/gitlab-logo-extra-whitespace.png","Sergey-Nuzhdin","yml",{},"/en-us/blog/authors/sergey-nuzhdin",{},"en-us/blog/authors/sergey-nuzhdin","Rw-eqM54SPd8wD7c8qyy9F-ldhwUAOjD9xSLRx5pzZE",[1089,1097,1105],{"title":1090,"description":1091,"heroImage":1092,"category":353,"date":1093,"authors":1094,"slug":1096,"externalUrl":357},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1095],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1098,"description":1099,"heroImage":1100,"category":353,"date":1101,"authors":1102,"slug":1104,"externalUrl":357},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1103],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1106,"description":1107,"heroImage":1108,"category":353,"date":1109,"authors":1110,"slug":1112,"externalUrl":357},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1111],"Isa Huerga","co-create-h1-2026",{"header":1114,"text":1115,"button":1119,"disclaimer":1122},"Start your free\n\n30-day GitLab trial\n",[1116,1117,1118],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":389,"config":1120},{"href":1121,"dataGaName":392,"dataGaLocation":632},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1124,"blurb":1125,"button":1126,"secondaryButton":1131},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1127,"config":1128},"Get your free trial",{"href":1129,"dataGaName":392,"dataGaLocation":1130},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":858,"config":1132},{"href":726,"dataGaName":397,"dataGaLocation":1130},1794911779087]