[{"data":1,"prerenderedAt":1734},["ShallowReactive",2],{"/blog/gitops-with-gitlab-manage-the-agent":3,"navigation-en-us":984,"banner-en-us":1421,"footer-en-us":1429,"blog-post-authors-en-us-Viktor Nagy":1674,"blog-related-posts-en-us-gitops-with-gitlab-manage-the-agent":1689,"blog-share-wrapper-en-us":1714,"next-steps-en-us":1724},{"id":4,"title":5,"authors":6,"body":8,"category":961,"date":962,"description":963,"extension":964,"externalUrl":965,"faq":965,"featured":966,"heroImage":967,"hidePromo":966,"meta":968,"navigation":969,"path":970,"seo":971,"slug":976,"stem":977,"tags":978,"template":982,"updatedDate":965,"__hash__":983},"blogPosts/en-us/blog/gitops-with-gitlab-manage-the-agent.md","GitOps with GitLab: Turn a GitLab agent for Kubernetes installation to manage itself",[7],"Viktor Nagy",{"type":9,"value":10,"toc":947},"minimark",[11,24,32,37,40,72,76,79,87,92,95,111,120,124,127,139,145,148,152,166,169,187,190,196,241,255,264,451,458,529,534,555,559,562,654,660,747,750,755,762,765,769,791,795,798,813,825,868,871,878,884,902,906,909,935,943],[12,13,14],"p",{},[15,16,17,18,23],"em",{},"It is possible to use GitLab as a best-in-class GitOps tool, and this blog post series is going to show you how. These easy-to-follow tutorials will focus on different user problems, including provisioning, managing a base infrastructure, and deploying various third-party or custom applications on top of them. You can find the entire \"Ultimate guide to GitOps with GitLab\" tutorial series ",[19,20,22],"a",{"href":21},"/blog/the-ultimate-guide-to-gitops-with-gitlab/","here",".",[12,25,26,27,31],{},"In this article, we will build upon the first few articles, and will turn a GitLab agent for Kubernetes installation to manage itself. This is highly recommended for production usage as it puts your ",[28,29,30],"code",{},"agentk"," deployment under your GitOps project, and enables flawless and simple upgrades.",[33,34,36],"h2",{"id":35},"prerequisites","Prerequisites",[12,38,39],{},"This article builds on a few previous articles from this series and makes the following assumptions:",[41,42,43,55,61],"ul",{},[44,45,46,47,23],"li",{},"You have ",[19,48,50,51,54],{"href":49},"/blog/gitops-with-gitlab-connecting-the-cluster/","an agent connection set up using the ",[28,52,53],{},"kpt"," based method",[44,56,46,57,23],{},[19,58,60],{"href":59},"/blog/gitops-with-gitlab-secrets-management/","set up Bitnami's Sealed secrets",[44,62,63,64,23],{},"You understand ",[19,65,67,68,71],{"href":66},"/blog/gitops-with-gitlab/","how to use ",[28,69,70],{},"kustomize"," with the agent",[33,73,75],{"id":74},"the-goal","The goal",[12,77,78],{},"The goal of this tutorial is to manage a GitLab agent for Kubernetes deployment using that given agent. This has several benefits, including:",[41,80,81,84],{},[44,82,83],{},"By turning the agent to manage itself, the agent configuration and deployment is managed in code. As a result, all the code-oriented tools, including Merge Requests, Approvals, and branching are there to support your processes and policies.",[44,85,86],{},"Managing a fleet of agent installations in code enables simple upgrades of the deployments.",[88,89,91],"h3",{"id":90},"upgrading-gitlab-and-the-gitlab-agent-for-kubernetes","Upgrading GitLab and the GitLab agent for Kubernetes",[12,93,94],{},"A single GitLab instance might have dozens of agent connections. How should you upgrade all these deployments in a coordinated way? Turning everything into code simplifies the upgrade process a lot.",[12,96,97,98,103,104,107,108,110],{},"We have the GitLab - Agent ",[19,99,102],{"href":100,"rel":101},"https://docs.gitlab.com/user/clusters/agent/install/#upgrades-and-version-compatibility",[],"version compatibility documented",". The recommended approach is to first upgrade GitLab together with ",[28,105,106],{},"KAS",", the GitLab-side component of the connection, and then upgrade all the ",[28,109,30],{}," deployments.",[12,112,113,114,116,117,119],{},"If you manage the ",[28,115,30],{}," deployments in code, the upgrade requires only bumping the version number in code and the ",[28,118,30],{}," instances will take care of upgrading themselves.",[33,121,123],{"id":122},"turning-an-agent-installation-to-manage-itself","Turning an agent installation to manage itself",[12,125,126],{},"Let's do a quick recap and an overview how we wil use the tools.",[12,128,129,130,132,133,135,136,138],{},"We use ",[28,131,53],{}," to check out tagged ",[28,134,30],{}," deployment manifests. As the manifests are a set of ",[28,137,70],{}," layers, we can extend them with our own overlays if needed, or just customize the setup per our requirements. The agent connection requires a token to authenticate with GitLab. We can use Bitnami's Sealed Secrets to store an encrypted sycret in the repo.",[12,140,141,142,144],{},"All the above code can be put under version control safely. Moreover, we can use GitLab CI/CD to dehydrate the ",[28,143,70],{}," package into vanilla Kubernetes manifests that the agent can deal with.",[12,146,147],{},"Let's see the above in action!",[88,149,151],{"id":150},"kustomize-layer-with-encrypted-secret","Kustomize layer with encrypted secret",[12,153,154,155,157,158,161,162,165],{},"Based on the previous articles, we have the ",[28,156,53],{}," package checked out under ",[28,159,160],{},"packages/gitlab-agent",". We would like to store the vanilla Kubernetes manifests in the repository. We can run ",[28,163,164],{},"kustomize build packages/gitlab-agent/cluster > kubernetes/gitlab-agent.yaml"," to get the manifests, but this will include the unencrypted authentication token too.",[12,167,168],{},"To never output the unencrypted token, we should turn it into a sealed secret.",[12,170,171,172,175,176,179,180,183,184,23],{},"Navigate to the ",[28,173,174],{},"gitlab-agent"," Terraform project, and create a Kubernetes secret from the token ",[28,177,178],{},"terraform output -raw token_secret | kubectl create secret generic gitlab-agent-token -n gitlab-agent --dry-run=client --type=Opaque --from-file=token=/dev/stdin -o yaml > ../../ignored/gitlab-agent-token.yaml",". If you followed the instructions in the previous articles, the files under the ",[28,181,182],{},"ignored"," directory are never committed to ",[28,185,186],{},"git",[12,188,189],{},"We will turn this unencrypted secret into a sealed secret. As the secret will already exist in the cluster, we should instruct the Bitnami Sealed Secret controller to pull it under its management. Moreover, as kustomize applies a random hash to every secret name, we should enable renaming the secret within the namespace. We can achieve these by adding two annotations to the unencrypted secrets object.",[12,191,192,193],{},"Add the following annotations to ",[28,194,195],{},"ignored/gitlab-agent-token.yaml",[197,198,203],"pre",{"className":199,"code":200,"language":201,"meta":202,"style":202},"language-yaml shiki shiki-themes github-light","annotations:\n  sealedsecrets.bitnami.com/managed: \"true\"\n  sealedsecrets.bitnami.com/namespace-wide: \"true\"\n\n","yaml","",[28,204,205,218,231],{"__ignoreMap":202},[206,207,210,214],"span",{"class":208,"line":209},"line",1,[206,211,213],{"class":212},"shJU0","annotations",[206,215,217],{"class":216},"sgsFI",":\n",[206,219,221,224,227],{"class":208,"line":220},2,[206,222,223],{"class":212},"  sealedsecrets.bitnami.com/managed",[206,225,226],{"class":216},": ",[206,228,230],{"class":229},"sYBdl","\"true\"\n",[206,232,234,237,239],{"class":208,"line":233},3,[206,235,236],{"class":212},"  sealedsecrets.bitnami.com/namespace-wide",[206,238,226],{"class":216},[206,240,230],{"class":229},[12,242,243,244,247,248,251,252,254],{},"Next, we should create an encrypred secret from the ignored, unencrypted one running ",[28,245,246],{},"bin/seal-secret ignored/gitlab-agent-token.yaml > packages/gitlab-agent/sealed-secret"," in the root of our project. This creates the encrypted secret under ",[28,249,250],{},"packages/gitlab-agent/sealed-secret/SealedSecret.gitlab-agent-token.yaml",". Now, we need a kustomize layer that will use this secret instead of the original one that came with ",[28,253,53],{},". Let's create the following files around the encrypted secret:",[41,256,257],{},[44,258,259,260,263],{},"Create ",[28,261,262],{},"packages/gitlab-agent/sealed-secret/kustomization.yaml"," as:",[197,265,267],{"className":199,"code":266,"language":201,"meta":202,"style":202},"apiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nresources:\n- ../base\n- SealedSecret.gitlab-agent-token.yaml\ncomponents:\n- ../cluster/components/gitops-read-all\n- ../cluster/components/gitops-write-all\n- ../cluster/components/cilium-alert-read\nconfigurations:\n- configuration/sealed-secret-config.yaml\nsecretGenerator:\n- name: gitlab-agent-token\n  behavior: replace\n  type: Opaque\n  namespace: gitlab-agent\n  options:\n    annotations:\n      sealedsecrets.bitnami.com/managed: \"true\"\n      sealedsecrets.bitnami.com/namespace-wide: \"true\"\n\n",[28,268,269,279,289,296,305,313,321,329,337,345,353,361,369,382,393,404,415,423,431,441],{"__ignoreMap":202},[206,270,271,274,276],{"class":208,"line":209},[206,272,273],{"class":212},"apiVersion",[206,275,226],{"class":216},[206,277,278],{"class":229},"kustomize.config.k8s.io/v1beta1\n",[206,280,281,284,286],{"class":208,"line":220},[206,282,283],{"class":212},"kind",[206,285,226],{"class":216},[206,287,288],{"class":229},"Kustomization\n",[206,290,291,294],{"class":208,"line":233},[206,292,293],{"class":212},"resources",[206,295,217],{"class":216},[206,297,299,302],{"class":208,"line":298},4,[206,300,301],{"class":216},"- ",[206,303,304],{"class":229},"../base\n",[206,306,308,310],{"class":208,"line":307},5,[206,309,301],{"class":216},[206,311,312],{"class":229},"SealedSecret.gitlab-agent-token.yaml\n",[206,314,316,319],{"class":208,"line":315},6,[206,317,318],{"class":212},"components",[206,320,217],{"class":216},[206,322,324,326],{"class":208,"line":323},7,[206,325,301],{"class":216},[206,327,328],{"class":229},"../cluster/components/gitops-read-all\n",[206,330,332,334],{"class":208,"line":331},8,[206,333,301],{"class":216},[206,335,336],{"class":229},"../cluster/components/gitops-write-all\n",[206,338,340,342],{"class":208,"line":339},9,[206,341,301],{"class":216},[206,343,344],{"class":229},"../cluster/components/cilium-alert-read\n",[206,346,348,351],{"class":208,"line":347},10,[206,349,350],{"class":212},"configurations",[206,352,217],{"class":216},[206,354,356,358],{"class":208,"line":355},11,[206,357,301],{"class":216},[206,359,360],{"class":229},"configuration/sealed-secret-config.yaml\n",[206,362,364,367],{"class":208,"line":363},12,[206,365,366],{"class":212},"secretGenerator",[206,368,217],{"class":216},[206,370,372,374,377,379],{"class":208,"line":371},13,[206,373,301],{"class":216},[206,375,376],{"class":212},"name",[206,378,226],{"class":216},[206,380,381],{"class":229},"gitlab-agent-token\n",[206,383,385,388,390],{"class":208,"line":384},14,[206,386,387],{"class":212},"  behavior",[206,389,226],{"class":216},[206,391,392],{"class":229},"replace\n",[206,394,396,399,401],{"class":208,"line":395},15,[206,397,398],{"class":212},"  type",[206,400,226],{"class":216},[206,402,403],{"class":229},"Opaque\n",[206,405,407,410,412],{"class":208,"line":406},16,[206,408,409],{"class":212},"  namespace",[206,411,226],{"class":216},[206,413,414],{"class":229},"gitlab-agent\n",[206,416,418,421],{"class":208,"line":417},17,[206,419,420],{"class":212},"  options",[206,422,217],{"class":216},[206,424,426,429],{"class":208,"line":425},18,[206,427,428],{"class":212},"    annotations",[206,430,217],{"class":216},[206,432,434,437,439],{"class":208,"line":433},19,[206,435,436],{"class":212},"      sealedsecrets.bitnami.com/managed",[206,438,226],{"class":216},[206,440,230],{"class":229},[206,442,444,447,449],{"class":208,"line":443},20,[206,445,446],{"class":212},"      sealedsecrets.bitnami.com/namespace-wide",[206,448,226],{"class":216},[206,450,230],{"class":229},[41,452,453],{},[44,454,259,455,263],{},[28,456,457],{},"packages/gitlab-agent/sealed-secret/configuration/sealed-secret-config.yaml",[197,459,461],{"className":199,"code":460,"language":201,"meta":202,"style":202},"nameReference:\n- kind: Secret\n  fieldSpecs:\n  - kind: SealedSecret\n    path: metadata/name\n  - kind: SealedSecret\n    path: spec/template/metadata/name\n\n",[28,462,463,470,481,488,500,510,520],{"__ignoreMap":202},[206,464,465,468],{"class":208,"line":209},[206,466,467],{"class":212},"nameReference",[206,469,217],{"class":216},[206,471,472,474,476,478],{"class":208,"line":220},[206,473,301],{"class":216},[206,475,283],{"class":212},[206,477,226],{"class":216},[206,479,480],{"class":229},"Secret\n",[206,482,483,486],{"class":208,"line":233},[206,484,485],{"class":212},"  fieldSpecs",[206,487,217],{"class":216},[206,489,490,493,495,497],{"class":208,"line":298},[206,491,492],{"class":216},"  - ",[206,494,283],{"class":212},[206,496,226],{"class":216},[206,498,499],{"class":229},"SealedSecret\n",[206,501,502,505,507],{"class":208,"line":307},[206,503,504],{"class":212},"    path",[206,506,226],{"class":216},[206,508,509],{"class":229},"metadata/name\n",[206,511,512,514,516,518],{"class":208,"line":315},[206,513,492],{"class":216},[206,515,283],{"class":212},[206,517,226],{"class":216},[206,519,499],{"class":229},[206,521,522,524,526],{"class":208,"line":323},[206,523,504],{"class":212},[206,525,226],{"class":216},[206,527,528],{"class":229},"spec/template/metadata/name\n",[12,530,531,532,23],{},"This configuration enables us to reference the name of the Sealed Secret in the ",[28,533,366],{},[12,535,536,537,539,540,543,544,547,548,551,552,23],{},"We created a new ",[28,538,70],{}," overlay that builds on the ",[28,541,542],{},"base"," and ",[28,545,546],{},"cluster"," layers, but will use the sealed secret. We can hydrate this into vanilla manifests using ",[28,549,550],{},"kustomize build packages/gitlab-agent/sealed-secret > kubernetes/gitlab-agent.yaml",". This configuration does not include any unencrypted, sensitive data. As a result, we can commit it freely using ",[28,553,554],{},"git commit",[88,556,558],{"id":557},"adopt-the-agent-by-the-agent","Adopt the agent by the agent",[12,560,561],{},"Right now the agent configuration file looks similar to:",[197,563,565],{"className":199,"code":564,"language":201,"meta":202,"style":202},"gitops:\n  # Manifest projects are watched by the agent. Whenever a project changes,\n  # GitLab deploys the changes using the agent.\n  manifest_projects:\n  - id: path/to/your/project\n    default_namespace: gitlab-agent\n    # Paths inside of the repository to scan for manifest files.\n    # Directories with names starting with a dot are ignored.\n    paths:\n    - glob: 'kubernetes/test_config.yaml'\n    - glob: 'kubernetes/**/*.yaml'\n\n",[28,566,567,574,580,585,592,604,613,618,623,630,643],{"__ignoreMap":202},[206,568,569,572],{"class":208,"line":209},[206,570,571],{"class":212},"gitops",[206,573,217],{"class":216},[206,575,576],{"class":208,"line":220},[206,577,579],{"class":578},"sAwPA","  # Manifest projects are watched by the agent. Whenever a project changes,\n",[206,581,582],{"class":208,"line":233},[206,583,584],{"class":578},"  # GitLab deploys the changes using the agent.\n",[206,586,587,590],{"class":208,"line":298},[206,588,589],{"class":212},"  manifest_projects",[206,591,217],{"class":216},[206,593,594,596,599,601],{"class":208,"line":307},[206,595,492],{"class":216},[206,597,598],{"class":212},"id",[206,600,226],{"class":216},[206,602,603],{"class":229},"path/to/your/project\n",[206,605,606,609,611],{"class":208,"line":315},[206,607,608],{"class":212},"    default_namespace",[206,610,226],{"class":216},[206,612,414],{"class":229},[206,614,615],{"class":208,"line":323},[206,616,617],{"class":578},"    # Paths inside of the repository to scan for manifest files.\n",[206,619,620],{"class":208,"line":331},[206,621,622],{"class":578},"    # Directories with names starting with a dot are ignored.\n",[206,624,625,628],{"class":208,"line":339},[206,626,627],{"class":212},"    paths",[206,629,217],{"class":216},[206,631,632,635,638,640],{"class":208,"line":347},[206,633,634],{"class":216},"    - ",[206,636,637],{"class":212},"glob",[206,639,226],{"class":216},[206,641,642],{"class":229},"'kubernetes/test_config.yaml'\n",[206,644,645,647,649,651],{"class":208,"line":355},[206,646,634],{"class":216},[206,648,637],{"class":212},[206,650,226],{"class":216},[206,652,653],{"class":229},"'kubernetes/**/*.yaml'\n",[12,655,656,657,659],{},"If we would push the previously hydrated manifests, ",[28,658,30],{}," would fail applying them complaining about missing inventories. We can easily fix this by temporarily setting a looser inventory policy:",[197,661,663],{"className":199,"code":662,"language":201,"meta":202,"style":202},"gitops:\n  # Manifest projects are watched by the agent. Whenever a project changes,\n  # GitLab deploys the changes using the agent.\n  manifest_projects:\n  - id: path/to/your/project\n    default_namespace: gitlab-agent\n    inventory_policy: adopt_all\n    # Paths inside of the repository to scan for manifest files.\n    # Directories with names starting with a dot are ignored.\n    paths:\n    - glob: 'kubernetes/test_config.yaml'\n    - glob: 'kubernetes/**/*.yaml'\n\n",[28,664,665,671,675,679,685,695,703,713,717,721,727,737],{"__ignoreMap":202},[206,666,667,669],{"class":208,"line":209},[206,668,571],{"class":212},[206,670,217],{"class":216},[206,672,673],{"class":208,"line":220},[206,674,579],{"class":578},[206,676,677],{"class":208,"line":233},[206,678,584],{"class":578},[206,680,681,683],{"class":208,"line":298},[206,682,589],{"class":212},[206,684,217],{"class":216},[206,686,687,689,691,693],{"class":208,"line":307},[206,688,492],{"class":216},[206,690,598],{"class":212},[206,692,226],{"class":216},[206,694,603],{"class":229},[206,696,697,699,701],{"class":208,"line":315},[206,698,608],{"class":212},[206,700,226],{"class":216},[206,702,414],{"class":229},[206,704,705,708,710],{"class":208,"line":323},[206,706,707],{"class":212},"    inventory_policy",[206,709,226],{"class":216},[206,711,712],{"class":229},"adopt_all\n",[206,714,715],{"class":208,"line":331},[206,716,617],{"class":578},[206,718,719],{"class":208,"line":339},[206,720,622],{"class":578},[206,722,723,725],{"class":208,"line":347},[206,724,627],{"class":212},[206,726,217],{"class":216},[206,728,729,731,733,735],{"class":208,"line":355},[206,730,634],{"class":216},[206,732,637],{"class":212},[206,734,226],{"class":216},[206,736,642],{"class":229},[206,738,739,741,743,745],{"class":208,"line":363},[206,740,634],{"class":216},[206,742,637],{"class":212},[206,744,226],{"class":216},[206,746,653],{"class":229},[12,748,749],{},"With the inventory policy configured, we can commit and push our changes to GitLab. The agent will see the new configuration and resources, and will apply them into the cluster. From now on, you can change the code in the repository, push it to git, and the changes will be automatically applied into your cluster.",[751,752,754],"h4",{"id":753},"what-are-inventory-policies","What are inventory policies?",[12,756,757,758,761],{},"The GitLab agent for Kubernetes knows about the managed resources using so-called inventory objects. In technical terms, an inventory object is just a ",[28,759,760],{},"ConfigMap"," with a unique label. Whenever the agent sees an object that it should manage, it applies the same label. This way, every agent can easily find the resources that it manages.",[12,763,764],{},"You can read more about the possible inventory policy configurations in the documentation.",[751,766,768],{"id":767},"a-word-about-rbac","A word about RBAC",[12,770,771,772,774,775,543,778,781,782,784,785,787,788,790],{},"Depending on the authorization rights given to the ",[28,773,30],{}," deployment, not every change might be possible. For example, if you would like to create new ",[28,776,777],{},"ClusterRole",[28,779,780],{},"ClusterRoleBinding"," in a new ",[28,783,70],{}," overlay, and apply that with the Agent, that might fail. It will fail, if your current role-based access control (RBAC) does not allow your ",[28,786,30],{}," deployment to create these resources. In this case, you should either provide higher rights to your ",[28,789,30],{}," service account first or you should apply the changes manually from your command line.",[88,792,794],{"id":793},"automatic-hydration","Automatic hydration",[12,796,797],{},"Now, if you want to change something in your agent deployment, you need to take two actions:",[41,799,800,806],{},[44,801,802,803,805],{},"change the code in the ",[28,804,53],{}," package",[44,807,808,809,812],{},"run ",[28,810,811],{},"kustomize build"," to hydrate the results",[12,814,815,816,820,821,824],{},"Let's automate the second step so you can focus on your main job only. Following the setup of ",[19,817,819],{"href":818},"/blog/gitops-with-gitlab/#hydrating-the-manifests","a GitOps-style Auto DevOps pipeline",", we need to extend the ",[28,822,823],{},"hydrate-packages"," job:",[197,826,828],{"className":199,"code":827,"language":201,"meta":202,"style":202},"hydrate-packages:\n      ...\n      script:\n      - mkdir -p new_manifests\n      ...\n      - kustomize build packages/gitlab-agent/sealed-secret > new_manifests/gitlab-agent.yaml\n\n",[28,829,830,836,842,849,857,861],{"__ignoreMap":202},[206,831,832,834],{"class":208,"line":209},[206,833,823],{"class":212},[206,835,217],{"class":216},[206,837,838],{"class":208,"line":220},[206,839,841],{"class":840},"sYu0t","      ...\n",[206,843,844,847],{"class":208,"line":233},[206,845,846],{"class":212},"      script",[206,848,217],{"class":216},[206,850,851,854],{"class":208,"line":298},[206,852,853],{"class":216},"      - ",[206,855,856],{"class":229},"mkdir -p new_manifests\n",[206,858,859],{"class":208,"line":307},[206,860,841],{"class":840},[206,862,863,865],{"class":208,"line":315},[206,864,853],{"class":216},[206,866,867],{"class":229},"kustomize build packages/gitlab-agent/sealed-secret > new_manifests/gitlab-agent.yaml\n",[12,869,870],{},"We can re-use all the other automation as presented in the previous articles.",[33,872,874,875,877],{"id":873},"how-to-upgrade-agentk","How to upgrade ",[28,876,30],{},"?",[12,879,880,881,883],{},"Just to provide a practical example, let's see how we can use the above setup to easily upgrade an ",[28,882,30],{}," deployment to a newer version.",[12,885,886,887,890,891,893,894,897,898,901],{},"By running ",[28,888,889],{},"kustomize cfg set packages/gitlab-agent agent-version v14.9.1"," we set the intended ",[28,892,30],{}," version to be version ",[28,895,896],{},"14.9.1",". You can commit and push this change to git, and lay back in your chair to see how the changes are being rolled out across your clusters. You can point several agent configurations at the same ",[28,899,900],{},"kubernetes/gitlab-agent.yaml"," manifest, and upgrade all of them at once.",[33,903,905],{"id":904},"recap","Recap",[12,907,908],{},"In this article we have seen:",[41,910,911,914,926,932],{},[44,912,913],{},"how to turn an Agent deployment to manage itself",[44,915,916,917,919,920,922,923,925],{},"how to extend the default ",[28,918,53],{}," project with a custom ",[28,921,70],{}," overlay to customize the ",[28,924,30],{}," deployment",[44,927,928,929,931],{},"how to easily upgrade a set of ",[28,930,30],{}," deployments",[44,933,934],{},"how to pull already existing objects to be managed by the Agent using inventory policies",[12,936,937],{},[15,938,939,940,23],{},"Note: This is the final installment in this series of ",[19,941,942],{"href":21},"how to do GitOps with GitLab",[944,945,946],"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 .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);}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}",{"title":202,"searchDepth":220,"depth":220,"links":948},[949,950,953,958,960],{"id":35,"depth":220,"text":36},{"id":74,"depth":220,"text":75,"children":951},[952],{"id":90,"depth":233,"text":91},{"id":122,"depth":220,"text":123,"children":954},[955,956,957],{"id":150,"depth":233,"text":151},{"id":557,"depth":233,"text":558},{"id":793,"depth":233,"text":794},{"id":873,"depth":220,"text":959},"How to upgrade agentk?",{"id":904,"depth":220,"text":905},"engineering","2022-03-30","This is the eighth and last article in a series of tutorials on how to do GitOps with GitLab.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749670178/Blog/Hero%20Images/GitLab-Ops.png",{},true,"/en-us/blog/gitops-with-gitlab-manage-the-agent",{"title":972,"description":963,"ogTitle":972,"ogDescription":963,"noIndex":966,"ogImage":967,"ogUrl":973,"ogSiteName":974,"ogType":975,"canonicalUrls":973},"Self-managing Kubernetes agent installation with GitOps","https://about.gitlab.com/blog/gitops-with-gitlab-manage-the-agent","https://about.gitlab.com","article","gitops-with-gitlab-manage-the-agent","en-us/blog/gitops-with-gitlab-manage-the-agent",[979,980,981],"GitOps","kubernetes","tutorial","BlogPost","6SjWCy_e6iVoWhaMFlvqqhk7Zfgc-xQVC3QQpJ-jAgw",{"logo":985,"freeTrial":990,"sales":995,"login":1000,"items":1005,"search":1340,"minimal":1372,"duo":1391,"switchNav":1400,"pricingDeployment":1411},{"config":986},{"href":987,"dataGaName":988,"dataGaLocation":989},"/","gitlab logo","header",{"text":991,"config":992},"Get free trial",{"href":993,"dataGaName":994,"dataGaLocation":989},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":996,"config":997},"Request a demo",{"href":998,"dataGaName":999,"dataGaLocation":989},"/request-a-demo/","sales",{"text":1001,"config":1002},"Sign in",{"href":1003,"dataGaName":1004,"dataGaLocation":989},"https://gitlab.com/users/sign_in/","sign in",[1006,1092,1180,1185,1264,1318],{"text":1007,"left":969,"config":1008,"menu":1010},"Platform",{"dataNavLevelOne":1009},"platform",{"type":1011,"link":1012,"columns":1016,"feature":1081},"lists",{"text":1013,"config":1014},"Explore the Platform",{"href":1015,"dataGaName":1009,"dataGaLocation":989},"/platform/",[1017,1040,1063],{"title":1018,"items":1019},"DevOps",[1020,1025,1030,1035],{"text":1021,"config":1022},"CI/CD",{"href":1023,"dataGaLocation":989,"dataGaName":1024},"/solutions/continuous-integration/","ci/cd",{"text":1026,"config":1027},"Source Code Management",{"href":1028,"dataGaLocation":989,"dataGaName":1029},"/solutions/source-code-management/","source code management",{"text":1031,"config":1032},"Agile Delivery",{"href":1033,"dataGaLocation":989,"dataGaName":1034},"/solutions/agile-delivery/","agile delivery",{"text":1036,"config":1037},"Artifact Management",{"href":1038,"dataGaLocation":989,"dataGaName":1039},"/artifact-central/","artifact management",{"title":1041,"items":1042},"Security & Governance",[1043,1048,1053,1058],{"text":1044,"config":1045},"Application Security Testing",{"href":1046,"dataGaLocation":989,"dataGaName":1047},"/solutions/application-security-testing/","application security testing",{"text":1049,"config":1050},"Governance & Compliance",{"href":1051,"dataGaLocation":989,"dataGaName":1052},"/solutions/software-compliance/","governance and compliance",{"text":1054,"config":1055},"Secrets Management",{"href":1056,"dataGaLocation":989,"dataGaName":1057},"/gitlab-secrets-manager/","secrets management",{"text":1059,"config":1060},"Supply Chain Security",{"href":1061,"dataGaLocation":989,"dataGaName":1062},"/solutions/supply-chain/","supply chain security",{"title":1064,"items":1065},"Agentic AI & Context",[1066,1071,1076],{"text":1067,"config":1068},"Duo Agent Platform",{"href":1069,"dataGaLocation":989,"dataGaName":1070},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1072,"config":1073},"Orbit Context Graph",{"href":1074,"dataGaLocation":989,"dataGaName":1075},"/gitlab-orbit/","orbit",{"text":1077,"config":1078},"Visibility & Measurement",{"href":1079,"dataGaLocation":989,"dataGaName":1080},"/solutions/visibility-measurement/","visibility and measurement",{"config":1082,"title":1085,"text":1086,"link":1087},{"background":1083,"textColor":1084},"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":1088,"config":1089},"Read the announcement",{"href":1090,"dataGaName":1091,"dataGaLocation":989},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1093,"left":969,"config":1094,"menu":1096},"Solutions",{"dataNavLevelOne":1095},"solutions",{"type":1011,"link":1097,"columns":1101,"feature":1171},{"text":1098,"config":1099},"View all Solutions",{"href":1100,"dataGaName":1095,"dataGaLocation":989},"/solutions/",[1102,1120,1138],{"title":1103,"items":1104},"Outcomes",[1105,1110,1115],{"text":1106,"config":1107},"DevOps Modernization",{"href":1108,"dataGaLocation":989,"dataGaName":1109},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1111,"config":1112},"Security Modernization",{"href":1113,"dataGaLocation":989,"dataGaName":1114},"/assessments/security-modernization-assessment/","security modernization",{"text":1116,"config":1117},"AI Modernization",{"href":1118,"dataGaLocation":989,"dataGaName":1119},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1121,"items":1122},"By size",[1123,1128,1133],{"text":1124,"config":1125},"Enterprise",{"href":1126,"dataGaLocation":989,"dataGaName":1127},"/enterprise/","enterprise",{"text":1129,"config":1130},"Small Business",{"href":1131,"dataGaLocation":989,"dataGaName":1132},"/small-business/","small business",{"text":1134,"config":1135},"Startups",{"href":1136,"dataGaLocation":989,"dataGaName":1137},"/solutions/startups/","startups",{"title":1139,"items":1140},"Industries",[1141,1146,1151,1156,1161,1166],{"text":1142,"config":1143},"Financial Services",{"href":1144,"dataGaLocation":989,"dataGaName":1145},"/solutions/finance/","financial services",{"text":1147,"config":1148},"Public Sector",{"href":1149,"dataGaLocation":989,"dataGaName":1150},"/solutions/public-sector/","public sector",{"text":1152,"config":1153},"Telecommunications",{"href":1154,"dataGaLocation":989,"dataGaName":1155},"/solutions/telecommunications/","telecommunications",{"text":1157,"config":1158},"Automotive",{"href":1159,"dataGaLocation":989,"dataGaName":1160},"/solutions/automotive/","automotive",{"text":1162,"config":1163},"Education",{"href":1164,"dataGaLocation":989,"dataGaName":1165},"/solutions/education/","education",{"text":1167,"config":1168},"Aerospace",{"href":1169,"dataGaLocation":989,"dataGaName":1170},"/solutions/aerospace/","aerospace",{"config":1172,"title":1173,"text":1174,"link":1175},{"background":1083,"textColor":1084},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1176,"config":1177},"Explore the standard",{"href":1178,"dataGaName":1179,"dataGaLocation":989},"/gitlab-security-standard/","gitlab security standard",{"text":1181,"config":1182},"Pricing",{"href":1183,"dataGaName":1184,"dataGaLocation":989,"dataNavLevelOne":1184},"/pricing/","pricing",{"text":1186,"config":1187,"menu":1188},"Resources",{"dataNavLevelOne":293},{"type":1011,"link":1189,"columns":1193,"feature":1255},{"text":1190,"config":1191},"View all resources",{"href":1192,"dataGaName":293,"dataGaLocation":989},"/resources/",[1194,1227],{"title":1195,"items":1196},"Discover",[1197,1202,1207,1212,1217,1222],{"text":1198,"config":1199},"Docs",{"href":1200,"dataGaName":1201,"dataGaLocation":989},"https://docs.gitlab.com/","docs",{"text":1203,"config":1204},"University",{"href":1205,"dataGaName":1206,"dataGaLocation":989},"https://university.gitlab.com/","university",{"text":1208,"config":1209},"Demo Series",{"href":1210,"dataGaName":1211,"dataGaLocation":989},"/gitlab-technical-demo-series/","demo series",{"text":1213,"config":1214},"Demo Hub",{"href":1215,"dataGaName":1216,"dataGaLocation":989},"/demo-hub/","demo hub",{"text":1218,"config":1219},"Services",{"href":1220,"dataGaName":1221,"dataGaLocation":989},"/services/","services",{"text":1223,"config":1224},"Well Architected",{"href":1225,"dataGaName":1226,"dataGaLocation":989},"/resources/well-architected/","well architected",{"title":1228,"items":1229},"Connect",[1230,1235,1240,1245,1250],{"text":1231,"config":1232},"Blog",{"href":1233,"dataGaName":1234,"dataGaLocation":989},"/blog/","blog",{"text":1236,"config":1237},"Community",{"href":1238,"dataGaName":1239,"dataGaLocation":989},"/community/","community",{"text":1241,"config":1242},"Customers",{"href":1243,"dataGaName":1244,"dataGaLocation":989},"/customers/","customers",{"text":1246,"config":1247},"Partners",{"href":1248,"dataGaName":1249,"dataGaLocation":989},"/partners/","partners",{"text":1251,"config":1252},"Events",{"href":1253,"dataGaName":1254,"dataGaLocation":989},"/events/","events",{"config":1256,"title":1257,"text":1258,"link":1259},{"background":1083,"textColor":1084},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1260,"config":1261},"Read the latest",{"href":1262,"dataGaName":1263,"dataGaLocation":989},"/whats-new/","whats new",{"text":1265,"config":1266,"menu":1268},"Company",{"dataNavLevelOne":1267},"company",{"type":1011,"columns":1269},[1270],{"items":1271},[1272,1277,1283,1288,1293,1298,1303,1308,1313],{"text":1273,"config":1274},"About",{"href":1275,"dataGaName":1276,"dataGaLocation":989},"/company/","about",{"text":1278,"config":1279,"footerGa":1282},"Jobs",{"href":1280,"dataGaName":1281,"dataGaLocation":989},"/jobs/","jobs",{"dataGaName":1281},{"text":1284,"config":1285},"Press",{"href":1286,"dataGaName":1287,"dataGaLocation":989},"/press/","press",{"text":1289,"config":1290},"Handbook",{"href":1291,"dataGaName":1292,"dataGaLocation":989},"https://handbook.gitlab.com/","handbook",{"text":1294,"config":1295},"Leadership",{"href":1296,"dataGaName":1297,"dataGaLocation":989},"/company/team/e-group/","leadership",{"text":1299,"config":1300},"Investor relations",{"href":1301,"dataGaName":1302,"dataGaLocation":989},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1304,"config":1305},"Trust Center",{"href":1306,"dataGaName":1307,"dataGaLocation":989},"/security/","trust center",{"text":1309,"config":1310},"AI Transparency Center",{"href":1311,"dataGaName":1312,"dataGaLocation":989},"/ai-transparency-center/","ai transparency center",{"text":1314,"config":1315},"Newsletter",{"href":1316,"dataGaName":1317,"dataGaLocation":989},"/company/contact/#contact-forms","newsletter",{"text":1319,"config":1320,"menu":1321},"Contact us",{"dataNavLevelOne":1267},{"type":1011,"columns":1322},[1323],{"items":1324},[1325,1330,1335],{"text":1326,"config":1327},"Talk to sales",{"href":1328,"dataGaName":1329,"dataGaLocation":989},"/sales/","talk to sales",{"text":1331,"config":1332},"Support portal",{"href":1333,"dataGaName":1334,"dataGaLocation":989},"https://support.gitlab.com/hc/en-us","support portal",{"text":1336,"config":1337},"Customer portal",{"href":1338,"dataGaName":1339,"dataGaLocation":989},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1341,"login":1342,"suggestions":1349},"Close",{"text":1343,"link":1344},"To search repositories and projects, login to",{"text":1345,"config":1346},"gitlab.com",{"href":1003,"dataGaName":1347,"dataGaLocation":1348},"search login","search",{"text":1350,"default":1351},"Suggestions",[1352,1355,1358,1360,1364,1368],{"text":1353,"config":1354},"GitLab Duo Agent Platform",{"href":1069,"dataGaName":1353,"dataGaLocation":1348},{"text":1356,"config":1357},"Code Suggestions (AI)",{"href":1069,"dataGaName":1356,"dataGaLocation":1348},{"text":1021,"config":1359},{"href":1023,"dataGaName":1021,"dataGaLocation":1348},{"text":1361,"config":1362},"GitLab on AWS",{"href":1363,"dataGaName":1361,"dataGaLocation":1348},"/partners/technology-partners/aws/",{"text":1365,"config":1366},"GitLab on Google Cloud",{"href":1367,"dataGaName":1365,"dataGaLocation":1348},"/partners/technology-partners/google-cloud-platform/",{"text":1369,"config":1370},"Why GitLab?",{"href":1371,"dataGaName":1369,"dataGaLocation":1348},"/why-gitlab/",{"freeTrial":1373,"mobileIcon":1378,"desktopIcon":1383,"secondaryButton":1386},{"text":1374,"config":1375},"Start free trial",{"href":1376,"dataGaName":994,"dataGaLocation":1377},"https://gitlab.com/-/trials/new/","nav",{"altText":1379,"config":1380},"Gitlab Icon",{"src":1381,"dataGaName":1382,"dataGaLocation":1377},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1379,"config":1384},{"src":1385,"dataGaName":1382,"dataGaLocation":1377},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1387,"config":1388},"Get Started",{"href":1389,"dataGaName":1390,"dataGaLocation":1377},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1392,"mobileIcon":1396,"desktopIcon":1398},{"text":1393,"config":1394},"Learn more about GitLab Duo",{"href":1069,"dataGaName":1395,"dataGaLocation":1377},"gitlab duo",{"altText":1379,"config":1397},{"src":1381,"dataGaName":1382,"dataGaLocation":1377},{"altText":1379,"config":1399},{"src":1385,"dataGaName":1382,"dataGaLocation":1377},{"button":1401,"mobileIcon":1406,"desktopIcon":1408},{"text":1402,"config":1403},"/switch",{"href":1404,"dataGaName":1405,"dataGaLocation":1377},"#contact","switch",{"altText":1379,"config":1407},{"src":1381,"dataGaName":1382,"dataGaLocation":1377},{"altText":1379,"config":1409},{"src":1410,"dataGaName":1382,"dataGaLocation":1377},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1412,"mobileIcon":1417,"desktopIcon":1419},{"text":1413,"config":1414},"Back to pricing",{"href":1183,"dataGaName":1415,"dataGaLocation":1377,"icon":1416},"back to pricing","GoBack",{"altText":1379,"config":1418},{"src":1381,"dataGaName":1382,"dataGaLocation":1377},{"altText":1379,"config":1420},{"src":1385,"dataGaName":1382,"dataGaLocation":1377},{"title":1422,"button":1423,"config":1427},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1088,"config":1424},{"href":1090,"dataGaName":1425,"dataGaLocation":1426},"orbit-ga-banner","global-banner",{"layout":1428,"disabled":966},"release",{"data":1430},{"text":1431,"config":1432,"items":1437,"minimal":1663},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1433,"facebook":1434,"youtube":1435,"linkedin":1436},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1438,1486,1543,1590,1631],{"title":1181,"links":1439,"subMenu":1455},[1440,1445,1450],{"text":1441,"config":1442},"View plans",{"href":1183,"dataGaName":1443,"dataGaLocation":1444},"view plans","footer",{"text":1446,"config":1447},"Why Premium?",{"href":1448,"dataGaName":1449,"dataGaLocation":1444},"/pricing/premium/","why premium",{"text":1451,"config":1452},"Why Ultimate?",{"href":1453,"dataGaName":1454,"dataGaLocation":1444},"/pricing/ultimate/","why ultimate",[1456],{"title":1457,"links":1458},"Contact Us",[1459,1462,1464,1466,1471,1476,1481],{"text":1460,"config":1461},"Contact sales",{"href":1328,"dataGaName":999,"dataGaLocation":1444},{"text":1331,"config":1463},{"href":1333,"dataGaName":1334,"dataGaLocation":1444},{"text":1336,"config":1465},{"href":1338,"dataGaName":1339,"dataGaLocation":1444},{"text":1467,"config":1468},"Status",{"href":1469,"dataGaName":1470,"dataGaLocation":1444},"https://status.gitlab.com/","status",{"text":1472,"config":1473},"Terms of use",{"href":1474,"dataGaName":1475,"dataGaLocation":1444},"/terms/","terms of use",{"text":1477,"config":1478},"Privacy statement",{"href":1479,"dataGaName":1480,"dataGaLocation":1444},"/privacy/","privacy statement",{"text":1482,"config":1483},"Cookie preferences",{"dataGaName":1484,"dataGaLocation":1444,"id":1485,"isOneTrustButton":969},"cookie preferences","ot-sdk-btn",{"title":1007,"links":1487,"subMenu":1503},[1488,1491,1493,1495,1497,1499],{"text":1489,"config":1490},"Explore the platform",{"href":1015,"dataGaName":1009,"dataGaLocation":1444},{"text":1067,"config":1492},{"href":1069,"dataGaName":1070,"dataGaLocation":1444},{"text":1021,"config":1494},{"href":1023,"dataGaName":1024,"dataGaLocation":1444},{"text":1072,"config":1496},{"href":1074,"dataGaName":1075,"dataGaLocation":1444},{"text":1054,"config":1498},{"href":1056,"dataGaName":1057,"dataGaLocation":1444},{"text":1500,"config":1501},"Why GitLab",{"href":1371,"dataGaName":1502,"dataGaLocation":1444},"why gitlab",[1504],{"title":1505,"links":1506},"Topics",[1507,1511,1514,1518,1523,1528,1533,1538],{"text":1021,"config":1508},{"href":1509,"dataGaName":1510,"dataGaLocation":1444},"/topics/ci-cd/","cicd",{"text":979,"config":1512},{"href":1513,"dataGaName":571,"dataGaLocation":1444},"/topics/gitops/",{"text":1018,"config":1515},{"href":1516,"dataGaName":1517,"dataGaLocation":1444},"/topics/devops/","devops",{"text":1519,"config":1520},"Version Control",{"href":1521,"dataGaName":1522,"dataGaLocation":1444},"/topics/version-control/","version control",{"text":1524,"config":1525},"DevSecOps",{"href":1526,"dataGaName":1527,"dataGaLocation":1444},"/topics/devsecops/","devsecops",{"text":1529,"config":1530},"Cloud Native",{"href":1531,"dataGaName":1532,"dataGaLocation":1444},"/topics/cloud-native/","cloud native",{"text":1534,"config":1535},"AI for Coding",{"href":1536,"dataGaName":1537,"dataGaLocation":1444},"/topics/devops/ai-for-coding/","ai for coding",{"text":1539,"config":1540},"Agentic AI",{"href":1541,"dataGaName":1542,"dataGaLocation":1444},"/topics/agentic-ai/","agentic ai",{"title":1093,"links":1544},[1545,1548,1551,1554,1557,1560,1562,1564,1566,1568,1570,1573,1575,1578,1582,1586],{"text":1546,"config":1547},"DevOps modernization",{"href":1108,"dataGaName":1109,"dataGaLocation":1444},{"text":1549,"config":1550},"Security modernization",{"href":1113,"dataGaName":1114,"dataGaLocation":1444},{"text":1552,"config":1553},"AI modernization",{"href":1118,"dataGaName":1119,"dataGaLocation":1444},{"text":1555,"config":1556},"Financial services",{"href":1144,"dataGaName":1145,"dataGaLocation":1444},{"text":1558,"config":1559},"Public sector",{"href":1149,"dataGaName":1150,"dataGaLocation":1444},{"text":1152,"config":1561},{"href":1154,"dataGaName":1155,"dataGaLocation":1444},{"text":1157,"config":1563},{"href":1159,"dataGaName":1160,"dataGaLocation":1444},{"text":1162,"config":1565},{"href":1164,"dataGaName":1165,"dataGaLocation":1444},{"text":1167,"config":1567},{"href":1169,"dataGaName":1170,"dataGaLocation":1444},{"text":1124,"config":1569},{"href":1126,"dataGaName":1127,"dataGaLocation":1444},{"text":1571,"config":1572},"Small business",{"href":1131,"dataGaName":1132,"dataGaLocation":1444},{"text":1134,"config":1574},{"href":1136,"dataGaName":1137,"dataGaLocation":1444},{"text":979,"config":1576},{"href":1577,"dataGaName":571,"dataGaLocation":1444},"/solutions/gitops/",{"text":1579,"config":1580},"Software composition analysis",{"href":1061,"dataGaName":1581,"dataGaLocation":1444},"software composition analysis",{"text":1583,"config":1584},"Value stream management",{"href":1079,"dataGaName":1585,"dataGaLocation":1444},"value stream management",{"text":1587,"config":1588},"All solutions",{"href":1100,"dataGaName":1589,"dataGaLocation":1444},"all solutions",{"title":1186,"links":1591},[1592,1597,1602,1604,1606,1608,1610,1612,1614,1616,1618,1620,1622,1624,1627],{"text":1593,"config":1594},"Install",{"href":1595,"dataGaName":1596,"dataGaLocation":1444},"/install/","install",{"text":1598,"config":1599},"Quick start guides",{"href":1600,"dataGaName":1601,"dataGaLocation":1444},"/get-started/","quick setup checklists",{"text":1198,"config":1603},{"href":1200,"dataGaName":1201,"dataGaLocation":1444},{"text":1203,"config":1605},{"href":1205,"dataGaName":1206,"dataGaLocation":1444},{"text":1208,"config":1607},{"href":1210,"dataGaName":1211,"dataGaLocation":1444},{"text":1213,"config":1609},{"href":1215,"dataGaName":1216,"dataGaLocation":1444},{"text":1218,"config":1611},{"href":1220,"dataGaName":1221,"dataGaLocation":1444},{"text":1231,"config":1613},{"href":1233,"dataGaName":1234,"dataGaLocation":1444},{"text":1236,"config":1615},{"href":1238,"dataGaName":1239,"dataGaLocation":1444},{"text":1241,"config":1617},{"href":1243,"dataGaName":1244,"dataGaLocation":1444},{"text":1246,"config":1619},{"href":1248,"dataGaName":1249,"dataGaLocation":1444},{"text":1251,"config":1621},{"href":1253,"dataGaName":1254,"dataGaLocation":1444},{"text":1314,"config":1623},{"href":1316,"dataGaName":1317,"dataGaLocation":1444},{"text":1625,"config":1626},"What's new",{"href":1262,"dataGaName":1263,"dataGaLocation":1444},{"text":1628,"config":1629},"All resources",{"href":1192,"dataGaName":1630,"dataGaLocation":1444},"all resources",{"title":1265,"links":1632},[1633,1635,1637,1639,1641,1643,1645,1647,1649,1653,1658],{"text":1273,"config":1634},{"href":1275,"dataGaName":1267,"dataGaLocation":1444},{"text":1278,"config":1636},{"href":1280,"dataGaName":1281,"dataGaLocation":1444},{"text":1284,"config":1638},{"href":1286,"dataGaName":1287,"dataGaLocation":1444},{"text":1289,"config":1640},{"href":1291,"dataGaName":1292,"dataGaLocation":1444},{"text":1294,"config":1642},{"href":1296,"dataGaName":1297,"dataGaLocation":1444},{"text":1299,"config":1644},{"href":1301,"dataGaName":1302,"dataGaLocation":1444},{"text":1304,"config":1646},{"href":1306,"dataGaName":1307,"dataGaLocation":1444},{"text":1309,"config":1648},{"href":1311,"dataGaName":1312,"dataGaLocation":1444},{"text":1650,"config":1651},"Sustainability",{"href":1652,"dataGaName":1650,"dataGaLocation":1444},"/sustainability/",{"text":1654,"config":1655},"Diversity, inclusion and belonging (DIB)",{"href":1656,"dataGaName":1657,"dataGaLocation":1444},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1659,"config":1660},"Modern Slavery Transparency Statement",{"href":1661,"dataGaName":1662,"dataGaLocation":1444},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1664},[1665,1668,1671],{"text":1666,"config":1667},"Terms",{"href":1474,"dataGaName":1475,"dataGaLocation":1444},{"text":1669,"config":1670},"Cookies",{"dataGaName":1484,"dataGaLocation":1444,"id":1485,"isOneTrustButton":969},{"text":1672,"config":1673},"Privacy",{"href":1479,"dataGaName":1480,"dataGaLocation":1444},[1675],{"id":1676,"title":7,"body":965,"config":1677,"content":1679,"description":965,"extension":1683,"meta":1684,"navigation":969,"path":1685,"seo":1686,"stem":1687,"__hash__":1688},"blogAuthors/en-us/blog/authors/viktor-nagy.yml",{"template":1678},"BlogAuthor",{"name":7,"config":1680},{"headshot":1681,"ctfId":1682},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749662918/Blog/Author%20Headshots/nagy-headshot.jpg","nagyvgitlab","yml",{},"/en-us/blog/authors/viktor-nagy",{},"en-us/blog/authors/viktor-nagy","rM3QZ5iaPa1fk9rDH9Dq-owlsuuFm699I03jWP1dUY4",[1690,1698,1706],{"title":1691,"description":1692,"heroImage":1693,"category":961,"date":1694,"authors":1695,"slug":1697,"externalUrl":965},"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",[1696],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1699,"description":1700,"heroImage":1701,"category":961,"date":1702,"authors":1703,"slug":1705,"externalUrl":965},"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",[1704],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1707,"description":1708,"heroImage":1709,"category":961,"date":1710,"authors":1711,"slug":1713,"externalUrl":965},"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",[1712],"Isa Huerga","co-create-h1-2026",{"header":1715,"text":1716,"button":1720,"disclaimer":1723},"Start your free\n\n30-day GitLab trial\n",[1717,1718,1719],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":991,"config":1721},{"href":1722,"dataGaName":994,"dataGaLocation":1234},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1725,"blurb":1726,"button":1727,"secondaryButton":1732},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1728,"config":1729},"Get your free trial",{"href":1730,"dataGaName":994,"dataGaLocation":1731},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1460,"config":1733},{"href":1328,"dataGaName":999,"dataGaLocation":1731},1794911779032]