[{"data":1,"prerenderedAt":1934},["ShallowReactive",2],{"/blog/set-up-flux-for-gitops-on-openshift":3,"navigation-en-us":1183,"banner-en-us":1620,"footer-en-us":1628,"blog-post-authors-en-us-Bart Zhang":1874,"blog-related-posts-en-us-set-up-flux-for-gitops-on-openshift":1889,"blog-share-wrapper-en-us":1914,"next-steps-en-us":1924},{"id":4,"title":5,"authors":6,"body":8,"category":1163,"date":1164,"description":1165,"extension":1166,"externalUrl":1167,"faq":1167,"featured":1168,"heroImage":1169,"hidePromo":1168,"meta":1170,"navigation":623,"path":1171,"seo":1172,"slug":1176,"stem":1177,"tags":1178,"template":1181,"updatedDate":1167,"__hash__":1182},"blogPosts/en-us/blog/set-up-flux-for-gitops-on-openshift.md","Set up Flux for GitOps to deploy workloads on OpenShift",[7],"Bart Zhang",{"type":9,"value":10,"toc":1155},"minimark",[11,22,37,42,61,65,68,71,82,85,91,100,108,111,182,185,367,370,413,416,425,448,451,454,457,507,510,566,568,574,577,580,583,591,605,798,814,817,867,869,895,898,953,955,961,964,970,972,1087,1090,1093,1096,1099,1108,1113,1137,1146,1151],[12,13,14,15,21],"p",{},"In February, we announced that ",[16,17,20],"a",{"href":18,"rel":19},"https://about.gitlab.com/blog/why-did-we-choose-to-integrate-fluxcd-with-gitlab/",[],"Flux CD would be our recommended approach to do GitOps with GitLab",". This tutorial explains how to set up GitLab and Flux to deploy workloads on Red Hat OpenShift. You’ll set up a sample project, complete a bootstrap Flux installation, and authenticate your installation with a project deploy token. By the end of this tutorial, you should be able to deploy an example NGINX workload to OpenShift from a GitLab Repo via Flux.",[12,23,24,25,30,31,36],{},"You can find the fully configured tutorial project in ",[16,26,29],{"href":27,"rel":28},"https://gitlab.com/gitlab-partner-demos/red-hat-demos/flux",[],"this GitLab repository",". It works in conjunction with ",[16,32,35],{"href":33,"rel":34},"https://gitlab.com/gitlab-partner-demos/red-hat-demos/web-app-manifests",[],"this repository",", which contains the example OpenShift manifest.",[38,39,41],"h3",{"id":40},"to-set-up-flux-for-gitops","To set up Flux for GitOps:",[43,44,45,49,52,55,58],"ol",{},[46,47,48],"li",{},"Create a personal access token",[46,50,51],{},"Create the Flux repository",[46,53,54],{},"Create the OpenShift manifest repository",[46,56,57],{},"Configure Flux to sync your manifests",[46,59,60],{},"Verify your configuration",[38,62,64],{"id":63},"prerequisites","Prerequisites:",[12,66,67],{},"You must have an OpenShift cluster running. Cluster-admin privileges are required to install Flux on OpenShift, which can either be installed via OperatorHub or the CLI.",[12,69,70],{},"When installing Flux with CLI, you need to set the nonroot SCC for all controllers in the flux-system namespace like this:",[72,73,79],"pre",{"className":74,"code":76,"language":77,"meta":78},[75],"language-text","NS=\"flux-system\"\noc adm policy add-scc-to-user nonroot system:serviceaccount:${NS}:kustomize-controller\noc adm policy add-scc-to-user nonroot system:serviceaccount:${NS}:helm-controller\noc adm policy add-scc-to-user nonroot system:serviceaccount:${NS}:source-controller\noc adm policy add-scc-to-user nonroot system:serviceaccount:${NS}:notification-controller\noc adm policy add-scc-to-user nonroot system:serviceaccount:${NS}:image-automation-controller\noc adm policy add-scc-to-user nonroot system:serviceaccount:${NS}:image-reflector-controller\n","text","",[80,81,76],"code",{"__ignoreMap":78},[12,83,84],{},"Expected output:",[72,86,89],{"className":87,"code":88,"language":77,"meta":78},[75],"clusterrole.rbac.authorization.k8s.io/system:openshift:scc:nonroot added: \"kustomize-controller\"\nclusterrole.rbac.authorization.k8s.io/system:openshift:scc:nonroot added: \"helm-controller\"\nclusterrole.rbac.authorization.k8s.io/system:openshift:scc:nonroot added: \"source-controller\"\nclusterrole.rbac.authorization.k8s.io/system:openshift:scc:nonroot added: \"notification-controller\"\nclusterrole.rbac.authorization.k8s.io/system:openshift:scc:nonroot added: \"image-automation-controller\"\nclusterrole.rbac.authorization.k8s.io/system:openshift:scc:nonroot added: \"image-reflector-controller\"\n",[80,90,88],{"__ignoreMap":78},[12,92,93,94,99],{},"Also, you'll need to ",[16,95,98],{"href":96,"rel":97},"https://access.redhat.com/documentation/en-us/openshift_container_platform/4.8/html/security_and_compliance/seccomp-profiles",[],"patch your Kustomization"," to remove the SecComp Profile and enforce runUserAs to the same UID provided by the images to prevent OpenShift to alter the user expected by our controllers, prior to bootstrapping the cluster.",[12,101,102,103,107],{},"You’ll need to create a Git repository and clone it locally. I chose to create ",[16,104,106],{"href":33,"rel":105},[],"the web-app-manifests repository"," to store my manifest file once it is created through the following steps.",[12,109,110],{},"Create the file structure required by bootstrap using the following command:",[72,112,116],{"className":113,"code":114,"language":115,"meta":78,"style":78},"language-shell shiki shiki-themes github-light","git clone https://gitlab.com/gitlab-partner-demos/red-hat-demos/flux/\ncd flux\nmkdir -p clusters/my-cluster/flux-system\ntouch clusters/my-cluster/flux-system/gotk-components.yaml \\\n    clusters/my-cluster/flux-system/gotk-sync.yaml \\\n    clusters/my-cluster/flux-system/kustomization.yaml\n\n","shell",[80,117,118,134,144,156,168,176],{"__ignoreMap":78},[119,120,123,127,131],"span",{"class":121,"line":122},"line",1,[119,124,126],{"class":125},"s7eDp","git",[119,128,130],{"class":129},"sYBdl"," clone",[119,132,133],{"class":129}," https://gitlab.com/gitlab-partner-demos/red-hat-demos/flux/\n",[119,135,137,141],{"class":121,"line":136},2,[119,138,140],{"class":139},"sYu0t","cd",[119,142,143],{"class":129}," flux\n",[119,145,147,150,153],{"class":121,"line":146},3,[119,148,149],{"class":125},"mkdir",[119,151,152],{"class":139}," -p",[119,154,155],{"class":129}," clusters/my-cluster/flux-system\n",[119,157,159,162,165],{"class":121,"line":158},4,[119,160,161],{"class":125},"touch",[119,163,164],{"class":129}," clusters/my-cluster/flux-system/gotk-components.yaml",[119,166,167],{"class":139}," \\\n",[119,169,171,174],{"class":121,"line":170},5,[119,172,173],{"class":129},"    clusters/my-cluster/flux-system/gotk-sync.yaml",[119,175,167],{"class":139},[119,177,179],{"class":121,"line":178},6,[119,180,181],{"class":129},"    clusters/my-cluster/flux-system/kustomization.yaml\n",[12,183,184],{},"Add the following YAML snippet and its patches section to flux/clusters/my-cluster/flux-system/kustomization.yaml:",[72,186,190],{"className":187,"code":188,"language":189,"meta":78,"style":78},"language-yaml shiki shiki-themes github-light","apiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nresources:\n  - gotk-components.yaml\n  - gotk-sync.yaml\npatches:\n  - patch: |\n      apiVersion: apps/v1\n      kind: Deployment\n      metadata:\n        name: all\n      spec:\n        template:\n          spec:\n            containers:\n              - name: manager\n                securityContext:\n                  runAsUser: 65534\n                  seccompProfile:\n                    $patch: delete      \n    target:\n      kind: Deployment\n      labelSelector: app.kubernetes.io/part-of=flux\n\n","yaml",[80,191,192,205,215,223,231,238,245,259,265,271,277,283,289,295,301,307,313,319,325,331,337,345,356],{"__ignoreMap":78},[119,193,194,198,202],{"class":121,"line":122},[119,195,197],{"class":196},"shJU0","apiVersion",[119,199,201],{"class":200},"sgsFI",": ",[119,203,204],{"class":129},"kustomize.config.k8s.io/v1beta1\n",[119,206,207,210,212],{"class":121,"line":136},[119,208,209],{"class":196},"kind",[119,211,201],{"class":200},[119,213,214],{"class":129},"Kustomization\n",[119,216,217,220],{"class":121,"line":146},[119,218,219],{"class":196},"resources",[119,221,222],{"class":200},":\n",[119,224,225,228],{"class":121,"line":158},[119,226,227],{"class":200},"  - ",[119,229,230],{"class":129},"gotk-components.yaml\n",[119,232,233,235],{"class":121,"line":170},[119,234,227],{"class":200},[119,236,237],{"class":129},"gotk-sync.yaml\n",[119,239,240,243],{"class":121,"line":178},[119,241,242],{"class":196},"patches",[119,244,222],{"class":200},[119,246,248,250,253,255],{"class":121,"line":247},7,[119,249,227],{"class":200},[119,251,252],{"class":196},"patch",[119,254,201],{"class":200},[119,256,258],{"class":257},"sD7c4","|\n",[119,260,262],{"class":121,"line":261},8,[119,263,264],{"class":129},"      apiVersion: apps/v1\n",[119,266,268],{"class":121,"line":267},9,[119,269,270],{"class":129},"      kind: Deployment\n",[119,272,274],{"class":121,"line":273},10,[119,275,276],{"class":129},"      metadata:\n",[119,278,280],{"class":121,"line":279},11,[119,281,282],{"class":129},"        name: all\n",[119,284,286],{"class":121,"line":285},12,[119,287,288],{"class":129},"      spec:\n",[119,290,292],{"class":121,"line":291},13,[119,293,294],{"class":129},"        template:\n",[119,296,298],{"class":121,"line":297},14,[119,299,300],{"class":129},"          spec:\n",[119,302,304],{"class":121,"line":303},15,[119,305,306],{"class":129},"            containers:\n",[119,308,310],{"class":121,"line":309},16,[119,311,312],{"class":129},"              - name: manager\n",[119,314,316],{"class":121,"line":315},17,[119,317,318],{"class":129},"                securityContext:\n",[119,320,322],{"class":121,"line":321},18,[119,323,324],{"class":129},"                  runAsUser: 65534\n",[119,326,328],{"class":121,"line":327},19,[119,329,330],{"class":129},"                  seccompProfile:\n",[119,332,334],{"class":121,"line":333},20,[119,335,336],{"class":129},"                    $patch: delete      \n",[119,338,340,343],{"class":121,"line":339},21,[119,341,342],{"class":196},"    target",[119,344,222],{"class":200},[119,346,348,351,353],{"class":121,"line":347},22,[119,349,350],{"class":196},"      kind",[119,352,201],{"class":200},[119,354,355],{"class":129},"Deployment\n",[119,357,359,362,364],{"class":121,"line":358},23,[119,360,361],{"class":196},"      labelSelector",[119,363,201],{"class":200},[119,365,366],{"class":129},"app.kubernetes.io/part-of=flux\n",[12,368,369],{},"Commit and push the changes to main branch:",[72,371,373],{"className":113,"code":372,"language":115,"meta":78,"style":78},"cd ~/flux\ngit add -A && git commit -m \"init flux for openshift\" && git push\n",[80,374,375,382],{"__ignoreMap":78},[119,376,377,379],{"class":121,"line":122},[119,378,140],{"class":139},[119,380,381],{"class":129}," ~/flux\n",[119,383,384,386,389,392,395,397,400,403,406,408,410],{"class":121,"line":136},[119,385,126],{"class":125},[119,387,388],{"class":129}," add",[119,390,391],{"class":139}," -A",[119,393,394],{"class":200}," && ",[119,396,126],{"class":125},[119,398,399],{"class":129}," commit",[119,401,402],{"class":139}," -m",[119,404,405],{"class":129}," \"init flux for openshift\"",[119,407,394],{"class":200},[119,409,126],{"class":125},[119,411,412],{"class":129}," push\n",[38,414,48],{"id":415},"create-a-personal-access-token",[12,417,418,419,424],{},"To authenticate with the Flux CLI, you must create a GitLab personal access token (",[16,420,423],{"href":421,"rel":422},"https://docs.gitlab.com/user/profile/personal_access_tokens/",[],"PAT",") with the api scope:",[43,426,427,430,433,436,439,442,445],{},[46,428,429],{},"In the upper-right corner, select your avatar.",[46,431,432],{},"Select Edit profile.",[46,434,435],{},"On the left sidebar, select Access Tokens.",[46,437,438],{},"Enter a name and expiry date for the token.",[46,440,441],{},"Select the api scope.",[46,443,444],{},"Select Create personal access token.",[46,446,447],{},"Copy the new token to your clipboard.",[12,449,450],{},"Note: You can also use a project or group access token with the api scope.",[38,452,51],{"id":453},"create-the-flux-repository",[12,455,456],{},"Create a Git repository, install Flux, and authenticate Flux with your repo in RedHat OpenShift:",[43,458,459,466,486,498,504],{},[46,460,461,462,465],{},"Make sure you are logged in as an OpenShift user in your CLI to access your cluster. ",[80,463,464],{},"oc login"," command is useful here.",[46,467,468,473,474,477,478,481,482,485],{},[16,469,472],{"href":470,"rel":471},"https://fluxcd.io/flux/installation/#bootstrap",[],"Install the Flux CLI",". You must install Flux v2 or higher. ",[80,475,476],{},"brew install fluxcd/tap/flux"," on Mac OSX. Check your flux version with ",[80,479,480],{},"flux -v",". Mine is ",[80,483,484],{},"flux version 2.0.0-rc.1",".",[46,487,488,489,492,493],{},"In GitLab, create a new empty project called ",[80,490,491],{},"flux",". I chose to use ",[16,494,497],{"href":495,"rel":496},"https://gitlab.com/gitlab-partner-demos/red-hat-demos/flux/",[],"the respository in this readme",[46,499,500,501,485],{},"From your shell, export a GITLAB_TOKEN environment variable with the value of your personal access token. For example, ",[80,502,503],{},"export GITLAB_TOKEN=\u003Cpersonal-access-token>",[46,505,506],{},"Run the bootstrap command. The exact command depends on whether you are creating the Flux repository under a GitLab user, group, or subgroup. For more information, see the Flux bootstrap documentation.",[12,508,509],{},"In this tutorial, you’re working with a public project in a subgroup. The bootstrap command looks like this:",[72,511,513],{"className":113,"code":512,"language":115,"meta":78,"style":78},"cd ~/flux\nflux bootstrap gitlab \\\n  --owner=gitlab-partner-demos/red-hat-demos \\\n  --repository=flux \\\n  --branch=master \\\n  --path=clusters/my-cluster \\\n  --token-auth\n\n",[80,514,515,521,533,540,547,554,561],{"__ignoreMap":78},[119,516,517,519],{"class":121,"line":122},[119,518,140],{"class":139},[119,520,381],{"class":129},[119,522,523,525,528,531],{"class":121,"line":136},[119,524,491],{"class":125},[119,526,527],{"class":129}," bootstrap",[119,529,530],{"class":129}," gitlab",[119,532,167],{"class":139},[119,534,535,538],{"class":121,"line":146},[119,536,537],{"class":139},"  --owner=gitlab-partner-demos/red-hat-demos",[119,539,167],{"class":139},[119,541,542,545],{"class":121,"line":158},[119,543,544],{"class":139},"  --repository=flux",[119,546,167],{"class":139},[119,548,549,552],{"class":121,"line":170},[119,550,551],{"class":139},"  --branch=master",[119,553,167],{"class":139},[119,555,556,559],{"class":121,"line":178},[119,557,558],{"class":139},"  --path=clusters/my-cluster",[119,560,167],{"class":139},[119,562,563],{"class":121,"line":247},[119,564,565],{"class":139},"  --token-auth\n",[12,567,84],{},[72,569,572],{"className":570,"code":571,"language":77,"meta":78},[75],"► connecting to https://gitlab.com\n► cloning branch \"master\" from Git repository \"https://gitlab.com/gitlab-partner-demos/red-hat-demos/flux.git\"\n✔ cloned repository\n► generating component manifests\n✔ generated component manifests\n✔ component manifests are up to date\n► installing components in \"flux-system\" namespace\n✔ installed components\n✔ reconciled components\n► determining if source secret \"flux-system/flux-system\" exists\n✔ source secret up to date\n► generating sync manifests\n✔ generated sync manifests\n✔ sync manifests are up to date\n► applying sync manifests\n✔ reconciled sync configuration\n◎ waiting for Kustomization \"flux-system/flux-system\" to be reconciled\n",[80,573,571],{"__ignoreMap":78},[12,575,576],{},"This command installs the Flux agent on the OpenShift cluster and configures it to manage itself from the repository flux-config. The command also automatically creates the project deploy token required to access the flux-config repository.",[12,578,579],{},"Great work! You now have a repository bootstrapped with a Flux configuration. Any updates to your repository are automatically synced to the cluster.",[38,581,54],{"id":582},"create-the-openshift-manifest-repository",[12,584,585,586,590],{},"Next, create a repository for your Flux manifest files. These are stateful files that track the current running configuration by\nthe Flux agent. I chose to use ",[16,587,589],{"href":33,"rel":588},[],"web-app-manifests"," project to track my manifest files.",[43,592,593,598],{},[46,594,595,596,485],{},"In GitLab, create a new repository called ",[80,597,589],{},[46,599,600,601,604],{},"Add a file to web-app-manifests named ",[80,602,603],{},"nginx-deployment.yaml"," with the following contents:",[72,606,608],{"className":187,"code":607,"language":189,"meta":78,"style":78},"apiVersion: apps/v1\n\nkind: Deployment\n\nmetadata:\n  name: nginx-deployment\n  labels:\n    app: nginx\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: nginx\n  template:\n    metadata:\n      labels:\n        app: nginx\n    spec:\n      containers:\n      - name: nginx-unprivileged\n        image: nginxinc/nginx-unprivileged:latest\n        ports:\n        - containerPort: 80\n\n",[80,609,610,619,625,633,637,644,654,661,671,678,688,695,702,711,718,725,732,741,748,755,768,778,785],{"__ignoreMap":78},[119,611,612,614,616],{"class":121,"line":122},[119,613,197],{"class":196},[119,615,201],{"class":200},[119,617,618],{"class":129},"apps/v1\n",[119,620,621],{"class":121,"line":136},[119,622,624],{"emptyLinePlaceholder":623},true,"\n",[119,626,627,629,631],{"class":121,"line":146},[119,628,209],{"class":196},[119,630,201],{"class":200},[119,632,355],{"class":129},[119,634,635],{"class":121,"line":158},[119,636,624],{"emptyLinePlaceholder":623},[119,638,639,642],{"class":121,"line":170},[119,640,641],{"class":196},"metadata",[119,643,222],{"class":200},[119,645,646,649,651],{"class":121,"line":178},[119,647,648],{"class":196},"  name",[119,650,201],{"class":200},[119,652,653],{"class":129},"nginx-deployment\n",[119,655,656,659],{"class":121,"line":247},[119,657,658],{"class":196},"  labels",[119,660,222],{"class":200},[119,662,663,666,668],{"class":121,"line":261},[119,664,665],{"class":196},"    app",[119,667,201],{"class":200},[119,669,670],{"class":129},"nginx\n",[119,672,673,676],{"class":121,"line":267},[119,674,675],{"class":196},"spec",[119,677,222],{"class":200},[119,679,680,683,685],{"class":121,"line":273},[119,681,682],{"class":196},"  replicas",[119,684,201],{"class":200},[119,686,687],{"class":139},"3\n",[119,689,690,693],{"class":121,"line":279},[119,691,692],{"class":196},"  selector",[119,694,222],{"class":200},[119,696,697,700],{"class":121,"line":285},[119,698,699],{"class":196},"    matchLabels",[119,701,222],{"class":200},[119,703,704,707,709],{"class":121,"line":291},[119,705,706],{"class":196},"      app",[119,708,201],{"class":200},[119,710,670],{"class":129},[119,712,713,716],{"class":121,"line":297},[119,714,715],{"class":196},"  template",[119,717,222],{"class":200},[119,719,720,723],{"class":121,"line":303},[119,721,722],{"class":196},"    metadata",[119,724,222],{"class":200},[119,726,727,730],{"class":121,"line":309},[119,728,729],{"class":196},"      labels",[119,731,222],{"class":200},[119,733,734,737,739],{"class":121,"line":315},[119,735,736],{"class":196},"        app",[119,738,201],{"class":200},[119,740,670],{"class":129},[119,742,743,746],{"class":121,"line":321},[119,744,745],{"class":196},"    spec",[119,747,222],{"class":200},[119,749,750,753],{"class":121,"line":327},[119,751,752],{"class":196},"      containers",[119,754,222],{"class":200},[119,756,757,760,763,765],{"class":121,"line":333},[119,758,759],{"class":200},"      - ",[119,761,762],{"class":196},"name",[119,764,201],{"class":200},[119,766,767],{"class":129},"nginx-unprivileged\n",[119,769,770,773,775],{"class":121,"line":339},[119,771,772],{"class":196},"        image",[119,774,201],{"class":200},[119,776,777],{"class":129},"nginxinc/nginx-unprivileged:latest\n",[119,779,780,783],{"class":121,"line":347},[119,781,782],{"class":196},"        ports",[119,784,222],{"class":200},[119,786,787,790,793,795],{"class":121,"line":358},[119,788,789],{"class":200},"        - ",[119,791,792],{"class":196},"containerPort",[119,794,201],{"class":200},[119,796,797],{"class":139},"80\n",[12,799,800,801,803,804,809,810,813],{},"In the new ",[80,802,589],{}," repository, create a ",[16,805,808],{"href":806,"rel":807},"https://docs.gitlab.com/user/project/deploy_tokens/",[],"GitLab deploy token"," with only the ",[80,811,812],{},"read_repository"," scope.",[12,815,816],{},"Store your deploy token username and password somewhere safe. I used environmental variables to save mine:",[72,818,820],{"className":113,"code":819,"language":115,"meta":78,"style":78},"export GITLAB_DEPLOY_TOKEN_USER=\u003Cmy-gitlab-deployment-token-username>\nexport GITLAB_DEPLOY_TOKEN_PASS=\u003Cmy-gitlab-deployment-token-password>\nenv |grep GITLAB_DEPLOY_TOKEN\n",[80,821,822,839,853],{"__ignoreMap":78},[119,823,824,827,830,833,836],{"class":121,"line":122},[119,825,826],{"class":257},"export",[119,828,829],{"class":200}," GITLAB_DEPLOY_TOKEN_USER",[119,831,832],{"class":257},"=\u003C",[119,834,835],{"class":200},"my-gitlab-deployment-token-username",[119,837,838],{"class":257},">\n",[119,840,841,843,846,848,851],{"class":121,"line":136},[119,842,826],{"class":257},[119,844,845],{"class":200}," GITLAB_DEPLOY_TOKEN_PASS",[119,847,832],{"class":257},[119,849,850],{"class":200},"my-gitlab-deployment-token-password",[119,852,838],{"class":257},[119,854,855,858,861,864],{"class":121,"line":146},[119,856,857],{"class":125},"env",[119,859,860],{"class":257}," |",[119,862,863],{"class":125},"grep",[119,865,866],{"class":129}," GITLAB_DEPLOY_TOKEN\n",[12,868,84],{},[72,870,872],{"className":113,"code":871,"language":115,"meta":78,"style":78},"GITLAB_DEPLOY_TOKEN_USER=myGitLabUserName\nGITLAB_DEPLOY_TOKEN_PASS=MySecretToken\n",[80,873,874,885],{"__ignoreMap":78},[119,875,876,879,882],{"class":121,"line":122},[119,877,878],{"class":200},"GITLAB_DEPLOY_TOKEN_USER",[119,880,881],{"class":257},"=",[119,883,884],{"class":129},"myGitLabUserName\n",[119,886,887,890,892],{"class":121,"line":136},[119,888,889],{"class":200},"GITLAB_DEPLOY_TOKEN_PASS",[119,891,881],{"class":257},[119,893,894],{"class":129},"MySecretToken\n",[12,896,897],{},"In Flux CLI, create a secret with your deploy token and point the secret to the new repository. For example:",[72,899,901],{"className":113,"code":900,"language":115,"meta":78,"style":78},"flux create secret git flux-deploy-authentication \\\n         --url=https://gitlab.com/gitlab-partner-demos/red-hat-demos/web-app-manifests \\\n         --namespace=default \\\n         --username=$GITLAB_DEPLOY_TOKEN_USER \\\n         --password=$GITLAB_DEPLOY_TOKEN_PASS\n\n",[80,902,903,921,928,935,945],{"__ignoreMap":78},[119,904,905,907,910,913,916,919],{"class":121,"line":122},[119,906,491],{"class":125},[119,908,909],{"class":129}," create",[119,911,912],{"class":129}," secret",[119,914,915],{"class":129}," git",[119,917,918],{"class":129}," flux-deploy-authentication",[119,920,167],{"class":139},[119,922,923,926],{"class":121,"line":136},[119,924,925],{"class":139},"         --url=https://gitlab.com/gitlab-partner-demos/red-hat-demos/web-app-manifests",[119,927,167],{"class":139},[119,929,930,933],{"class":121,"line":146},[119,931,932],{"class":139},"         --namespace=default",[119,934,167],{"class":139},[119,936,937,940,943],{"class":121,"line":158},[119,938,939],{"class":139},"         --username=",[119,941,942],{"class":200},"$GITLAB_DEPLOY_TOKEN_USER",[119,944,167],{"class":139},[119,946,947,950],{"class":121,"line":170},[119,948,949],{"class":139},"         --password=",[119,951,952],{"class":200},"$GITLAB_DEPLOY_TOKEN_PASS\n",[12,954,84],{},[72,956,959],{"className":957,"code":958,"language":77,"meta":78},[75],"► git secret 'flux-deploy-authentication' created in 'default' namespace\n",[80,960,958],{"__ignoreMap":78},[12,962,963],{},"To check if your secret was generated successfully, run:",[72,965,968],{"className":966,"code":967,"language":77,"meta":78},[75],"oc -n default get secrets flux-deploy-authentication -o yaml\n",[80,969,967],{"__ignoreMap":78},[12,971,84],{},[72,973,975],{"className":187,"code":974,"language":189,"meta":78,"style":78},"apiVersion: v1\ndata:\n  password: Base64EncodedPassword=\n  username: Base64EncodedUsername\nkind: Secret\nmetadata:\n  creationTimestamp: \"2023-04-20T18:22:33Z\"\n  name: flux-deploy-authentication\n  namespace: default\n  resourceVersion: \"8168670\"\n  uid: 16292254-83cd-4df2-8a9c-bc4c718e4b4a\ntype: Opaque\n",[80,976,977,986,993,1003,1013,1022,1028,1038,1047,1057,1067,1077],{"__ignoreMap":78},[119,978,979,981,983],{"class":121,"line":122},[119,980,197],{"class":196},[119,982,201],{"class":200},[119,984,985],{"class":129},"v1\n",[119,987,988,991],{"class":121,"line":136},[119,989,990],{"class":196},"data",[119,992,222],{"class":200},[119,994,995,998,1000],{"class":121,"line":146},[119,996,997],{"class":196},"  password",[119,999,201],{"class":200},[119,1001,1002],{"class":129},"Base64EncodedPassword=\n",[119,1004,1005,1008,1010],{"class":121,"line":158},[119,1006,1007],{"class":196},"  username",[119,1009,201],{"class":200},[119,1011,1012],{"class":129},"Base64EncodedUsername\n",[119,1014,1015,1017,1019],{"class":121,"line":170},[119,1016,209],{"class":196},[119,1018,201],{"class":200},[119,1020,1021],{"class":129},"Secret\n",[119,1023,1024,1026],{"class":121,"line":178},[119,1025,641],{"class":196},[119,1027,222],{"class":200},[119,1029,1030,1033,1035],{"class":121,"line":247},[119,1031,1032],{"class":196},"  creationTimestamp",[119,1034,201],{"class":200},[119,1036,1037],{"class":129},"\"2023-04-20T18:22:33Z\"\n",[119,1039,1040,1042,1044],{"class":121,"line":261},[119,1041,648],{"class":196},[119,1043,201],{"class":200},[119,1045,1046],{"class":129},"flux-deploy-authentication\n",[119,1048,1049,1052,1054],{"class":121,"line":267},[119,1050,1051],{"class":196},"  namespace",[119,1053,201],{"class":200},[119,1055,1056],{"class":129},"default\n",[119,1058,1059,1062,1064],{"class":121,"line":273},[119,1060,1061],{"class":196},"  resourceVersion",[119,1063,201],{"class":200},[119,1065,1066],{"class":129},"\"8168670\"\n",[119,1068,1069,1072,1074],{"class":121,"line":279},[119,1070,1071],{"class":196},"  uid",[119,1073,201],{"class":200},[119,1075,1076],{"class":129},"16292254-83cd-4df2-8a9c-bc4c718e4b4a\n",[119,1078,1079,1082,1084],{"class":121,"line":285},[119,1080,1081],{"class":196},"type",[119,1083,201],{"class":200},[119,1085,1086],{"class":129},"Opaque\n",[12,1088,1089],{},"Under data, you should see base64-encoded values associated with your token username and password.",[12,1091,1092],{},"Congratulations! You now have a manifest repository, a deploy token, and a secret generated directly on your cluster.",[38,1094,57],{"id":1095},"configure-flux-to-sync-your-manifests",[12,1097,1098],{},"Next, tell flux-config to sync with the web-app-manifests repository.",[12,1100,1101,1102,1107],{},"To do so, create a ",[16,1103,1106],{"href":1104,"rel":1105},"https://docs.openshift.com/container-platform/3.11/dev_guide/application_lifecycle/new_app.html",[],"GitRepository resource"," in OpenShift:",[43,1109,1110],{},[46,1111,1112],{},"Clone the flux repo to your machine.",[72,1114,1116],{"className":113,"code":1115,"language":115,"meta":78,"style":78},"# Remember that we already have the flux repo cloned into our home dir.\ncd ~/flux\ngit pull\n",[80,1117,1118,1124,1130],{"__ignoreMap":78},[119,1119,1120],{"class":121,"line":122},[119,1121,1123],{"class":1122},"sAwPA","# Remember that we already have the flux repo cloned into our home dir.\n",[119,1125,1126,1128],{"class":121,"line":136},[119,1127,140],{"class":139},[119,1129,381],{"class":129},[119,1131,1132,1134],{"class":121,"line":146},[119,1133,126],{"class":125},[119,1135,1136],{"class":129}," pull\n",[43,1138,1139],{"start":136},[46,1140,1141,1142,1145],{},"In your local clone of flux, add the GitRepository file ",[80,1143,1144],{},"clusters/my-cluster/web-app-manifests-source.yaml",":",[72,1147,1149],{"className":1148,"code":78,"language":77,"meta":78},[75],[80,1150,78],{"__ignoreMap":78},[1152,1153,1154],"style",{},"html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}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 .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}",{"title":78,"searchDepth":136,"depth":136,"links":1156},[1157,1158,1159,1160,1161,1162],{"id":40,"depth":146,"text":41},{"id":63,"depth":146,"text":64},{"id":415,"depth":146,"text":48},{"id":453,"depth":146,"text":51},{"id":582,"depth":146,"text":54},{"id":1095,"depth":146,"text":57},"engineering","2023-07-05","Learn how to set up a sample project, complete a bootstrap Flux installation, and authenticate your installation with a project deploy token.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749682825/Blog/Hero%20Images/genericworkflow.jpg",{},"/en-us/blog/set-up-flux-for-gitops-on-openshift",{"title":5,"description":1165,"ogTitle":5,"ogDescription":1165,"noIndex":1168,"ogImage":1169,"ogUrl":1173,"ogSiteName":1174,"ogType":1175,"canonicalUrls":1173},"https://about.gitlab.com/blog/set-up-flux-for-gitops-on-openshift","https://about.gitlab.com","article","set-up-flux-for-gitops-on-openshift","en-us/blog/set-up-flux-for-gitops-on-openshift",[1179,1180],"tutorial","GitOps","BlogPost","e7ukVuBIRhHH1YXcnVKbSefC3UTEwH_9WUvqSX6xJ0A",{"logo":1184,"freeTrial":1189,"sales":1194,"login":1199,"items":1204,"search":1539,"minimal":1571,"duo":1590,"switchNav":1599,"pricingDeployment":1610},{"config":1185},{"href":1186,"dataGaName":1187,"dataGaLocation":1188},"/","gitlab logo","header",{"text":1190,"config":1191},"Get free trial",{"href":1192,"dataGaName":1193,"dataGaLocation":1188},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1195,"config":1196},"Request a demo",{"href":1197,"dataGaName":1198,"dataGaLocation":1188},"/request-a-demo/","sales",{"text":1200,"config":1201},"Sign in",{"href":1202,"dataGaName":1203,"dataGaLocation":1188},"https://gitlab.com/users/sign_in/","sign in",[1205,1291,1379,1384,1463,1517],{"text":1206,"left":623,"config":1207,"menu":1209},"Platform",{"dataNavLevelOne":1208},"platform",{"type":1210,"link":1211,"columns":1215,"feature":1280},"lists",{"text":1212,"config":1213},"Explore the Platform",{"href":1214,"dataGaName":1208,"dataGaLocation":1188},"/platform/",[1216,1239,1262],{"title":1217,"items":1218},"DevOps",[1219,1224,1229,1234],{"text":1220,"config":1221},"CI/CD",{"href":1222,"dataGaLocation":1188,"dataGaName":1223},"/solutions/continuous-integration/","ci/cd",{"text":1225,"config":1226},"Source Code Management",{"href":1227,"dataGaLocation":1188,"dataGaName":1228},"/solutions/source-code-management/","source code management",{"text":1230,"config":1231},"Agile Delivery",{"href":1232,"dataGaLocation":1188,"dataGaName":1233},"/solutions/agile-delivery/","agile delivery",{"text":1235,"config":1236},"Artifact Management",{"href":1237,"dataGaLocation":1188,"dataGaName":1238},"/artifact-central/","artifact management",{"title":1240,"items":1241},"Security & Governance",[1242,1247,1252,1257],{"text":1243,"config":1244},"Application Security Testing",{"href":1245,"dataGaLocation":1188,"dataGaName":1246},"/solutions/application-security-testing/","application security testing",{"text":1248,"config":1249},"Governance & Compliance",{"href":1250,"dataGaLocation":1188,"dataGaName":1251},"/solutions/software-compliance/","governance and compliance",{"text":1253,"config":1254},"Secrets Management",{"href":1255,"dataGaLocation":1188,"dataGaName":1256},"/gitlab-secrets-manager/","secrets management",{"text":1258,"config":1259},"Supply Chain Security",{"href":1260,"dataGaLocation":1188,"dataGaName":1261},"/solutions/supply-chain/","supply chain security",{"title":1263,"items":1264},"Agentic AI & Context",[1265,1270,1275],{"text":1266,"config":1267},"Duo Agent Platform",{"href":1268,"dataGaLocation":1188,"dataGaName":1269},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1271,"config":1272},"Orbit Context Graph",{"href":1273,"dataGaLocation":1188,"dataGaName":1274},"/gitlab-orbit/","orbit",{"text":1276,"config":1277},"Visibility & Measurement",{"href":1278,"dataGaLocation":1188,"dataGaName":1279},"/solutions/visibility-measurement/","visibility and measurement",{"config":1281,"title":1284,"text":1285,"link":1286},{"background":1282,"textColor":1283},"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":1287,"config":1288},"Read the announcement",{"href":1289,"dataGaName":1290,"dataGaLocation":1188},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1292,"left":623,"config":1293,"menu":1295},"Solutions",{"dataNavLevelOne":1294},"solutions",{"type":1210,"link":1296,"columns":1300,"feature":1370},{"text":1297,"config":1298},"View all Solutions",{"href":1299,"dataGaName":1294,"dataGaLocation":1188},"/solutions/",[1301,1319,1337],{"title":1302,"items":1303},"Outcomes",[1304,1309,1314],{"text":1305,"config":1306},"DevOps Modernization",{"href":1307,"dataGaLocation":1188,"dataGaName":1308},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1310,"config":1311},"Security Modernization",{"href":1312,"dataGaLocation":1188,"dataGaName":1313},"/assessments/security-modernization-assessment/","security modernization",{"text":1315,"config":1316},"AI Modernization",{"href":1317,"dataGaLocation":1188,"dataGaName":1318},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1320,"items":1321},"By size",[1322,1327,1332],{"text":1323,"config":1324},"Enterprise",{"href":1325,"dataGaLocation":1188,"dataGaName":1326},"/enterprise/","enterprise",{"text":1328,"config":1329},"Small Business",{"href":1330,"dataGaLocation":1188,"dataGaName":1331},"/small-business/","small business",{"text":1333,"config":1334},"Startups",{"href":1335,"dataGaLocation":1188,"dataGaName":1336},"/solutions/startups/","startups",{"title":1338,"items":1339},"Industries",[1340,1345,1350,1355,1360,1365],{"text":1341,"config":1342},"Financial Services",{"href":1343,"dataGaLocation":1188,"dataGaName":1344},"/solutions/finance/","financial services",{"text":1346,"config":1347},"Public Sector",{"href":1348,"dataGaLocation":1188,"dataGaName":1349},"/solutions/public-sector/","public sector",{"text":1351,"config":1352},"Telecommunications",{"href":1353,"dataGaLocation":1188,"dataGaName":1354},"/solutions/telecommunications/","telecommunications",{"text":1356,"config":1357},"Automotive",{"href":1358,"dataGaLocation":1188,"dataGaName":1359},"/solutions/automotive/","automotive",{"text":1361,"config":1362},"Education",{"href":1363,"dataGaLocation":1188,"dataGaName":1364},"/solutions/education/","education",{"text":1366,"config":1367},"Aerospace",{"href":1368,"dataGaLocation":1188,"dataGaName":1369},"/solutions/aerospace/","aerospace",{"config":1371,"title":1372,"text":1373,"link":1374},{"background":1282,"textColor":1283},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1375,"config":1376},"Explore the standard",{"href":1377,"dataGaName":1378,"dataGaLocation":1188},"/gitlab-security-standard/","gitlab security standard",{"text":1380,"config":1381},"Pricing",{"href":1382,"dataGaName":1383,"dataGaLocation":1188,"dataNavLevelOne":1383},"/pricing/","pricing",{"text":1385,"config":1386,"menu":1387},"Resources",{"dataNavLevelOne":219},{"type":1210,"link":1388,"columns":1392,"feature":1454},{"text":1389,"config":1390},"View all resources",{"href":1391,"dataGaName":219,"dataGaLocation":1188},"/resources/",[1393,1426],{"title":1394,"items":1395},"Discover",[1396,1401,1406,1411,1416,1421],{"text":1397,"config":1398},"Docs",{"href":1399,"dataGaName":1400,"dataGaLocation":1188},"https://docs.gitlab.com/","docs",{"text":1402,"config":1403},"University",{"href":1404,"dataGaName":1405,"dataGaLocation":1188},"https://university.gitlab.com/","university",{"text":1407,"config":1408},"Demo Series",{"href":1409,"dataGaName":1410,"dataGaLocation":1188},"/gitlab-technical-demo-series/","demo series",{"text":1412,"config":1413},"Demo Hub",{"href":1414,"dataGaName":1415,"dataGaLocation":1188},"/demo-hub/","demo hub",{"text":1417,"config":1418},"Services",{"href":1419,"dataGaName":1420,"dataGaLocation":1188},"/services/","services",{"text":1422,"config":1423},"Well Architected",{"href":1424,"dataGaName":1425,"dataGaLocation":1188},"/resources/well-architected/","well architected",{"title":1427,"items":1428},"Connect",[1429,1434,1439,1444,1449],{"text":1430,"config":1431},"Blog",{"href":1432,"dataGaName":1433,"dataGaLocation":1188},"/blog/","blog",{"text":1435,"config":1436},"Community",{"href":1437,"dataGaName":1438,"dataGaLocation":1188},"/community/","community",{"text":1440,"config":1441},"Customers",{"href":1442,"dataGaName":1443,"dataGaLocation":1188},"/customers/","customers",{"text":1445,"config":1446},"Partners",{"href":1447,"dataGaName":1448,"dataGaLocation":1188},"/partners/","partners",{"text":1450,"config":1451},"Events",{"href":1452,"dataGaName":1453,"dataGaLocation":1188},"/events/","events",{"config":1455,"title":1456,"text":1457,"link":1458},{"background":1282,"textColor":1283},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1459,"config":1460},"Read the latest",{"href":1461,"dataGaName":1462,"dataGaLocation":1188},"/whats-new/","whats new",{"text":1464,"config":1465,"menu":1467},"Company",{"dataNavLevelOne":1466},"company",{"type":1210,"columns":1468},[1469],{"items":1470},[1471,1476,1482,1487,1492,1497,1502,1507,1512],{"text":1472,"config":1473},"About",{"href":1474,"dataGaName":1475,"dataGaLocation":1188},"/company/","about",{"text":1477,"config":1478,"footerGa":1481},"Jobs",{"href":1479,"dataGaName":1480,"dataGaLocation":1188},"/jobs/","jobs",{"dataGaName":1480},{"text":1483,"config":1484},"Press",{"href":1485,"dataGaName":1486,"dataGaLocation":1188},"/press/","press",{"text":1488,"config":1489},"Handbook",{"href":1490,"dataGaName":1491,"dataGaLocation":1188},"https://handbook.gitlab.com/","handbook",{"text":1493,"config":1494},"Leadership",{"href":1495,"dataGaName":1496,"dataGaLocation":1188},"/company/team/e-group/","leadership",{"text":1498,"config":1499},"Investor relations",{"href":1500,"dataGaName":1501,"dataGaLocation":1188},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1503,"config":1504},"Trust Center",{"href":1505,"dataGaName":1506,"dataGaLocation":1188},"/security/","trust center",{"text":1508,"config":1509},"AI Transparency Center",{"href":1510,"dataGaName":1511,"dataGaLocation":1188},"/ai-transparency-center/","ai transparency center",{"text":1513,"config":1514},"Newsletter",{"href":1515,"dataGaName":1516,"dataGaLocation":1188},"/company/contact/#contact-forms","newsletter",{"text":1518,"config":1519,"menu":1520},"Contact us",{"dataNavLevelOne":1466},{"type":1210,"columns":1521},[1522],{"items":1523},[1524,1529,1534],{"text":1525,"config":1526},"Talk to sales",{"href":1527,"dataGaName":1528,"dataGaLocation":1188},"/sales/","talk to sales",{"text":1530,"config":1531},"Support portal",{"href":1532,"dataGaName":1533,"dataGaLocation":1188},"https://support.gitlab.com/hc/en-us","support portal",{"text":1535,"config":1536},"Customer portal",{"href":1537,"dataGaName":1538,"dataGaLocation":1188},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1540,"login":1541,"suggestions":1548},"Close",{"text":1542,"link":1543},"To search repositories and projects, login to",{"text":1544,"config":1545},"gitlab.com",{"href":1202,"dataGaName":1546,"dataGaLocation":1547},"search login","search",{"text":1549,"default":1550},"Suggestions",[1551,1554,1557,1559,1563,1567],{"text":1552,"config":1553},"GitLab Duo Agent Platform",{"href":1268,"dataGaName":1552,"dataGaLocation":1547},{"text":1555,"config":1556},"Code Suggestions (AI)",{"href":1268,"dataGaName":1555,"dataGaLocation":1547},{"text":1220,"config":1558},{"href":1222,"dataGaName":1220,"dataGaLocation":1547},{"text":1560,"config":1561},"GitLab on AWS",{"href":1562,"dataGaName":1560,"dataGaLocation":1547},"/partners/technology-partners/aws/",{"text":1564,"config":1565},"GitLab on Google Cloud",{"href":1566,"dataGaName":1564,"dataGaLocation":1547},"/partners/technology-partners/google-cloud-platform/",{"text":1568,"config":1569},"Why GitLab?",{"href":1570,"dataGaName":1568,"dataGaLocation":1547},"/why-gitlab/",{"freeTrial":1572,"mobileIcon":1577,"desktopIcon":1582,"secondaryButton":1585},{"text":1573,"config":1574},"Start free trial",{"href":1575,"dataGaName":1193,"dataGaLocation":1576},"https://gitlab.com/-/trials/new/","nav",{"altText":1578,"config":1579},"Gitlab Icon",{"src":1580,"dataGaName":1581,"dataGaLocation":1576},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1578,"config":1583},{"src":1584,"dataGaName":1581,"dataGaLocation":1576},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1586,"config":1587},"Get Started",{"href":1588,"dataGaName":1589,"dataGaLocation":1576},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1591,"mobileIcon":1595,"desktopIcon":1597},{"text":1592,"config":1593},"Learn more about GitLab Duo",{"href":1268,"dataGaName":1594,"dataGaLocation":1576},"gitlab duo",{"altText":1578,"config":1596},{"src":1580,"dataGaName":1581,"dataGaLocation":1576},{"altText":1578,"config":1598},{"src":1584,"dataGaName":1581,"dataGaLocation":1576},{"button":1600,"mobileIcon":1605,"desktopIcon":1607},{"text":1601,"config":1602},"/switch",{"href":1603,"dataGaName":1604,"dataGaLocation":1576},"#contact","switch",{"altText":1578,"config":1606},{"src":1580,"dataGaName":1581,"dataGaLocation":1576},{"altText":1578,"config":1608},{"src":1609,"dataGaName":1581,"dataGaLocation":1576},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1611,"mobileIcon":1616,"desktopIcon":1618},{"text":1612,"config":1613},"Back to pricing",{"href":1382,"dataGaName":1614,"dataGaLocation":1576,"icon":1615},"back to pricing","GoBack",{"altText":1578,"config":1617},{"src":1580,"dataGaName":1581,"dataGaLocation":1576},{"altText":1578,"config":1619},{"src":1584,"dataGaName":1581,"dataGaLocation":1576},{"title":1621,"button":1622,"config":1626},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1287,"config":1623},{"href":1289,"dataGaName":1624,"dataGaLocation":1625},"orbit-ga-banner","global-banner",{"layout":1627,"disabled":1168},"release",{"data":1629},{"text":1630,"config":1631,"items":1636,"minimal":1863},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1632,"facebook":1633,"youtube":1634,"linkedin":1635},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1637,1685,1743,1790,1831],{"title":1380,"links":1638,"subMenu":1654},[1639,1644,1649],{"text":1640,"config":1641},"View plans",{"href":1382,"dataGaName":1642,"dataGaLocation":1643},"view plans","footer",{"text":1645,"config":1646},"Why Premium?",{"href":1647,"dataGaName":1648,"dataGaLocation":1643},"/pricing/premium/","why premium",{"text":1650,"config":1651},"Why Ultimate?",{"href":1652,"dataGaName":1653,"dataGaLocation":1643},"/pricing/ultimate/","why ultimate",[1655],{"title":1656,"links":1657},"Contact Us",[1658,1661,1663,1665,1670,1675,1680],{"text":1659,"config":1660},"Contact sales",{"href":1527,"dataGaName":1198,"dataGaLocation":1643},{"text":1530,"config":1662},{"href":1532,"dataGaName":1533,"dataGaLocation":1643},{"text":1535,"config":1664},{"href":1537,"dataGaName":1538,"dataGaLocation":1643},{"text":1666,"config":1667},"Status",{"href":1668,"dataGaName":1669,"dataGaLocation":1643},"https://status.gitlab.com/","status",{"text":1671,"config":1672},"Terms of use",{"href":1673,"dataGaName":1674,"dataGaLocation":1643},"/terms/","terms of use",{"text":1676,"config":1677},"Privacy statement",{"href":1678,"dataGaName":1679,"dataGaLocation":1643},"/privacy/","privacy statement",{"text":1681,"config":1682},"Cookie preferences",{"dataGaName":1683,"dataGaLocation":1643,"id":1684,"isOneTrustButton":623},"cookie preferences","ot-sdk-btn",{"title":1206,"links":1686,"subMenu":1702},[1687,1690,1692,1694,1696,1698],{"text":1688,"config":1689},"Explore the platform",{"href":1214,"dataGaName":1208,"dataGaLocation":1643},{"text":1266,"config":1691},{"href":1268,"dataGaName":1269,"dataGaLocation":1643},{"text":1220,"config":1693},{"href":1222,"dataGaName":1223,"dataGaLocation":1643},{"text":1271,"config":1695},{"href":1273,"dataGaName":1274,"dataGaLocation":1643},{"text":1253,"config":1697},{"href":1255,"dataGaName":1256,"dataGaLocation":1643},{"text":1699,"config":1700},"Why GitLab",{"href":1570,"dataGaName":1701,"dataGaLocation":1643},"why gitlab",[1703],{"title":1704,"links":1705},"Topics",[1706,1710,1714,1718,1723,1728,1733,1738],{"text":1220,"config":1707},{"href":1708,"dataGaName":1709,"dataGaLocation":1643},"/topics/ci-cd/","cicd",{"text":1180,"config":1711},{"href":1712,"dataGaName":1713,"dataGaLocation":1643},"/topics/gitops/","gitops",{"text":1217,"config":1715},{"href":1716,"dataGaName":1717,"dataGaLocation":1643},"/topics/devops/","devops",{"text":1719,"config":1720},"Version Control",{"href":1721,"dataGaName":1722,"dataGaLocation":1643},"/topics/version-control/","version control",{"text":1724,"config":1725},"DevSecOps",{"href":1726,"dataGaName":1727,"dataGaLocation":1643},"/topics/devsecops/","devsecops",{"text":1729,"config":1730},"Cloud Native",{"href":1731,"dataGaName":1732,"dataGaLocation":1643},"/topics/cloud-native/","cloud native",{"text":1734,"config":1735},"AI for Coding",{"href":1736,"dataGaName":1737,"dataGaLocation":1643},"/topics/devops/ai-for-coding/","ai for coding",{"text":1739,"config":1740},"Agentic AI",{"href":1741,"dataGaName":1742,"dataGaLocation":1643},"/topics/agentic-ai/","agentic ai",{"title":1292,"links":1744},[1745,1748,1751,1754,1757,1760,1762,1764,1766,1768,1770,1773,1775,1778,1782,1786],{"text":1746,"config":1747},"DevOps modernization",{"href":1307,"dataGaName":1308,"dataGaLocation":1643},{"text":1749,"config":1750},"Security modernization",{"href":1312,"dataGaName":1313,"dataGaLocation":1643},{"text":1752,"config":1753},"AI modernization",{"href":1317,"dataGaName":1318,"dataGaLocation":1643},{"text":1755,"config":1756},"Financial services",{"href":1343,"dataGaName":1344,"dataGaLocation":1643},{"text":1758,"config":1759},"Public sector",{"href":1348,"dataGaName":1349,"dataGaLocation":1643},{"text":1351,"config":1761},{"href":1353,"dataGaName":1354,"dataGaLocation":1643},{"text":1356,"config":1763},{"href":1358,"dataGaName":1359,"dataGaLocation":1643},{"text":1361,"config":1765},{"href":1363,"dataGaName":1364,"dataGaLocation":1643},{"text":1366,"config":1767},{"href":1368,"dataGaName":1369,"dataGaLocation":1643},{"text":1323,"config":1769},{"href":1325,"dataGaName":1326,"dataGaLocation":1643},{"text":1771,"config":1772},"Small business",{"href":1330,"dataGaName":1331,"dataGaLocation":1643},{"text":1333,"config":1774},{"href":1335,"dataGaName":1336,"dataGaLocation":1643},{"text":1180,"config":1776},{"href":1777,"dataGaName":1713,"dataGaLocation":1643},"/solutions/gitops/",{"text":1779,"config":1780},"Software composition analysis",{"href":1260,"dataGaName":1781,"dataGaLocation":1643},"software composition analysis",{"text":1783,"config":1784},"Value stream management",{"href":1278,"dataGaName":1785,"dataGaLocation":1643},"value stream management",{"text":1787,"config":1788},"All solutions",{"href":1299,"dataGaName":1789,"dataGaLocation":1643},"all solutions",{"title":1385,"links":1791},[1792,1797,1802,1804,1806,1808,1810,1812,1814,1816,1818,1820,1822,1824,1827],{"text":1793,"config":1794},"Install",{"href":1795,"dataGaName":1796,"dataGaLocation":1643},"/install/","install",{"text":1798,"config":1799},"Quick start guides",{"href":1800,"dataGaName":1801,"dataGaLocation":1643},"/get-started/","quick setup checklists",{"text":1397,"config":1803},{"href":1399,"dataGaName":1400,"dataGaLocation":1643},{"text":1402,"config":1805},{"href":1404,"dataGaName":1405,"dataGaLocation":1643},{"text":1407,"config":1807},{"href":1409,"dataGaName":1410,"dataGaLocation":1643},{"text":1412,"config":1809},{"href":1414,"dataGaName":1415,"dataGaLocation":1643},{"text":1417,"config":1811},{"href":1419,"dataGaName":1420,"dataGaLocation":1643},{"text":1430,"config":1813},{"href":1432,"dataGaName":1433,"dataGaLocation":1643},{"text":1435,"config":1815},{"href":1437,"dataGaName":1438,"dataGaLocation":1643},{"text":1440,"config":1817},{"href":1442,"dataGaName":1443,"dataGaLocation":1643},{"text":1445,"config":1819},{"href":1447,"dataGaName":1448,"dataGaLocation":1643},{"text":1450,"config":1821},{"href":1452,"dataGaName":1453,"dataGaLocation":1643},{"text":1513,"config":1823},{"href":1515,"dataGaName":1516,"dataGaLocation":1643},{"text":1825,"config":1826},"What's new",{"href":1461,"dataGaName":1462,"dataGaLocation":1643},{"text":1828,"config":1829},"All resources",{"href":1391,"dataGaName":1830,"dataGaLocation":1643},"all resources",{"title":1464,"links":1832},[1833,1835,1837,1839,1841,1843,1845,1847,1849,1853,1858],{"text":1472,"config":1834},{"href":1474,"dataGaName":1466,"dataGaLocation":1643},{"text":1477,"config":1836},{"href":1479,"dataGaName":1480,"dataGaLocation":1643},{"text":1483,"config":1838},{"href":1485,"dataGaName":1486,"dataGaLocation":1643},{"text":1488,"config":1840},{"href":1490,"dataGaName":1491,"dataGaLocation":1643},{"text":1493,"config":1842},{"href":1495,"dataGaName":1496,"dataGaLocation":1643},{"text":1498,"config":1844},{"href":1500,"dataGaName":1501,"dataGaLocation":1643},{"text":1503,"config":1846},{"href":1505,"dataGaName":1506,"dataGaLocation":1643},{"text":1508,"config":1848},{"href":1510,"dataGaName":1511,"dataGaLocation":1643},{"text":1850,"config":1851},"Sustainability",{"href":1852,"dataGaName":1850,"dataGaLocation":1643},"/sustainability/",{"text":1854,"config":1855},"Diversity, inclusion and belonging (DIB)",{"href":1856,"dataGaName":1857,"dataGaLocation":1643},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1859,"config":1860},"Modern Slavery Transparency Statement",{"href":1861,"dataGaName":1862,"dataGaLocation":1643},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1864},[1865,1868,1871],{"text":1866,"config":1867},"Terms",{"href":1673,"dataGaName":1674,"dataGaLocation":1643},{"text":1869,"config":1870},"Cookies",{"dataGaName":1683,"dataGaLocation":1643,"id":1684,"isOneTrustButton":623},{"text":1872,"config":1873},"Privacy",{"href":1678,"dataGaName":1679,"dataGaLocation":1643},[1875],{"id":1876,"title":7,"body":1167,"config":1877,"content":1879,"description":1167,"extension":1883,"meta":1884,"navigation":623,"path":1885,"seo":1886,"stem":1887,"__hash__":1888},"blogAuthors/en-us/blog/authors/bart-zhang.yml",{"template":1878},"BlogAuthor",{"name":7,"config":1880},{"headshot":1881,"ctfId":1882},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664177/Blog/Author%20Headshots/bartzhang-headshot.jpg","bartzhang","yml",{},"/en-us/blog/authors/bart-zhang",{},"en-us/blog/authors/bart-zhang","b7CFRNFezC9yhgQ3GRiTZ4joQAY5dZB2u6FIo2bo1Xs",[1890,1898,1906],{"title":1891,"description":1892,"heroImage":1893,"category":1163,"date":1894,"authors":1895,"slug":1897,"externalUrl":1167},"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",[1896],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1899,"description":1900,"heroImage":1901,"category":1163,"date":1902,"authors":1903,"slug":1905,"externalUrl":1167},"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",[1904],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1907,"description":1908,"heroImage":1909,"category":1163,"date":1910,"authors":1911,"slug":1913,"externalUrl":1167},"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",[1912],"Isa Huerga","co-create-h1-2026",{"header":1915,"text":1916,"button":1920,"disclaimer":1923},"Start your free\n\n30-day GitLab trial\n",[1917,1918,1919],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1190,"config":1921},{"href":1922,"dataGaName":1193,"dataGaLocation":1433},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1925,"blurb":1926,"button":1927,"secondaryButton":1932},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1928,"config":1929},"Get your free trial",{"href":1930,"dataGaName":1193,"dataGaLocation":1931},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1659,"config":1933},{"href":1527,"dataGaName":1198,"dataGaLocation":1931},1794911783478]