[{"data":1,"prerenderedAt":3570},["ShallowReactive",2],{"/blog/eliminate-risk-with-feature-flags-tutorial":3,"navigation-en-us":2788,"banner-en-us":3214,"footer-en-us":3224,"blog-post-authors-en-us-Cesar Saavedra":3467,"blog-related-posts-en-us-eliminate-risk-with-feature-flags-tutorial":3482,"blog-promotions-en-us":3507,"next-steps-en-us":3560},{"id":4,"title":5,"authors":6,"body":8,"category":2767,"date":2768,"description":2769,"extension":2770,"externalUrl":2771,"faq":2771,"featured":2772,"heroImage":2773,"meta":2774,"navigation":1912,"path":2775,"seo":2776,"slug":2780,"stem":2781,"tags":2782,"template":2786,"updatedDate":2771,"__hash__":2787},"blogPosts/en-us/blog/eliminate-risk-with-feature-flags-tutorial.md","How to use feature flags to lower risk in deployments",[7],"Cesar Saavedra",{"type":9,"value":10,"toc":2742},"minimark",[11,15,20,23,27,30,34,37,66,70,73,96,100,107,111,114,218,227,249,336,343,351,379,416,428,468,476,484,526,533,538,546,553,570,647,654,659,664,670,677,685,1021,1028,1032,1038,1045,1049,1078,1093,1140,1147,1165,1240,1246,1253,1280,1384,1391,1396,1518,1525,1542,1553,1558,1564,1571,1664,1668,1683,1721,1735,1742,1753,1771,1781,1814,1824,1839,1859,1872,1886,2088,2102,2119,2122,2126,2135,2140,2186,2204,2211,2215,2227,2231,2246,2289,2293,2340,2344,2347,2387,2452,2459,2466,2469,2473,2487,2491,2505,2515,2529,2533,2536,2540,2589,2592,2596,2618,2701,2705,2710,2726,2738],[12,13,14],"p",{},"Developers typically use advanced techniques like canary, blue/green, and incremental deployments to reduce risk when practicing progressive delivery, a facet of continuous delivery (CD). In this tutorial, we will show you how to use feature flags, another progressive delivery option developers can use to test while in production.",[16,17,19],"h2",{"id":18},"what-is-progressive-delivery","What is progressive delivery?",[12,21,22],{},"Progressive delivery is the ability to test in production while controlling your audience of who can exercise or see updates to an application with a high level of granularity. This approach can also be thought of as developer experimentation.",[16,24,26],{"id":25},"what-are-feature-flags","What are feature flags",[12,28,29],{},"Feature flags enable you to choose what to deploy and who to deploy to in production. They allow you to define the audience for your application updates as well as the fashion in which they will be served.\nFeature flags help stakeholders reduce risk, allowing them to do controlled testing of features and separate feature delivery from customer launch.",[16,31,33],{"id":32},"benefits-of-feature-flags","Benefits of feature flags",[12,35,36],{},"The following are benefits of GitLab's feature flags.",[38,39,40,48,54,60],"ul",{},[41,42,43,47],"li",{},[44,45,46],"strong",{},"Lower risk."," Feature flags prevent unscheduled outages, control your audience in a fine-grained fashion, and can be optionally used in conjunction with canary deployments.",[41,49,50,53],{},[44,51,52],{},"Ease of use."," Feature flags have simple configurability and instrumentation, support user lists, and offer built-in service.",[41,55,56,59],{},[44,57,58],{},"Language agnostic."," Our feature flag implementation supports all of the main programming languages.",[41,61,62,65],{},[44,63,64],{},"Better compliance and audit capabilities."," The GitLab platform automatically records all feature flags actions.",[16,67,69],{"id":68},"tutorial-requirements","Tutorial requirements",[12,71,72],{},"This is what you need for this tutorial:",[74,75,76,79,87,90],"ol",{},[41,77,78],{},"A GitLab account on gitlab.com SaaS",[41,80,81,82,86],{},"Flux CLI installed on your local desktop (on my Mac, I installed it by executing ",[83,84,85],"code",{},"brew install fluxcd/tap/flux",")",[41,88,89],{},"A running Kubernetes cluster, i.e. a GKE cluster with 3 e2-medium nodes",[41,91,92,95],{},[83,93,94],{},"kubectl"," connectivity to your Kubernetes cluster from a local Terminal window on your desktop",[16,97,99],{"id":98},"about-this-feature-flag-tutorial","About this feature flag tutorial",[12,101,102,103,106],{},"This tutorial is based on a fictitious application, which is a simplified inventory system. The goal of this tutorial is to show you how to create, configure, and implement a feature flag using GitLab.\n",[44,104,105],{},"Note:"," This tutorial is for learning purposes and not meant to deploy a production-ready architecture. Also, to keep the number of steps low, masked variables and sealed secrets are not being used throughout this tutorial.",[16,108,110],{"id":109},"flux-and-the-gitlab-agent-for-kubernetes","Flux and the GitLab agent for Kubernetes",[12,112,113],{},"Here is how to install Flux and GitLab agent for Kubernetes.",[38,115,116,119,163,166,193,209],{},[41,117,118],{},"Log on to your GitLab workspace.",[41,120,121,122,125,126,129,130,133,134,137,138,141,142,145,146,149,150,153,154,156,157,162],{},"Create a personal access token (PAT) from your GitLab account by navigating to ",[44,123,124],{},"User settings > Preferences > Access tokens",". In the ",[44,127,128],{},"Personal Access Tokens"," section, click on the ",[44,131,132],{},"Add new token"," button on the righthand side of the section. For ",[44,135,136],{},"Token name",", enter ",[83,139,140],{},"pat-for-flux",". Leave the expiration date with its default (it should be 30 days from its creation) and select the ",[44,143,144],{},"API"," scope for your ",[44,147,148],{},"PAT",". Click on the ",[44,151,152],{},"Create personal access token"," button to create your PAT. Copy and save the value of your ",[44,155,148],{},"; you will need it at a later step.\n",[158,159],"img",{"alt":160,"src":161},"create-pat","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398255/blog/Content%20Images/feature-flags-tutorial/create-pat.png","\nCreating a personal access token",[41,164,165],{},"Head back to your GitLab workspace main page.",[41,167,168,169,172,173,176,177,180,181,184,185,187,188,192],{},"Create a group named “hn” by clicking the button ",[44,170,171],{},"New group"," (or ",[44,174,175],{},"New subgroup"," if you are creating this group inside an existing group) on the top right hand side of your screen, and then clicking on the ",[44,178,179],{},"Create group"," tile. Enter \"hn\" for your ",[44,182,183],{},"Group name"," and click on the ",[44,186,179],{}," button to create it. Leave the rest of the fields with their defaults.\n",[158,189],{"alt":190,"src":191},"create-group-hn","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398252/blog/Content%20Images/feature-flags-tutorial/create-group-hn.png","\nCreating group \"hn\"",[41,194,195,196,199,200,203,204,208],{},"Inside group “hn”, create project “flux-config” by clicking the ",[44,197,198],{},"New project"," on the top righthand side of your screen and then clicking on the ",[44,201,202],{},"Create blank project"," tile.\n",[158,205],{"alt":206,"src":207},"create-proj-flux-config","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398256/blog/Content%20Images/feature-flags-tutorial/create-proj-flux-config.png","\nCreating project \"flux-config\"",[41,210,211,212,214,215,217],{},"From the Terminal window with ",[83,213,94],{}," access to your Kubernetes cluster, export your ",[44,216,148],{}," by entering the following command:",[219,220,221],"blockquote",{},[12,222,223,224],{},"export GITLAB_TOKEN=",[83,225,226],{},"\u003Creplace with your PAT value>",[38,228,229],{},[41,230,211,231,233,234,236,237,240,241,244,245,248],{},[83,232,94],{}," access to your Kubernetes cluster, bootstrap Flux by executing the following command:\n",[44,235,105],{}," Make sure to replace ",[83,238,239],{},"\u003Cyour path>"," with whatever precedes your group “hn”. For example, it could be ",[83,242,243],{},"--owner=tech-marketing/sandbox/hn",", or if your group “hn” is at the very top level of your GitLab workspace, it would be ",[83,246,247],{},"--owner=hn",".",[250,251,256],"pre",{"className":252,"code":253,"language":254,"meta":255,"style":255},"language-shell shiki shiki-themes github-light","flux bootstrap gitlab \\\n  --owner=\u003Cyour path>/hn \\\n  --repository=flux-config \\\n  --branch=main \\\n  --path=clusters/my-cluster \\\n  --deploy-token-auth\n","shell","",[83,257,258,278,306,314,322,330],{"__ignoreMap":255},[259,260,263,267,271,274],"span",{"class":261,"line":262},"line",1,[259,264,266],{"class":265},"s7eDp","flux",[259,268,270],{"class":269},"sYBdl"," bootstrap",[259,272,273],{"class":269}," gitlab",[259,275,277],{"class":276},"sYu0t"," \\\n",[259,279,281,284,288,291,294,298,301,304],{"class":261,"line":280},2,[259,282,283],{"class":276},"  --owner=",[259,285,287],{"class":286},"sD7c4","\u003C",[259,289,290],{"class":276},"your",[259,292,293],{"class":269}," pat",[259,295,297],{"class":296},"sgsFI","h",[259,299,300],{"class":286},">",[259,302,303],{"class":269},"/hn",[259,305,277],{"class":276},[259,307,309,312],{"class":261,"line":308},3,[259,310,311],{"class":276},"  --repository=flux-config",[259,313,277],{"class":276},[259,315,317,320],{"class":261,"line":316},4,[259,318,319],{"class":276},"  --branch=main",[259,321,277],{"class":276},[259,323,325,328],{"class":261,"line":324},5,[259,326,327],{"class":276},"  --path=clusters/my-cluster",[259,329,277],{"class":276},[259,331,333],{"class":261,"line":332},6,[259,334,335],{"class":276},"  --deploy-token-auth\n",[12,337,338,342],{},[158,339],{"alt":340,"src":341},"flux-bootstrap-output","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398257/blog/Content%20Images/feature-flags-tutorial/flux-bootstrap-output.png","{: .shadow.medium.center.}\nFlux bootstrap output",[12,344,345,346,350],{},"The “flux-config” project should now contain new directories and files as shown below:\n",[158,347],{"alt":348,"src":349},"flux-config-post-bootstrap","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398257/blog/Content%20Images/feature-flags-tutorial/flux-config-post-bootstrap.png","\nProject flux-config post flux bootstrap process",[38,352,353],{},[41,354,355,356,359,360,363,364,367,368,236,370,240,372,375,376,248],{},"Head over to project ",[44,357,358],{},"hn/flux-config"," and create file “.gitlab/agents/k8s-agent/config.yaml” by clicking on the ",[44,361,362],{},"+"," sign next to the “flux-config” and selecting ",[44,365,366],{},"New file",". Paste the following into it the new file:\n",[44,369,105],{},[83,371,239],{},[83,373,374],{},"- id: tech-marketing/sandbox/hn"," or if your group “hn” is at the very top level of your GitLab workspace, it would be ",[83,377,378],{},"- id: hn",[250,380,384],{"className":381,"code":382,"language":383,"meta":255,"style":255},"language-yaml shiki shiki-themes github-light","ci_access:\n  groups:\n    - id: \u003Cyour path>/hn\n","yaml",[83,385,386,395,402],{"__ignoreMap":255},[259,387,388,392],{"class":261,"line":262},[259,389,391],{"class":390},"shJU0","ci_access",[259,393,394],{"class":296},":\n",[259,396,397,400],{"class":261,"line":280},[259,398,399],{"class":390},"  groups",[259,401,394],{"class":296},[259,403,404,407,410,413],{"class":261,"line":308},[259,405,406],{"class":296},"    - ",[259,408,409],{"class":390},"id",[259,411,412],{"class":296},": ",[259,414,415],{"class":269},"\u003Cyour path>/hn\n",[12,417,418,419,422,423,427],{},"Commit this file to main by clicking on the ",[44,420,421],{},"Commit changes"," button and ensuring that the target branch is “main”.\n",[158,424],{"alt":425,"src":426},"create-config-yaml","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398250/blog/Content%20Images/feature-flags-tutorial/create-config-yaml.png","\nCreating the GitLab agent for Kubernetes configuration manifest",[38,429,430,446],{},[41,431,432,433,436,437,440,441,445],{},"Head to ",[44,434,435],{},"Operate > Kubernetes clusters"," and register the agent by clicking the ",[44,438,439],{},"Connect a cluster"," button.\n",[158,442],{"alt":443,"src":444},"register-agent","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398268/blog/Content%20Images/feature-flags-tutorial/register-agent.png","\nRegistering the GitLab agent for Kubernetes",[41,447,448,449,452,453,456,457,459,460,440,463,467],{},"On the “Connect a Kubernetes cluster” dialog, click on the popdown list and select agent “k8s-agent”. Click on the ",[44,450,451],{},"Register"," button. The dialog will refresh and show the ",[44,454,455],{},"Agent access token",". Copy and save the ",[44,458,455],{},"; you will need it at a later step. Close the dialog by clicking on the ",[44,461,462],{},"Close",[158,464],{"alt":465,"src":466},"agent-access-token-dialog","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398236/blog/Content%20Images/feature-flags-tutorial/agent-access-token-dialog.png","\nThe agent access token to save",[12,469,470,471,475],{},"At this moment, you will see the agent listed and its Connection status will be “Never connected”.\n",[158,472],{"alt":473,"src":474},"agent-not-connected","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398236/blog/Content%20Images/feature-flags-tutorial/agent-not-connected.png","\nAgent registered but not connected yet",[38,477,478],{},[41,479,432,480,483],{},[44,481,482],{},"flux-config/clusters/my-cluster"," directory and create a file named “namespace-gitlab.yaml” and paste the following into it:",[250,485,487],{"className":381,"code":486,"language":383,"meta":255,"style":255},"apiVersion: v1\nkind: Namespace\nmetadata:\n  name: gitlab\n",[83,488,489,499,509,516],{"__ignoreMap":255},[259,490,491,494,496],{"class":261,"line":262},[259,492,493],{"class":390},"apiVersion",[259,495,412],{"class":296},[259,497,498],{"class":269},"v1\n",[259,500,501,504,506],{"class":261,"line":280},[259,502,503],{"class":390},"kind",[259,505,412],{"class":296},[259,507,508],{"class":269},"Namespace\n",[259,510,511,514],{"class":261,"line":308},[259,512,513],{"class":390},"metadata",[259,515,394],{"class":296},[259,517,518,521,523],{"class":261,"line":316},[259,519,520],{"class":390},"  name",[259,522,412],{"class":296},[259,524,525],{"class":269},"gitlab\n",[12,527,528,532],{},[158,529],{"alt":530,"src":531},"gitlab-namespace-manifest","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398260/blog/Content%20Images/feature-flags-tutorial/gitlab-namespace-manifest.png","\nManifest for the gitlab namespace",[12,534,418,535,537],{},[44,536,421],{}," button and ensuring that the target branch is “main”.",[250,539,544],{"className":540,"code":542,"language":543,"meta":255},[541],"language-text","Note: You can check that the namespace was created in your cluster by executing this command from a Terminal:\n\nkubectl get ns\n","text",[83,545,542],{"__ignoreMap":255},[12,547,548,552],{},[158,549],{"alt":550,"src":551},"gitlab-ns-created","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398260/blog/Content%20Images/feature-flags-tutorial/gitlab-ns-created.png","\nFlux created gitlab namespace",[38,554,555],{},[41,556,557,558,560,561,236,563,566,567,569],{},"Before we have Flux deploy the GitLab agent for Kubernetes to your cluster, we need to create a secret, containing the ",[44,559,455],{}," you saved earlier, in your cluster. Create a file named “secret.yaml” in your local desktop, paste the following into it and then save it:\n",[44,562,105],{},[83,564,565],{},"\u003Cyour-agent-access-token-here>"," with your ",[44,568,455],{}," you saved earlier.",[250,571,573],{"className":381,"code":572,"language":383,"meta":255,"style":255},"apiVersion: v1\nkind: Secret\nmetadata:\n  name: gitlab-agent-token-initial\ntype: Opaque\nstringData:\n  values.yaml: |-\n    config:\n      token: \"\u003Cyour-agent-access-token-here>\"\n",[83,574,575,583,592,598,607,617,624,635,641],{"__ignoreMap":255},[259,576,577,579,581],{"class":261,"line":262},[259,578,493],{"class":390},[259,580,412],{"class":296},[259,582,498],{"class":269},[259,584,585,587,589],{"class":261,"line":280},[259,586,503],{"class":390},[259,588,412],{"class":296},[259,590,591],{"class":269},"Secret\n",[259,593,594,596],{"class":261,"line":308},[259,595,513],{"class":390},[259,597,394],{"class":296},[259,599,600,602,604],{"class":261,"line":316},[259,601,520],{"class":390},[259,603,412],{"class":296},[259,605,606],{"class":269},"gitlab-agent-token-initial\n",[259,608,609,612,614],{"class":261,"line":324},[259,610,611],{"class":390},"type",[259,613,412],{"class":296},[259,615,616],{"class":269},"Opaque\n",[259,618,619,622],{"class":261,"line":332},[259,620,621],{"class":390},"stringData",[259,623,394],{"class":296},[259,625,627,630,632],{"class":261,"line":626},7,[259,628,629],{"class":390},"  values.yaml",[259,631,412],{"class":296},[259,633,634],{"class":286},"|-\n",[259,636,638],{"class":261,"line":637},8,[259,639,640],{"class":269},"    config:\n",[259,642,644],{"class":261,"line":643},9,[259,645,646],{"class":269},"      token: \"\u003Cyour-agent-access-token-here>\"\n",[12,648,649,653],{},[158,650],{"alt":651,"src":652},"agent-token-secret","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398236/blog/Content%20Images/feature-flags-tutorial/agent-token-secret.png","{: .shadow.medium.center.}\nManifest for agent token secret created on local desktop",[38,655,656],{},[41,657,658],{},"Create the secret in your cluster by executing the following command from a Terminal:",[219,660,661],{},[12,662,663],{},"kubectl apply -f secret.yaml -n gitlab",[250,665,668],{"className":666,"code":667,"language":543,"meta":255},[541],"Note: You can check that the secret was created in your cluster by executing this command from a Terminal:\n\nkubectl get secrets -n gitlab\n",[83,669,667],{"__ignoreMap":255},[12,671,672,676],{},[158,673],{"alt":674,"src":675},"apply-agent-token-secret","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398251/blog/Content%20Images/feature-flags-tutorial/apply-agent-token-secret.png","\nApplying the agent token secret to the Kubernetes cluster",[38,678,679],{},[41,680,681,682,684],{},"Now let’s use the Flux Helm Controller to deploy the GitLab agent for Kubernetes to your cluster. Head to ",[44,683,482],{}," directory and create a file named “agentk.yaml” and paste the following into it:",[250,686,688],{"className":381,"code":687,"language":383,"meta":255,"style":255},"---\napiVersion: source.toolkit.fluxcd.io/v1beta2\nkind: HelmRepository\nmetadata:\n  labels:\n    app.kubernetes.io/component: agentk\n    app.kubernetes.io/created-by: gitlab\n    app.kubernetes.io/name: agentk\n    app.kubernetes.io/part-of: gitlab\n  name: gitlab-agent\n  namespace: gitlab\nspec:\n  interval: 1h0m0s\n  url: https://charts.gitlab.io\n---\napiVersion: helm.toolkit.fluxcd.io/v2beta1\nkind: HelmRelease\nmetadata:\n  name: gitlab-agent\n  namespace: gitlab\nspec:\n  chart:\n    spec:\n      chart: gitlab-agent\n      sourceRef:\n        kind: HelmRepository\n        name: gitlab-agent\n        namespace: gitlab\n  interval: 1h0m0s\n  values:\n    replicas: 1\n    config:\n      kasAddress: \"wss://kas.gitlab.com\"\n  valuesFrom:\n    - kind: Secret\n      name: gitlab-agent-token-initial\n      valuesKey: values.yaml\n",[83,689,690,695,704,713,719,726,736,745,754,763,773,783,791,802,813,818,828,838,845,854,863,870,878,886,896,904,914,924,934,943,951,962,970,981,989,1000,1010],{"__ignoreMap":255},[259,691,692],{"class":261,"line":262},[259,693,694],{"class":265},"---\n",[259,696,697,699,701],{"class":261,"line":280},[259,698,493],{"class":390},[259,700,412],{"class":296},[259,702,703],{"class":269},"source.toolkit.fluxcd.io/v1beta2\n",[259,705,706,708,710],{"class":261,"line":308},[259,707,503],{"class":390},[259,709,412],{"class":296},[259,711,712],{"class":269},"HelmRepository\n",[259,714,715,717],{"class":261,"line":316},[259,716,513],{"class":390},[259,718,394],{"class":296},[259,720,721,724],{"class":261,"line":324},[259,722,723],{"class":390},"  labels",[259,725,394],{"class":296},[259,727,728,731,733],{"class":261,"line":332},[259,729,730],{"class":390},"    app.kubernetes.io/component",[259,732,412],{"class":296},[259,734,735],{"class":269},"agentk\n",[259,737,738,741,743],{"class":261,"line":626},[259,739,740],{"class":390},"    app.kubernetes.io/created-by",[259,742,412],{"class":296},[259,744,525],{"class":269},[259,746,747,750,752],{"class":261,"line":637},[259,748,749],{"class":390},"    app.kubernetes.io/name",[259,751,412],{"class":296},[259,753,735],{"class":269},[259,755,756,759,761],{"class":261,"line":643},[259,757,758],{"class":390},"    app.kubernetes.io/part-of",[259,760,412],{"class":296},[259,762,525],{"class":269},[259,764,766,768,770],{"class":261,"line":765},10,[259,767,520],{"class":390},[259,769,412],{"class":296},[259,771,772],{"class":269},"gitlab-agent\n",[259,774,776,779,781],{"class":261,"line":775},11,[259,777,778],{"class":390},"  namespace",[259,780,412],{"class":296},[259,782,525],{"class":269},[259,784,786,789],{"class":261,"line":785},12,[259,787,788],{"class":390},"spec",[259,790,394],{"class":296},[259,792,794,797,799],{"class":261,"line":793},13,[259,795,796],{"class":390},"  interval",[259,798,412],{"class":296},[259,800,801],{"class":269},"1h0m0s\n",[259,803,805,808,810],{"class":261,"line":804},14,[259,806,807],{"class":390},"  url",[259,809,412],{"class":296},[259,811,812],{"class":269},"https://charts.gitlab.io\n",[259,814,816],{"class":261,"line":815},15,[259,817,694],{"class":265},[259,819,821,823,825],{"class":261,"line":820},16,[259,822,493],{"class":390},[259,824,412],{"class":296},[259,826,827],{"class":269},"helm.toolkit.fluxcd.io/v2beta1\n",[259,829,831,833,835],{"class":261,"line":830},17,[259,832,503],{"class":390},[259,834,412],{"class":296},[259,836,837],{"class":269},"HelmRelease\n",[259,839,841,843],{"class":261,"line":840},18,[259,842,513],{"class":390},[259,844,394],{"class":296},[259,846,848,850,852],{"class":261,"line":847},19,[259,849,520],{"class":390},[259,851,412],{"class":296},[259,853,772],{"class":269},[259,855,857,859,861],{"class":261,"line":856},20,[259,858,778],{"class":390},[259,860,412],{"class":296},[259,862,525],{"class":269},[259,864,866,868],{"class":261,"line":865},21,[259,867,788],{"class":390},[259,869,394],{"class":296},[259,871,873,876],{"class":261,"line":872},22,[259,874,875],{"class":390},"  chart",[259,877,394],{"class":296},[259,879,881,884],{"class":261,"line":880},23,[259,882,883],{"class":390},"    spec",[259,885,394],{"class":296},[259,887,889,892,894],{"class":261,"line":888},24,[259,890,891],{"class":390},"      chart",[259,893,412],{"class":296},[259,895,772],{"class":269},[259,897,899,902],{"class":261,"line":898},25,[259,900,901],{"class":390},"      sourceRef",[259,903,394],{"class":296},[259,905,907,910,912],{"class":261,"line":906},26,[259,908,909],{"class":390},"        kind",[259,911,412],{"class":296},[259,913,712],{"class":269},[259,915,917,920,922],{"class":261,"line":916},27,[259,918,919],{"class":390},"        name",[259,921,412],{"class":296},[259,923,772],{"class":269},[259,925,927,930,932],{"class":261,"line":926},28,[259,928,929],{"class":390},"        namespace",[259,931,412],{"class":296},[259,933,525],{"class":269},[259,935,937,939,941],{"class":261,"line":936},29,[259,938,796],{"class":390},[259,940,412],{"class":296},[259,942,801],{"class":269},[259,944,946,949],{"class":261,"line":945},30,[259,947,948],{"class":390},"  values",[259,950,394],{"class":296},[259,952,954,957,959],{"class":261,"line":953},31,[259,955,956],{"class":390},"    replicas",[259,958,412],{"class":296},[259,960,961],{"class":276},"1\n",[259,963,965,968],{"class":261,"line":964},32,[259,966,967],{"class":390},"    config",[259,969,394],{"class":296},[259,971,973,976,978],{"class":261,"line":972},33,[259,974,975],{"class":390},"      kasAddress",[259,977,412],{"class":296},[259,979,980],{"class":269},"\"wss://kas.gitlab.com\"\n",[259,982,984,987],{"class":261,"line":983},34,[259,985,986],{"class":390},"  valuesFrom",[259,988,394],{"class":296},[259,990,992,994,996,998],{"class":261,"line":991},35,[259,993,406],{"class":296},[259,995,503],{"class":390},[259,997,412],{"class":296},[259,999,591],{"class":269},[259,1001,1003,1006,1008],{"class":261,"line":1002},36,[259,1004,1005],{"class":390},"      name",[259,1007,412],{"class":296},[259,1009,606],{"class":269},[259,1011,1013,1016,1018],{"class":261,"line":1012},37,[259,1014,1015],{"class":390},"      valuesKey",[259,1017,412],{"class":296},[259,1019,1020],{"class":269},"values.yaml\n",[12,1022,1023,1027],{},[158,1024],{"alt":1025,"src":1026},"create-agentk-manifest","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398250/blog/Content%20Images/feature-flags-tutorial/create-agentk-manifest.png","\nCreating the manifest for the GitLab agent for Kubernetes",[12,1029,418,1030,537],{},[44,1031,421],{},[250,1033,1036],{"className":1034,"code":1035,"language":543,"meta":255},[541],"Note: In a few seconds, you can check that the GitLab agent for Kubernetes was created in your cluster by executing this command from a Terminal (the pod name should start with “gitlab-agent”):\n\nkubectl get pods -n gitlab\n",[83,1037,1035],{"__ignoreMap":255},[12,1039,1040,1044],{},[158,1041],{"alt":1042,"src":1043},"agentk-pod-up","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398237/blog/Content%20Images/feature-flags-tutorial/agentk-pod-up.png","\nAgentk running in the Kubernetes cluster",[16,1046,1048],{"id":1047},"creating-an-instance-of-mysql-database-in-your-cluster-via-flux","Creating an instance of MySQL database in your cluster via Flux",[38,1050,1051,1065],{},[41,1052,1053,1054,1056,1057,1060,1061,1064],{},"Using the breadcrumb at the top of your window, head to group “hn” and create a new project by clicking on the ",[44,1055,198],{}," button. On the ",[44,1058,1059],{},"Create new project"," window, click on the ",[44,1062,1063],{},"Import project"," tile.",[41,1066,1067,1068,1060,1070,1073,1074,1077],{},"At the ",[44,1069,1063],{},[44,1071,1072],{},"Repository by URL"," button. The window will display fields to enter the URL of the repository you would like to import. In the text field ",[44,1075,1076],{},"Git repository URL",", enter the following:",[219,1079,1080],{},[12,1081,1082,1087,1088,1092],{},[1083,1084,1085],"a",{"href":1085,"rel":1086},"https://gitlab.com/tech-marketing/sandbox/mysql.git",[],"\nLeave the rest of the fields with their defaults.\n",[158,1089],{"alt":1090,"src":1091},"import-mysql-proj","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398262/blog/Content%20Images/feature-flags-tutorial/import-mysql-proj.png","\nImporting mysql project into group \"hn\"",[38,1094,1095,1102,1124],{},[41,1096,1097,1098,1101],{},"Click on the ",[44,1099,1100],{},"Create project"," button at the bottom of the screen. You will see an \"Importing in progress\" message temporarily on your screen.",[41,1103,1104,1105,1108,1109,1112,1113,1116,1117,1119,1120,1123],{},"Now we need to create a deploy token for this project so that Flux can interact with it. While in project “mysql”, select ",[44,1106,1107],{},"Settings > Repository"," and scroll down to the ",[44,1110,1111],{},"Deploy tokens"," section. Click on the ",[44,1114,1115],{},"Expand"," button to the right of the ",[44,1118,1111],{}," section. Then click on the ",[44,1121,1122],{},"Add token"," button, which will expand the section to include fields to start entering information for the deploy token to be created.",[41,1125,1126,1127,1130,1131,1134,1135,1139],{},"Give the deploy token the name “mysql-flux-deploy-token” and check the checkbox ",[44,1128,1129],{},"read_repository"," for it. Then click on the button ",[44,1132,1133],{},"Create deploy token"," to create the token.\n",[158,1136],{"alt":1137,"src":1138},"create-mysql-deploy-token","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398252/blog/Content%20Images/feature-flags-tutorial/create-mysql-deploy-token.png","\nCreating the deploy token for \"mysql\" project for Flux to interact with it",[12,1141,1142,1143,1139],{},"Copy and save the username and password for the newly created deploy token; you will need them at a later step.\n",[158,1144],{"alt":1145,"src":1146},"mysql-deploy-token-created","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398263/blog/Content%20Images/feature-flags-tutorial/mysql-deploy-token-created.png",[38,1148,1149],{},[41,1150,1151,1152,236,1154,1156,1157],{},"From a Terminal, execute the following command to create a secret in your cluster for the deploy token you just created:\n",[44,1153,105],{},[83,1155,239],{}," with the missing partial path to the project “mysql”, ",[1158,1159,1160,1161],"your-deploy-token-username",{}," with the deploy token username you saved earlier, and the ",[1162,1163,1164],"your-deploy-token-password",{}," with the deploy token password you saved earlier.",[250,1166,1168],{"className":252,"code":1167,"language":254,"meta":255,"style":255},"flux create secret git mysql-flux-deploy-authentication \\\n         --url=https://gitlab.com/\u003Cyour path>/hn/mysql \\\n         --namespace=default \\\n         --username=\u003Cyour-deploy-token-username> \\\n         --password=\u003Cyour-deploy-token-password>\n",[83,1169,1170,1188,1208,1215,1228],{"__ignoreMap":255},[259,1171,1172,1174,1177,1180,1183,1186],{"class":261,"line":262},[259,1173,266],{"class":265},[259,1175,1176],{"class":269}," create",[259,1178,1179],{"class":269}," secret",[259,1181,1182],{"class":269}," git",[259,1184,1185],{"class":269}," mysql-flux-deploy-authentication",[259,1187,277],{"class":276},[259,1189,1190,1193,1195,1197,1199,1201,1203,1206],{"class":261,"line":280},[259,1191,1192],{"class":276},"         --url=https://gitlab.com/",[259,1194,287],{"class":286},[259,1196,290],{"class":276},[259,1198,293],{"class":269},[259,1200,297],{"class":296},[259,1202,300],{"class":286},[259,1204,1205],{"class":269},"/hn/mysql",[259,1207,277],{"class":276},[259,1209,1210,1213],{"class":261,"line":308},[259,1211,1212],{"class":276},"         --namespace=default",[259,1214,277],{"class":276},[259,1216,1217,1220,1222,1224,1226],{"class":261,"line":316},[259,1218,1219],{"class":276},"         --username=",[259,1221,287],{"class":286},[259,1223,1158],{"class":276},[259,1225,300],{"class":286},[259,1227,277],{"class":276},[259,1229,1230,1233,1235,1237],{"class":261,"line":324},[259,1231,1232],{"class":276},"         --password=",[259,1234,287],{"class":286},[259,1236,1162],{"class":276},[259,1238,1239],{"class":286},">\n",[250,1241,1244],{"className":1242,"code":1243,"language":543,"meta":255},[541],"Note: You can check that the secret was created in your cluster by executing this command from a Terminal:\n\nkubectl -n default get secrets mysql-flux-deploy-authentication\n",[83,1245,1243],{"__ignoreMap":255},[12,1247,1248,1252],{},[158,1249],{"alt":1250,"src":1251},"mysql-secret-created","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398267/blog/Content%20Images/feature-flags-tutorial/mysql-secret-created.png","\nCreating secret for the deploy token for \"mysql\" project in the Kubernetes cluster",[38,1254,1255,1263,1271],{},[41,1256,1257,1258,1262],{},"Head back to project “hn/flux-config” and open the Web IDE from it.\n",[158,1259],{"alt":1260,"src":1261},"open-web-ide","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398267/blog/Content%20Images/feature-flags-tutorial/open-web-ide.png","\nSelecting Web IDE from the dropdown menu",[41,1264,1265,1266,1270],{},"From inside the Web IDE, navigate to directory \"clusters/my-cluster\".\n",[158,1267],{"alt":1268,"src":1269},"goto-clusters-mycluster","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398261/blog/Content%20Images/feature-flags-tutorial/goto-clusters-mycluster.png","\nNavigate to directory \"clusters/my-cluster\" in the Web IDE",[41,1272,1273,1274,1276,1277,1279],{},"Inside “clusters/my-cluster” directory, create file “mysql-manifests-source.yaml” and paste the following text into it:\n",[44,1275,105],{}," Replace ",[83,1278,239],{}," with the missing partial path to the project “mysql”",[250,1281,1283],{"className":381,"code":1282,"language":383,"meta":255,"style":255},"apiVersion: source.toolkit.fluxcd.io/v1beta2\nkind: GitRepository\nmetadata:\n  name: mysql\n  namespace: default\nspec:\n  interval: 1m0s\n  ref:\n    branch: main\n  secretRef:\n    name: mysql-flux-deploy-authentication\n  url: https://gitlab.com/\u003Cyour path>/hn/mysql\n",[83,1284,1285,1293,1302,1308,1317,1326,1332,1341,1348,1358,1365,1375],{"__ignoreMap":255},[259,1286,1287,1289,1291],{"class":261,"line":262},[259,1288,493],{"class":390},[259,1290,412],{"class":296},[259,1292,703],{"class":269},[259,1294,1295,1297,1299],{"class":261,"line":280},[259,1296,503],{"class":390},[259,1298,412],{"class":296},[259,1300,1301],{"class":269},"GitRepository\n",[259,1303,1304,1306],{"class":261,"line":308},[259,1305,513],{"class":390},[259,1307,394],{"class":296},[259,1309,1310,1312,1314],{"class":261,"line":316},[259,1311,520],{"class":390},[259,1313,412],{"class":296},[259,1315,1316],{"class":269},"mysql\n",[259,1318,1319,1321,1323],{"class":261,"line":324},[259,1320,778],{"class":390},[259,1322,412],{"class":296},[259,1324,1325],{"class":269},"default\n",[259,1327,1328,1330],{"class":261,"line":332},[259,1329,788],{"class":390},[259,1331,394],{"class":296},[259,1333,1334,1336,1338],{"class":261,"line":626},[259,1335,796],{"class":390},[259,1337,412],{"class":296},[259,1339,1340],{"class":269},"1m0s\n",[259,1342,1343,1346],{"class":261,"line":637},[259,1344,1345],{"class":390},"  ref",[259,1347,394],{"class":296},[259,1349,1350,1353,1355],{"class":261,"line":643},[259,1351,1352],{"class":390},"    branch",[259,1354,412],{"class":296},[259,1356,1357],{"class":269},"main\n",[259,1359,1360,1363],{"class":261,"line":765},[259,1361,1362],{"class":390},"  secretRef",[259,1364,394],{"class":296},[259,1366,1367,1370,1372],{"class":261,"line":775},[259,1368,1369],{"class":390},"    name",[259,1371,412],{"class":296},[259,1373,1374],{"class":269},"mysql-flux-deploy-authentication\n",[259,1376,1377,1379,1381],{"class":261,"line":785},[259,1378,807],{"class":390},[259,1380,412],{"class":296},[259,1382,1383],{"class":269},"https://gitlab.com/\u003Cyour path>/hn/mysql\n",[12,1385,1386,1390],{},[158,1387],{"alt":1388,"src":1389},"create-mysql-source-manifest","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398255/blog/Content%20Images/feature-flags-tutorial/create-mysql-source-manifest.png","\nCreating mysql-manifests-source.yaml file in the Web IDE",[38,1392,1393],{},[41,1394,1395],{},"Still in the Web IDE, inside “clusters/my-cluster” directory, create file “mysql-manifests-kustomization.yaml” and paste the following text into it:",[250,1397,1399],{"className":381,"code":1398,"language":383,"meta":255,"style":255},"apiVersion: kustomize.toolkit.fluxcd.io/v1beta2\nkind: Kustomization\nmetadata:\n  name: mysql-source-kustomization\n  namespace: default\nspec:\n  interval: 1m0s\n  path: ./\n  prune: true\n  sourceRef:\n    kind: GitRepository\n    name: mysql\n    namespace: default\n  targetNamespace: default\n",[83,1400,1401,1410,1419,1425,1434,1442,1448,1456,1466,1476,1483,1492,1500,1509],{"__ignoreMap":255},[259,1402,1403,1405,1407],{"class":261,"line":262},[259,1404,493],{"class":390},[259,1406,412],{"class":296},[259,1408,1409],{"class":269},"kustomize.toolkit.fluxcd.io/v1beta2\n",[259,1411,1412,1414,1416],{"class":261,"line":280},[259,1413,503],{"class":390},[259,1415,412],{"class":296},[259,1417,1418],{"class":269},"Kustomization\n",[259,1420,1421,1423],{"class":261,"line":308},[259,1422,513],{"class":390},[259,1424,394],{"class":296},[259,1426,1427,1429,1431],{"class":261,"line":316},[259,1428,520],{"class":390},[259,1430,412],{"class":296},[259,1432,1433],{"class":269},"mysql-source-kustomization\n",[259,1435,1436,1438,1440],{"class":261,"line":324},[259,1437,778],{"class":390},[259,1439,412],{"class":296},[259,1441,1325],{"class":269},[259,1443,1444,1446],{"class":261,"line":332},[259,1445,788],{"class":390},[259,1447,394],{"class":296},[259,1449,1450,1452,1454],{"class":261,"line":626},[259,1451,796],{"class":390},[259,1453,412],{"class":296},[259,1455,1340],{"class":269},[259,1457,1458,1461,1463],{"class":261,"line":637},[259,1459,1460],{"class":390},"  path",[259,1462,412],{"class":296},[259,1464,1465],{"class":269},"./\n",[259,1467,1468,1471,1473],{"class":261,"line":643},[259,1469,1470],{"class":390},"  prune",[259,1472,412],{"class":296},[259,1474,1475],{"class":276},"true\n",[259,1477,1478,1481],{"class":261,"line":765},[259,1479,1480],{"class":390},"  sourceRef",[259,1482,394],{"class":296},[259,1484,1485,1488,1490],{"class":261,"line":775},[259,1486,1487],{"class":390},"    kind",[259,1489,412],{"class":296},[259,1491,1301],{"class":269},[259,1493,1494,1496,1498],{"class":261,"line":785},[259,1495,1369],{"class":390},[259,1497,412],{"class":296},[259,1499,1316],{"class":269},[259,1501,1502,1505,1507],{"class":261,"line":793},[259,1503,1504],{"class":390},"    namespace",[259,1506,412],{"class":296},[259,1508,1325],{"class":269},[259,1510,1511,1514,1516],{"class":261,"line":804},[259,1512,1513],{"class":390},"  targetNamespace",[259,1515,412],{"class":296},[259,1517,1325],{"class":269},[12,1519,1520,1524],{},[158,1521],{"alt":1522,"src":1523},"create-mysql-kustomization-manifest","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398255/blog/Content%20Images/feature-flags-tutorial/create-mysql-kustomization-manifest.png","\nCreating mysql-manifests-kustomization.yaml file in the Web IDE",[38,1526,1527],{},[41,1528,1529,1530,1533,1534,440,1537,1541],{},"From the Web IDE, commit both files to the main branch by clicking on the ",[44,1531,1532],{},"Source Control"," icon on the left vertical menu, pressing the ",[44,1535,1536],{},"Commit to main",[158,1538],{"alt":1539,"src":1540},"commit-to-main","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398251/blog/Content%20Images/feature-flags-tutorial/commit-to-main.png","\nClicking on the Source Control icon and committing to main in the Web IDE",[12,1543,1544,1545,1548,1549,1541],{},"Then press the ",[44,1546,1547],{},"Continue"," button to confirm that you want to commit your changes to the default branch:\n",[158,1550],{"alt":1551,"src":1552},"commit-to-main-continue","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398251/blog/Content%20Images/feature-flags-tutorial/commit-to-main-continue.png",[38,1554,1555],{},[41,1556,1557],{},"Flux will deploy MySQL to your Kubernetes cluster. You can close the Web IDE browser tab at this point.",[250,1559,1562],{"className":1560,"code":1561,"language":543,"meta":255},[541],"Note: You can check that the GitLab agent for Kubernetes was created in your cluster by executing this command from a Terminal:\n\nkubectl get pods -l app=mysql\n\nYou can check the persistent volume by executing this command from a Terminal:\n\nkubectl describe pvc mysql-pv-claim\n",[83,1563,1561],{"__ignoreMap":255},[12,1565,1566,1570],{},[158,1567],{"alt":1568,"src":1569},"mysql-pod-and-pv-up","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398266/blog/Content%20Images/feature-flags-tutorial/mysql-pod-and-pv-up.png","\nVerifying that mysql pod and its associated persitent volume claim are up and ready",[38,1572,1573,1588,1615,1635],{},[41,1574,1575,1576,1579,1580,1584,1585,1587],{},"Now that the MySQL pod is up and running, we need to create a database, tables, and indexes in it and also populate some of the tables with dummy data for the inventory system. Using the breadcrumb at the top of your window, head over to the “mysql” project and select ",[44,1577,1578],{},"Build > Pipelines"," from the left vertical navigation menu.\n",[158,1581],{"alt":1582,"src":1583},"head-to-mysql-build-pipelines","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398261/blog/Content%20Images/feature-flags-tutorial/head-to-mysql-build-pipelines.png","\nHead to \"mysql\" project and select ",[44,1586,1578],{}," from the left vertical navigation menu",[41,1589,1097,1590,1593,1594,1597,1598,1600,1601,1603,1604,1606,1607,1611,1612,1614],{},[44,1591,1592],{},"Run pipeline"," button on the top right side of the ",[44,1595,1596],{},"Pipelines"," window. This will put you on the ",[44,1599,1592],{}," window. Click on the ",[44,1602,1592],{}," button on the bottom left of the ",[44,1605,1592],{}," window leaving the rest of the fields with its defaults.\n",[158,1608],{"alt":1609,"src":1610},"run-pipeline-button","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398268/blog/Content%20Images/feature-flags-tutorial/run-pipeline-button.png","\nClicking on the ",[44,1613,1592],{}," button to run the project \"mysql\" pipeline",[41,1616,1617,1618,1621,1622,1625,1626,1629,1630,1634],{},"At this point you will see the pipeline stage and jobs. There are two jobs under the ",[44,1619,1620],{},"Build"," stage: ",[44,1623,1624],{},"create_and_load_db"," and ",[44,1627,1628],{},"clear_db",".\n",[158,1631],{"alt":1632,"src":1633},"mysql-pipeline","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398264/blog/Content%20Images/feature-flags-tutorial/mysql-pipeline.png","\nThe \"mysql\" pipeline and its two manual jobs",[41,1636,1637,1638,1640,1641,1644,1645,1648,1649,1651,1652,1654,1655,1657,1658,1660,1661,1663],{},"Click on the Play button (the right solid arrow) next to the ",[44,1639,1624],{}," job name. This job will create a ",[44,1642,1643],{},"product"," table and a ",[44,1646,1647],{},"users"," table and populate them with dummy data. It will also create tables and indexes needed for storing all the session-related information as users log in and log out from the inventory system.\n",[44,1650,105],{}," The ",[44,1653,1628],{}," job should only be used if you’d like to erase all of the database resources created by the ",[44,1656,1624],{}," job. The ",[44,1659,1628],{}," should only be used AFTER a failed run of the ",[44,1662,1624],{}," job.\nNow that we have the database ready to go, let’s set up the project that we will use for the creation of the feature flags.",[16,1665,1667],{"id":1666},"creating-and-importing-projects","Creating and importing projects",[38,1669,1670],{},[41,1671,1672,1673,1678,1679,1682],{},"Head back to group “hn” and inside of it, create a cluster management project (you can call it “cluster-management”) at the same level as the project you imported above. You can view this ",[1083,1674,1677],{"href":1675,"rel":1676},"https://www.youtube.com/watch?v=QRR3WuwnxXE&t=200s",[],"instructional video"," (up to minute 6:09) to see how to do this. While applying the steps in the video for this tutorial, adjust the variables values from the video to this post as described in the following notes:\n",[44,1680,1681],{},"Note 1:"," Make sure to create and set the KUBE_CONTEXT and KUBE_NAMESPACE variable in group “hn” and to these values:",[1684,1685,1686,1699],"table",{},[1687,1688,1689],"thead",{},[1690,1691,1692,1696],"tr",{},[1693,1694,1695],"th",{},"variable",[1693,1697,1698],{},"value",[1700,1701,1702,1713],"tbody",{},[1690,1703,1704,1708],{},[1705,1706,1707],"td",{},"KUBE_CONTEXT",[1705,1709,1710,1712],{},[83,1711,239],{},"/hn/flux-config:k8s-agent",[1690,1714,1715,1718],{},[1705,1716,1717],{},"KUBE_NAMESPACE",[1705,1719,1720],{},"my-apps",[12,1722,1723,1724,1726,1727,1729,1730,1734],{},"For example, in my case ",[83,1725,239],{}," was “tech-marketing/sandbox/hn/flux-config:k8s-agent”. In your case, it will be different. If ",[83,1728,239],{}," is at the root of your GitLab workspace, then it would be empty so the value of KUBE_CONTEXT would be “hn/flux-config:k8s-agent”.\n",[158,1731],{"alt":1732,"src":1733},"add-var-KUBE_CONTEXT","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398236/blog/Content%20Images/feature-flags-tutorial/add-var-KUBE_CONTEXT.png","\nAdding variable KUBE_CONTEXT in group \"hn\"",[12,1736,1737,1741],{},[158,1738],{"alt":1739,"src":1740},"add-var-KUBE_NAMESPACE","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398236/blog/Content%20Images/feature-flags-tutorial/add-var-KUBE_NAMESPACE.png","\nAdding variable KUBE_NAMESPACE in group \"hn\"",[12,1743,1744,1747,1748,1752],{},[44,1745,1746],{},"Note 2:"," As an FYI, when uncommenting the GitLab managed apps in the “helmfile.yaml” file, there will not be one for Prometheus. So, you will only uncomment the lines for ingress and cert-manager.\n",[158,1749],{"alt":1750,"src":1751},"uncomment-ingress-and-cert-manager","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398270/blog/Content%20Images/feature-flags-tutorial/uncomment-ingress-and-cert-manager.png","\nUncommenting lines for ingress and cert-manager in file \"helmfile.yaml\"",[12,1754,1755,1758,1759,1762,1763,1767,1768,1770],{},[44,1756,1757],{},"Note 3:"," When the pipeline for project “cluster-management” runs, you will notice that the job “sync” is a manual job. You will need to click on its ",[44,1760,1761],{},"Play"," (right arrow next to its name) button to run it. Wait until the “sync” job completes successfully before continuing.\n",[158,1764],{"alt":1765,"src":1766},"click-play-on-sync-job","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398250/blog/Content%20Images/feature-flags-tutorial/click-play-on-sync-job.png","\nJob \"sync\" is manual so you need to press on the ",[44,1769,1761],{}," button next to its name",[12,1772,1773,1776,1777,1780],{},[44,1774,1775],{},"Note 4:"," Once the pipeline finishes, for your convenience, here is the command you need to run from a Terminal window to get the ",[44,1778,1779],{},"external IP"," address of your cluster:",[250,1782,1784],{"className":252,"code":1783,"language":254,"meta":255,"style":255},"kubectl --namespace gitlab-managed-apps get services -o wide -w ingress-ingress-nginx-controller\n",[83,1785,1786],{"__ignoreMap":255},[259,1787,1788,1790,1793,1796,1799,1802,1805,1808,1811],{"class":261,"line":262},[259,1789,94],{"class":265},[259,1791,1792],{"class":276}," --namespace",[259,1794,1795],{"class":269}," gitlab-managed-apps",[259,1797,1798],{"class":269}," get",[259,1800,1801],{"class":269}," services",[259,1803,1804],{"class":276}," -o",[259,1806,1807],{"class":269}," wide",[259,1809,1810],{"class":276}," -w",[259,1812,1813],{"class":269}," ingress-ingress-nginx-controller\n",[12,1815,1816,1820,1821,1823],{},[158,1817],{"alt":1818,"src":1819},"getting-external-ip-address","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398258/blog/Content%20Images/feature-flags-tutorial/getting-external-ip-address.png","\nRunning ",[83,1822,94],{}," command to get the ingress IP address to the cluster",[12,1825,1826,1827,1830,1831,1833,1834,1838],{},"Create and set a variable ",[83,1828,1829],{},"KUBE_INGRESS_BASE_DOMAIN"," in group “hn” and set it to the ",[44,1832,1779],{}," address of your cluster and append the suffix “.nip.io” to it.\n",[158,1835],{"alt":1836,"src":1837},"add-var-KUBE_INGRESS_BASE_DOMAIN","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398236/blog/Content%20Images/feature-flags-tutorial/add-var-KUBE_INGRESS_BASE_DOMAIN.png","\nAddding variable KUBE_INGRESS_BASE_DOMAIN in group \"hn\"",[38,1840,1841,1854],{},[41,1842,1843,1844,1056,1846,1060,1848,1850,1851,1853],{},"Inside group “hn”, create a new project. Click on the ",[44,1845,198],{},[44,1847,1059],{},[44,1849,1063],{}," tile and then click on the ",[44,1852,1072],{}," button.",[41,1855,1856,1857,1077],{},"This will expand the window and show fields to enter the URL of the repository you would like to import. In the field ",[44,1858,1076],{},[219,1860,1861],{},[12,1862,1863,1087,1867,1871],{},[1083,1864,1865],{"href":1865,"rel":1866},"https://gitlab.com/tech-marketing/sandbox/prodmgr.git",[],[158,1868],{"alt":1869,"src":1870},"import-prodmgr-proj","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398262/blog/Content%20Images/feature-flags-tutorial/import-prodmgr-proj.png","\nImporting project \"prodmgr\" into group \"hn\"",[38,1873,1874,1883],{},[41,1875,1097,1876,1878,1879,1882],{},[44,1877,1100],{}," button at the bottom of the screen. You will see an ",[44,1880,1881],{},"Importing in progress"," message temporarily on your screen.",[41,1884,1885],{},"In project “prodmgr”, create a pipeline file and make sure to name it “.gitlab-ci.yml”. Paste the following code block into the empty file:",[250,1887,1889],{"className":381,"code":1888,"language":383,"meta":255,"style":255},"include:\n  template: Auto-DevOps.gitlab-ci.yml\n\nvariables:\n  K8S_SECRET_TF_VAR_dbusername: \"sasha\"\n  K8S_SECRET_TF_VAR_dbpassword: \"password\"\n  TEST_DISABLED: \"true\"\n  CODE_QUALITY_DISABLED: \"true\"\n  LICENSE_MANAGEMENT_DISABLED: \"true\"\n  BROWSER_PERFORMANCE_DISABLED: \"true\"\n  LOAD_PERFORMANCE_DISABLED: \"true\"\n  SAST_DISABLED: \"true\"\n  SECRET_DETECTION_DISABLED: \"true\"\n  DEPENDENCY_SCANNING_DISABLED: \"true\"\n  CONTAINER_SCANNING_DISABLED: \"true\"\n  DAST_DISABLED: \"true\"\n  REVIEW_DISABLED: \"true\"\n  CODE_INTELLIGENCE_DISABLED: \"true\"\n  CLUSTER_IMAGE_SCANNING_DISABLED: \"true\"\n  POSTGRES_ENABLED: \"false\"\n  STAGING_ENABLED: \"true\"\n  INCREMENTAL_ROLLOUT_MODE: \"manual\"\n",[83,1890,1891,1898,1908,1914,1921,1931,1941,1951,1960,1969,1978,1987,1996,2005,2014,2023,2032,2041,2050,2059,2069,2078],{"__ignoreMap":255},[259,1892,1893,1896],{"class":261,"line":262},[259,1894,1895],{"class":390},"include",[259,1897,394],{"class":296},[259,1899,1900,1903,1905],{"class":261,"line":280},[259,1901,1902],{"class":390},"  template",[259,1904,412],{"class":296},[259,1906,1907],{"class":269},"Auto-DevOps.gitlab-ci.yml\n",[259,1909,1910],{"class":261,"line":308},[259,1911,1913],{"emptyLinePlaceholder":1912},true,"\n",[259,1915,1916,1919],{"class":261,"line":316},[259,1917,1918],{"class":390},"variables",[259,1920,394],{"class":296},[259,1922,1923,1926,1928],{"class":261,"line":324},[259,1924,1925],{"class":390},"  K8S_SECRET_TF_VAR_dbusername",[259,1927,412],{"class":296},[259,1929,1930],{"class":269},"\"sasha\"\n",[259,1932,1933,1936,1938],{"class":261,"line":332},[259,1934,1935],{"class":390},"  K8S_SECRET_TF_VAR_dbpassword",[259,1937,412],{"class":296},[259,1939,1940],{"class":269},"\"password\"\n",[259,1942,1943,1946,1948],{"class":261,"line":626},[259,1944,1945],{"class":390},"  TEST_DISABLED",[259,1947,412],{"class":296},[259,1949,1950],{"class":269},"\"true\"\n",[259,1952,1953,1956,1958],{"class":261,"line":637},[259,1954,1955],{"class":390},"  CODE_QUALITY_DISABLED",[259,1957,412],{"class":296},[259,1959,1950],{"class":269},[259,1961,1962,1965,1967],{"class":261,"line":643},[259,1963,1964],{"class":390},"  LICENSE_MANAGEMENT_DISABLED",[259,1966,412],{"class":296},[259,1968,1950],{"class":269},[259,1970,1971,1974,1976],{"class":261,"line":765},[259,1972,1973],{"class":390},"  BROWSER_PERFORMANCE_DISABLED",[259,1975,412],{"class":296},[259,1977,1950],{"class":269},[259,1979,1980,1983,1985],{"class":261,"line":775},[259,1981,1982],{"class":390},"  LOAD_PERFORMANCE_DISABLED",[259,1984,412],{"class":296},[259,1986,1950],{"class":269},[259,1988,1989,1992,1994],{"class":261,"line":785},[259,1990,1991],{"class":390},"  SAST_DISABLED",[259,1993,412],{"class":296},[259,1995,1950],{"class":269},[259,1997,1998,2001,2003],{"class":261,"line":793},[259,1999,2000],{"class":390},"  SECRET_DETECTION_DISABLED",[259,2002,412],{"class":296},[259,2004,1950],{"class":269},[259,2006,2007,2010,2012],{"class":261,"line":804},[259,2008,2009],{"class":390},"  DEPENDENCY_SCANNING_DISABLED",[259,2011,412],{"class":296},[259,2013,1950],{"class":269},[259,2015,2016,2019,2021],{"class":261,"line":815},[259,2017,2018],{"class":390},"  CONTAINER_SCANNING_DISABLED",[259,2020,412],{"class":296},[259,2022,1950],{"class":269},[259,2024,2025,2028,2030],{"class":261,"line":820},[259,2026,2027],{"class":390},"  DAST_DISABLED",[259,2029,412],{"class":296},[259,2031,1950],{"class":269},[259,2033,2034,2037,2039],{"class":261,"line":830},[259,2035,2036],{"class":390},"  REVIEW_DISABLED",[259,2038,412],{"class":296},[259,2040,1950],{"class":269},[259,2042,2043,2046,2048],{"class":261,"line":840},[259,2044,2045],{"class":390},"  CODE_INTELLIGENCE_DISABLED",[259,2047,412],{"class":296},[259,2049,1950],{"class":269},[259,2051,2052,2055,2057],{"class":261,"line":847},[259,2053,2054],{"class":390},"  CLUSTER_IMAGE_SCANNING_DISABLED",[259,2056,412],{"class":296},[259,2058,1950],{"class":269},[259,2060,2061,2064,2066],{"class":261,"line":856},[259,2062,2063],{"class":390},"  POSTGRES_ENABLED",[259,2065,412],{"class":296},[259,2067,2068],{"class":269},"\"false\"\n",[259,2070,2071,2074,2076],{"class":261,"line":865},[259,2072,2073],{"class":390},"  STAGING_ENABLED",[259,2075,412],{"class":296},[259,2077,1950],{"class":269},[259,2079,2080,2083,2085],{"class":261,"line":872},[259,2081,2082],{"class":390},"  INCREMENTAL_ROLLOUT_MODE",[259,2084,412],{"class":296},[259,2086,2087],{"class":269},"\"manual\"\n",[12,2089,1097,2090,2092,2093,2096,2097,2101],{},[44,2091,421],{}," button ensuring that the ",[44,2094,2095],{},"Target branch"," is main.\n",[158,2098],{"alt":2099,"src":2100},"prodmgr-proj-pipeline","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398267/blog/Content%20Images/feature-flags-tutorial/prodmgr-proj-pipeline.png","\nCreating an Auto-DevOps-based pipeline for project \"prodmgr\"",[38,2103,2104],{},[41,2105,2106,2107,2109,2110,2114,2115,2118],{},"The previous step builds the application and deploys it to the staging environment. Once deployed to staging, head to ",[44,2108,1578],{}," and click on the most recently executed pipeline (should be the first one in the list). Click on the pipeline to display it and then deploy the application to production by clicking on “rollout 100%” job.\n",[158,2111],{"alt":2112,"src":2113},"rollout-to-prod","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398268/blog/Content%20Images/feature-flags-tutorial/rollout-to-prod.png","\nTo deploy the application to production, click on the ",[44,2116,2117],{},"rollout 100%"," Play button",[12,2120,2121],{},"At this point, you have a running application in the staging and production environments in your Kubernetes cluster. Let’s start creating a feature flag.",[16,2123,2125],{"id":2124},"creating-a-new-feature-flag","Creating a new feature flag",[38,2127,2128],{},[41,2129,2130,2131,2134],{},"In project “prodmgr”, select ",[44,2132,2133],{},"Deploy > Feature flags"," from your left vertical navigation menu.",[2136,2137,2139],"h3",{"id":2138},"creating-a-user-list","Creating a user list",[38,2141,2142,2149,2155,2170,2176],{},[41,2143,2144,2145,2148],{},"Click on the link ",[44,2146,2147],{},"View user lists"," on the top right hand side of your screen.",[41,2150,1097,2151,2154],{},[44,2152,2153],{},"New user list"," button on the top right hand side of your screen.",[41,2156,2157,2158,2161,2162,440,2165,2169],{},"In the ",[44,2159,2160],{},"Name"," field of the user list, enter “prods-in-alphabetical-order-userlist” and then click on the ",[44,2163,2164],{},"Create",[158,2166],{"alt":2167,"src":2168},"create-ff-userlist","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398251/blog/Content%20Images/feature-flags-tutorial/create-ff-userlist.png","{: .shadow.medium.center.}\nCreating user list named \"prods-in-alphabetical-order-userlist”",[41,2171,2172,2173,2154],{},"On the next screen, click on the ",[44,2174,2175],{},"Add Users",[41,2177,2157,2178,2181,2182,2185],{},[44,2179,2180],{},"User IDs"," text field, enter the following two email addresses and then click on the ",[44,2183,2184],{},"Add"," button:",[219,2187,2188],{},[12,2189,2190,2194,2195,2199,2203],{},[1083,2191,2193],{"href":2192},"mailto:michael@cfl.rr.com","michael@cfl.rr.com",",",[1083,2196,2198],{"href":2197},"mailto:mary@cfl.rr.com","mary@cfl.rr.com",[158,2200],{"alt":2201,"src":2202},"add-users-to-list","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398234/blog/Content%20Images/feature-flags-tutorial/add-users-to-list.png","\nAdding users to user list \"prods-in-alphabetical-order-userlist”",[38,2205,2206],{},[41,2207,2208,2209,2134],{},"Head back to the Feature flags window by selecting ",[44,2210,2133],{},[2136,2212,2214],{"id":2213},"creating-the-flag","Creating the flag",[38,2216,2217,2222],{},[41,2218,1097,2219,2154],{},[44,2220,2221],{},"New feature flag",[41,2223,2157,2224,2226],{},[44,2225,2221],{}," window, enter “prods-in-alphabetical-order-ff”.",[2136,2228,2230],{"id":2229},"specifying-the-strategy-for-the-production-environment","Specifying the strategy for the production environment",[12,2232,2157,2233,2236,2237,2239,2240,1625,2243,248],{},[44,2234,2235],{},"Strategies"," section of the ",[44,2238,2221],{}," window, there should already be sub-sections for ",[44,2241,2242],{},"Type",[44,2244,2245],{},"Environments",[38,2247,2248,2258,2267,2277],{},[41,2249,2250,2251,2253,2254,2257],{},"For ",[44,2252,2242],{},", select ",[44,2255,2256],{},"Percent rollout"," from the dropdown menu.",[41,2259,2250,2260,137,2263,2266],{},[44,2261,2262],{},"Percentage",[44,2264,2265],{},"50"," in the field.",[41,2268,2250,2269,2272,2273,2276],{},[44,2270,2271],{},"Based on",", ensure that ",[44,2274,2275],{},"Available ID"," is selected from the popdown menu.",[41,2278,2250,2279,2281,2282,2284,2285,2288],{},[44,2280,2245],{},", click on the ",[44,2283,362],{}," sign and select the ",[44,2286,2287],{},"production"," environment.",[2136,2290,2292],{"id":2291},"specifying-the-strategy-for-the-staging-environment","Specifying the strategy for the staging environment",[38,2294,2295,2304,2311,2319,2328],{},[41,2296,1097,2297,2300,2301,2303],{},[44,2298,2299],{},"Add strategy"," button on the right hand side of the ",[44,2302,2235],{}," section. A new sub-section for another strategy will appear.",[41,2305,2250,2306,2253,2308,2257],{},[44,2307,2242],{},[44,2309,2310],{},"User List",[41,2312,2250,2313,2315,2316,248],{},[44,2314,2310],{},", select the user list ",[44,2317,2318],{},"prods-in-alphabetical-order-userlist",[41,2320,2250,2321,2281,2323,2284,2325,2288],{},[44,2322,2245],{},[44,2324,362],{},[44,2326,2327],{},"staging",[41,2329,2330,2331,2334,2335,2339],{},"Click on ",[44,2332,2333],{},"Create feature flag"," button at the bottom of your screen to complete the creation of the feature flag.\n",[158,2336],{"alt":2337,"src":2338},"ff-and-strats-def","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398257/blog/Content%20Images/feature-flags-tutorial/ff-and-strats-def.png","\nDefining the feature flag with its strategies for strating and production environments",[16,2341,2343],{"id":2342},"sharing-feature-flag-configuration-information-with-developers","Sharing feature flag configuration information with developers",[12,2345,2346],{},"In order for developers to instrument their code for this feature flag, you need to share with them the following information:",[38,2348,2349,2358,2374],{},[41,2350,2351,2352,1060,2355,2154],{},"On the ",[44,2353,2354],{},"Feature flags",[44,2356,2357],{},"Configure",[41,2359,2360,2361,2364,2365,2368,2369,2373],{},"Copy and save the values of ",[44,2362,2363],{},"API URL"," (URL where the client application connects to get a list of feature flags) and ",[44,2366,2367],{},"Instance ID"," (unique token that authorizes the retrieval of the feature flags). These are the two values that you will need for feature flag instrumentation.\n",[158,2370],{"alt":2371,"src":2372},"ff-api-url-and-instance-id","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398257/blog/Content%20Images/feature-flags-tutorial/ff-api-url-and-instance-id.png","\nCopy and save the values for the feature flag API URL and Instance ID",[41,2375,2376,2377,1108,2380,2383,2384,2386],{},"Head over to ",[44,2378,2379],{},"Settings > CI/CD",[44,2381,2382],{},"Variables"," section and click on its ",[44,2385,1115],{}," button. Add the following two variables to your project:",[1684,2388,2389,2411],{},[1687,2390,2391],{},[1690,2392,2393,2396,2399,2402,2405,2408],{},[1693,2394,2395],{},"Variable Key",[1693,2397,2398],{},"Variable Value",[1693,2400,2401],{},"Variable Type",[1693,2403,2404],{},"Environment Scope",[1693,2406,2407],{},"Protect variable",[1693,2409,2410],{},"Mask variable",[1700,2412,2413,2435],{},[1690,2414,2415,2418,2424,2427,2430,2433],{},[1705,2416,2417],{},"K8S_SECRET_UNLEASH_URL",[1705,2419,2420,2421,2423],{},"\u003Csaved ",[44,2422,2363],{}," value>",[1705,2425,2426],{},"Variable",[1705,2428,2429],{},"All (default)",[1705,2431,2432],{},"unchecked",[1705,2434,2432],{},[1690,2436,2437,2440,2444,2446,2448,2450],{},[1705,2438,2439],{},"K8S_SECRET_UNLEASH_INSTANCE_ID",[1705,2441,2420,2442,2423],{},[44,2443,2367],{},[1705,2445,2426],{},[1705,2447,2429],{},[1705,2449,2432],{},[1705,2451,2432],{},[12,2453,2454,2458],{},[158,2455],{"alt":2456,"src":2457},"add-var-K8S_SECRET_UNLEASH_URL","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398235/blog/Content%20Images/feature-flags-tutorial/add-var-K8S_SECRET_UNLEASH_URL.png","\nAdding variable K8S_SECRET_UNLEASH_URL to project \"prodmgr\"",[12,2460,2461,2465],{},[158,2462],{"alt":2463,"src":2464},"add-var-K8S_SECRET_UNLEASH_INSTANCE_ID","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398235/blog/Content%20Images/feature-flags-tutorial/add-var-K8S_SECRET_UNLEASH_INSTANCE_ID.png","\nAdding variable K8S_SECRET_UNLEASH_INSTANCE_ID to project \"prodmgr\"",[12,2467,2468],{},"These two variables contain values that will be passed to your application (via the K8S_SECRET_ keyword) so that it can make use of the feature flags defined and managed by GitLab.\nIn order for your application to be able to use feature flags, you need to instrument your application with our Feature Flags framework. Let's see how you do this in the sample Java application.",[16,2470,2472],{"id":2471},"instrumenting-the-code","Instrumenting the code",[12,2474,2475,2476,2481,2482,248],{},"In this example, we are using the Java client for Unleash but if you’re using a different programming language then you need to use the client library for your language. To get all the supported languages, refer to the ",[1083,2477,2480],{"href":2478,"rel":2479},"https://docs.getunleash.io/reference/sdks",[],"Unleash documentation"," or ",[1083,2483,2486],{"href":2484,"rel":2485},"https://github.com/Unleash/unleash#unleash-sdks",[],"Unleash open source project",[2136,2488,2490],{"id":2489},"instrumenting-java-class-files","Instrumenting Java class files",[38,2492,2493,2499,2502],{},[41,2494,2495,2496,248],{},"In project “prodmgr”, navigate to the directory ",[83,2497,2498],{},"src/main/java/csaa/jspring/ProductManager",[41,2500,2501],{},"Click on the file name “AppController.java” to view its contents and then click on the Edit button to enter edit mode.",[41,2503,2504],{},"You will see a few code blocks that have been commented out and are preceded by the line:",[219,2506,2507],{},[12,2508,2509,2510,2514],{},"// Uncomment block below to instrument Feature Flag\nUncomment all the code blocks under each of the lines indicated above.\n",[158,2511],{"alt":2512,"src":2513},"java-file-with-uncommented-lines","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398262/blog/Content%20Images/feature-flags-tutorial/java-file-with-uncommented-lines.png","\nPartial view of AppController.java file with uncommented code blocks",[38,2516,2517,2520],{},[41,2518,2519],{},"Commit the changes to the main branch.",[41,2521,2522,2523,2525,2526,2528],{},"The commit starts a pipeline that deploys the application to the staging environment. Head to ",[44,2524,1578],{}," and click on the most recently executed pipeline (should be the first one in the list). Click on the pipeline to display it and wait until the ",[44,2527,2327],{}," job finishes. Then deploy the application to production by clicking on “rollout 100%” job.\nNow that the application is running in the staging and production environments, let’s see the feature flag in action.",[16,2530,2532],{"id":2531},"feature-flag-in-action","Feature flag in action",[12,2534,2535],{},"Now let's check how the feature flag is working.",[2136,2537,2539],{"id":2538},"checking-the-feature-flag-in-the-staging-environment","Checking the feature flag in the staging environment",[38,2541,2542,2549,2552,2555,2566,2572],{},[41,2543,2544,2545,2548],{},"In project “prodmgr”, click on ",[44,2546,2547],{},"Operate > Environments"," to see the list of all environments. Then click on the \"Open live environment\" button for the staging environment.",[41,2550,2551],{},"A new browser tab will appear and will display a login screen. If your browser complains about the connection being insecure, accept the risk and open the browser tab.",[41,2553,2554],{},"Remember that the feature flag strategy for staging is based on the user list containing michael and mary in it. Let’s try logging in as each of them.",[41,2556,2557,2558,2560,2561,2565],{},"Enter credentials ",[1083,2559,2193],{"href":2192}," with password p33sw0rd. Verify that Michael gets a product list sorted in alphabetical order. Log out and close the browser tab to ensure that his session closes.\n",[158,2562],{"alt":2563,"src":2564},"michael-gets-ff","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398262/blog/Content%20Images/feature-flags-tutorial/michael-gets-ff.png","\nMichael gets the feature flag that orders the list of product names in alphabetical order",[41,2567,2568,2569,2571],{},"From the Environments window, click on the \"Open live environment\" button for the staging environment. Enter credentials \"",[1083,2570,2198],{"href":2197},"\" with password \"p33sw0rd\". Verify that mary gets a product list sorted in alphabetical order. Log out and close the browser tab to ensure that her session closes.",[41,2573,2574,2575,2579,2580,2583,2584,2588],{},"From the Environments window, click on the \"Open live environment\" button for the staging environment. This time, enter credentials for \"",[1083,2576,2578],{"href":2577},"mailto:thomas@gmail.com","thomas@gmail.com","\" with password \"p33sw0rd\". Verify that thomas does ",[44,2581,2582],{},"not"," get a product list sorted in alphabetical order. Log out and close the browser tab to ensure that his session closes.\n",[158,2585],{"alt":2586,"src":2587},"thomas-does-not-get-the-ff","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398268/blog/Content%20Images/feature-flags-tutorial/thomas-does-not-get-the-ff.png","\nThomas does not get the feature flag because the product names are not ordered in alphabetical order",[12,2590,2591],{},"The steps above demonstrate that the feature flag strategy for staging successfully worked.",[2136,2593,2595],{"id":2594},"checking-the-feature-flag-in-the-production-environment","Checking the feature flag in the production environment",[38,2597,2598,2603,2605],{},[41,2599,2330,2600,2602],{},[44,2601,2547],{}," to see the list of all environments. Then click on the \"Open live environment\" button for the production environment.",[41,2604,2551],{},[41,2606,2607,2608,2610,2611,2613,2614,2617],{},"Remember that the strategy in production is that the feature will be served to 50% of the users. Try logging into the web application as each of the following users keeping track of who gets the list of products sorted in alphabetical order by name and who does not:\n",[44,2609,105],{}," Remember to click on the \"Open live environment\" button for the ",[44,2612,2287],{}," environment. Once you log out from each user, remember to ",[44,2615,2616],{},"close"," the browser tab to ensure that the session closes.",[1684,2619,2620,2630],{},[1687,2621,2622],{},[1690,2623,2624,2627],{},[1693,2625,2626],{},"Username",[1693,2628,2629],{},"Password",[1700,2631,2632,2643,2653,2661,2671,2679,2687,2694],{},[1690,2633,2634,2640],{},[1705,2635,2636],{},[1083,2637,2639],{"href":2638},"mailto:peter@gmail.com","peter@gmail.com",[1705,2641,2642],{},"pa33w0rd",[1690,2644,2645,2651],{},[1705,2646,2647],{},[1083,2648,2650],{"href":2649},"mailto:magic@cfl.rr.com","magic@cfl.rr.com",[1705,2652,2642],{},[1690,2654,2655,2659],{},[1705,2656,2657],{},[1083,2658,2193],{"href":2192},[1705,2660,2642],{},[1690,2662,2663,2669],{},[1705,2664,2665],{},[1083,2666,2668],{"href":2667},"mailto:henry@gmail.com","henry@gmail.com",[1705,2670,2642],{},[1690,2672,2673,2677],{},[1705,2674,2675],{},[1083,2676,2198],{"href":2197},[1705,2678,2642],{},[1690,2680,2681,2685],{},[1705,2682,2683],{},[1083,2684,2578],{"href":2577},[1705,2686,2642],{},[1690,2688,2689,2692],{},[1705,2690,2691],{},"Your final count should consist of three users being served the feature and three not, matching the strategy that was set for the production environment.",[1705,2693],{},[1690,2695,2696,2699],{},[1705,2697,2698],{},"As changes are made to feature flags, you can track them from the audit events window.",[1705,2700],{},[16,2702,2704],{"id":2703},"auditing-feature-flag-changes","Auditing feature flag changes",[12,2706,2707,2709],{},[44,2708,105],{}," A Premium GitLab subscription is needed for viewing Audit events.",[38,2711,2712,2718],{},[41,2713,2130,2714,2717],{},[44,2715,2716],{},"Secure > Audit events"," from the left vertical navigation menu.",[41,2719,2720,2721,2725],{},"This displays all the events that have occurred in GitLab for the last thirty days. You will see that events related to updates to feature flags are listed.\n",[158,2722],{"alt":2723,"src":2724},"audit-events-list","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398251/blog/Content%20Images/feature-flags-tutorial/audit-events-list.png","\nAudit events is an auditable list of actions that have been taken againt resources",[12,2727,2728,2729,2733,2734],{},"This auditing allows you to identify when and who made changes to feature flags. It can also help preempt out-of-compliance scenarios and streamline audits to avoid penalties, providing an opportunity to optimize cost, and lower risk of unscheduled production outages.\nNow you know how to create and use feature flags to lower your deployment risk.\nPhoto by ",[1083,2730,2732],{"href":2731},"https://unsplash.com/@liamdesic?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText","Liam Desic"," on ",[1083,2735,2737],{"href":2736},"https://unsplash.com/photos/acKSt3THWKA?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText","Unsplash",[2739,2740,2741],"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 pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}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}",{"title":255,"searchDepth":280,"depth":280,"links":2743},[2744,2745,2746,2747,2748,2749,2750,2751,2752,2758,2759,2762,2766],{"id":18,"depth":280,"text":19},{"id":25,"depth":280,"text":26},{"id":32,"depth":280,"text":33},{"id":68,"depth":280,"text":69},{"id":98,"depth":280,"text":99},{"id":109,"depth":280,"text":110},{"id":1047,"depth":280,"text":1048},{"id":1666,"depth":280,"text":1667},{"id":2124,"depth":280,"text":2125,"children":2753},[2754,2755,2756,2757],{"id":2138,"depth":308,"text":2139},{"id":2213,"depth":308,"text":2214},{"id":2229,"depth":308,"text":2230},{"id":2291,"depth":308,"text":2292},{"id":2342,"depth":280,"text":2343},{"id":2471,"depth":280,"text":2472,"children":2760},[2761],{"id":2489,"depth":308,"text":2490},{"id":2531,"depth":280,"text":2532,"children":2763},[2764,2765],{"id":2538,"depth":308,"text":2539},{"id":2594,"depth":308,"text":2595},{"id":2703,"depth":280,"text":2704},"devsecops","2023-09-20","Follow this comprehensive tutorial to learn how to create and use feature flags in your software development environment.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749667743/Blog/Hero%20Images/flags.png",{},"/en-us/blog/eliminate-risk-with-feature-flags-tutorial",{"title":5,"description":2769,"ogTitle":5,"ogDescription":2769,"noIndex":2772,"ogImage":2773,"ogUrl":2777,"ogSiteName":2778,"ogType":2779,"canonicalUrls":2777},"https://about.gitlab.com/blog/eliminate-risk-with-feature-flags-tutorial","https://about.gitlab.com","article","eliminate-risk-with-feature-flags-tutorial","en-us/blog/eliminate-risk-with-feature-flags-tutorial",[2783,2784,2785],"CI/CD","features","DevSecOps","BlogPost","MdvktP-dadhHN8xn5YN6ZJcsEx9AuovxkifCH9ubnxY",{"logo":2789,"freeTrial":2794,"sales":2799,"login":2804,"items":2809,"search":3135,"minimal":3165,"duo":3184,"switchNav":3193,"pricingDeployment":3204},{"config":2790},{"href":2791,"dataGaName":2792,"dataGaLocation":2793},"/","gitlab logo","header",{"text":2795,"config":2796},"Get free trial",{"href":2797,"dataGaName":2798,"dataGaLocation":2793},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":2800,"config":2801},"Request a demo",{"href":2802,"dataGaName":2803,"dataGaLocation":2793},"/sales/?contact-topic=request-demo","sales",{"text":2805,"config":2806},"Sign in",{"href":2807,"dataGaName":2808,"dataGaLocation":2793},"https://gitlab.com/users/sign_in/","sign in",[2810,2839,2938,2943,3057,3113],{"text":2811,"config":2812,"menu":2814},"Platform",{"dataNavLevelOne":2813},"platform",{"type":2815,"columns":2816},"cards",[2817,2823,2831],{"title":2811,"description":2818,"link":2819},"The intelligent orchestration platform for DevSecOps",{"text":2820,"config":2821},"Explore our Platform",{"href":2822,"dataGaName":2813,"dataGaLocation":2793},"/platform/",{"title":2824,"description":2825,"link":2826},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":2827,"config":2828},"Meet GitLab Duo",{"href":2829,"dataGaName":2830,"dataGaLocation":2793},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":2832,"description":2833,"link":2834},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":2835,"config":2836},"Learn more",{"href":2837,"dataGaName":2838,"dataGaLocation":2793},"/why-gitlab/","why gitlab",{"text":2840,"left":1912,"config":2841,"menu":2843},"Product",{"dataNavLevelOne":2842},"solutions",{"type":2844,"link":2845,"columns":2849,"feature":2917},"lists",{"text":2846,"config":2847},"View all Solutions",{"href":2848,"dataGaName":2842,"dataGaLocation":2793},"/solutions/",[2850,2873,2896],{"title":2851,"description":2852,"link":2853,"items":2858},"Automation","CI/CD and automation to accelerate deployment",{"config":2854},{"icon":2855,"href":2856,"dataGaName":2857,"dataGaLocation":2793},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[2859,2862,2865,2869],{"text":2783,"config":2860},{"href":2861,"dataGaLocation":2793,"dataGaName":2783},"/solutions/continuous-integration/",{"text":2824,"config":2863},{"href":2829,"dataGaLocation":2793,"dataGaName":2864},"gitlab duo agent platform - product menu",{"text":2866,"config":2867},"Source Code Management",{"href":2868,"dataGaLocation":2793,"dataGaName":2866},"/solutions/source-code-management/",{"text":2870,"config":2871},"Automated Software Delivery",{"href":2856,"dataGaLocation":2793,"dataGaName":2872},"Automated software delivery",{"title":2874,"description":2875,"link":2876,"items":2881},"Security","Deliver code faster without compromising security",{"config":2877},{"href":2878,"dataGaName":2879,"dataGaLocation":2793,"icon":2880},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[2882,2886,2891],{"text":2883,"config":2884},"Application Security Testing",{"href":2878,"dataGaName":2885,"dataGaLocation":2793},"Application security testing",{"text":2887,"config":2888},"Software Supply Chain Security",{"href":2889,"dataGaLocation":2793,"dataGaName":2890},"/solutions/supply-chain/","Software supply chain security",{"text":2892,"config":2893},"Software Compliance",{"href":2894,"dataGaName":2895,"dataGaLocation":2793},"/solutions/software-compliance/","software compliance",{"title":2897,"link":2898,"items":2903},"Measurement",{"config":2899},{"icon":2900,"href":2901,"dataGaName":2902,"dataGaLocation":2793},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[2904,2908,2912],{"text":2905,"config":2906},"Visibility & Measurement",{"href":2901,"dataGaLocation":2793,"dataGaName":2907},"Visibility and Measurement",{"text":2909,"config":2910},"Value Stream Management",{"href":2911,"dataGaLocation":2793,"dataGaName":2909},"/solutions/value-stream-management/",{"text":2913,"config":2914},"Analytics & Insights",{"href":2915,"dataGaLocation":2793,"dataGaName":2916},"/solutions/analytics-and-insights/","Analytics and insights",{"title":2918,"type":2844,"items":2919},"GitLab for",[2920,2926,2932],{"text":2921,"config":2922},"Enterprise",{"icon":2923,"href":2924,"dataGaLocation":2793,"dataGaName":2925},"Building","/enterprise/","enterprise",{"text":2927,"config":2928},"Small Business",{"icon":2929,"href":2930,"dataGaLocation":2793,"dataGaName":2931},"Work","/small-business/","small business",{"text":2933,"config":2934},"Public Sector",{"icon":2935,"href":2936,"dataGaLocation":2793,"dataGaName":2937},"Organization","/solutions/public-sector/","public sector",{"text":2939,"config":2940},"Pricing",{"href":2941,"dataGaName":2942,"dataGaLocation":2793,"dataNavLevelOne":2942},"/pricing/","pricing",{"text":2944,"config":2945,"menu":2947},"Resources",{"dataNavLevelOne":2946},"resources",{"type":2844,"link":2948,"columns":2952,"feature":3046},{"text":2949,"config":2950},"View all resources",{"href":2951,"dataGaName":2946,"dataGaLocation":2793},"/resources/",[2953,2986,3013],{"title":2954,"items":2955},"Getting started",[2956,2961,2966,2971,2976,2981],{"text":2957,"config":2958},"Install",{"href":2959,"dataGaName":2960,"dataGaLocation":2793},"/install/","install",{"text":2962,"config":2963},"Quick start guides",{"href":2964,"dataGaName":2965,"dataGaLocation":2793},"/get-started/","quick setup checklists",{"text":2967,"config":2968},"Learn",{"href":2969,"dataGaLocation":2793,"dataGaName":2970},"https://university.gitlab.com/","learn",{"text":2972,"config":2973},"Product documentation",{"href":2974,"dataGaName":2975,"dataGaLocation":2793},"https://docs.gitlab.com/","product documentation",{"text":2977,"config":2978},"Best practice videos",{"href":2979,"dataGaName":2980,"dataGaLocation":2793},"/getting-started-videos/","best practice videos",{"text":2982,"config":2983},"Integrations",{"href":2984,"dataGaName":2985,"dataGaLocation":2793},"/integrations/","integrations",{"title":2987,"items":2988},"Discover",[2989,2994,2999,3004,3008],{"text":2990,"config":2991},"Customer success stories",{"href":2992,"dataGaName":2993,"dataGaLocation":2793},"/customers/","customer success stories",{"text":2995,"config":2996},"Blog",{"href":2997,"dataGaName":2998,"dataGaLocation":2793},"/blog/","blog",{"text":3000,"config":3001},"Demo Hub",{"href":3002,"dataGaName":3003,"dataGaLocation":2793},"/demo-hub/","demo hub",{"text":3005,"config":3006},"The Source",{"href":3007,"dataGaName":2998,"dataGaLocation":2793},"/the-source/",{"text":3009,"config":3010},"Remote",{"href":3011,"dataGaName":3012,"dataGaLocation":2793},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":3014,"items":3015},"Connect",[3016,3021,3026,3031,3036,3041],{"text":3017,"config":3018},"GitLab Services",{"href":3019,"dataGaName":3020,"dataGaLocation":2793},"/services/","services",{"text":3022,"config":3023},"Contribute",{"href":3024,"dataGaName":3025,"dataGaLocation":2793},"https://contributors.gitlab.com","contribute",{"text":3027,"config":3028},"Community",{"href":3029,"dataGaName":3030,"dataGaLocation":2793},"/community/","community",{"text":3032,"config":3033},"Forum",{"href":3034,"dataGaName":3035,"dataGaLocation":2793},"https://forum.gitlab.com/","forum",{"text":3037,"config":3038},"Events",{"href":3039,"dataGaName":3040,"dataGaLocation":2793},"/events/","events",{"text":3042,"config":3043},"Partners",{"href":3044,"dataGaName":3045,"dataGaLocation":2793},"/partners/","partners",{"config":3047,"title":3050,"text":3051,"link":3052},{"background":3048,"textColor":3049},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":3053,"config":3054},"Read the latest",{"href":3055,"dataGaName":3056,"dataGaLocation":2793},"/whats-new/","whats new",{"text":3058,"config":3059,"menu":3061},"Company",{"dataNavLevelOne":3060},"company",{"type":2844,"columns":3062},[3063],{"items":3064},[3065,3070,3076,3078,3083,3088,3093,3098,3103,3108],{"text":3066,"config":3067},"About",{"href":3068,"dataGaName":3069,"dataGaLocation":2793},"/company/","about",{"text":3071,"config":3072,"footerGa":3075},"Jobs",{"href":3073,"dataGaName":3074,"dataGaLocation":2793},"/jobs/","jobs",{"dataGaName":3074},{"text":3037,"config":3077},{"href":3039,"dataGaName":3040,"dataGaLocation":2793},{"text":3079,"config":3080},"Leadership",{"href":3081,"dataGaName":3082,"dataGaLocation":2793},"/company/team/e-group/","leadership",{"text":3084,"config":3085},"Handbook",{"href":3086,"dataGaName":3087,"dataGaLocation":2793},"https://handbook.gitlab.com/","handbook",{"text":3089,"config":3090},"Investor relations",{"href":3091,"dataGaName":3092,"dataGaLocation":2793},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":3094,"config":3095},"Trust Center",{"href":3096,"dataGaName":3097,"dataGaLocation":2793},"/security/","trust center",{"text":3099,"config":3100},"AI Transparency Center",{"href":3101,"dataGaName":3102,"dataGaLocation":2793},"/ai-transparency-center/","ai transparency center",{"text":3104,"config":3105},"Newsletter",{"href":3106,"dataGaName":3107,"dataGaLocation":2793},"/company/contact/#contact-forms","newsletter",{"text":3109,"config":3110},"Press",{"href":3111,"dataGaName":3112,"dataGaLocation":2793},"/press/","press",{"text":3114,"config":3115,"menu":3116},"Contact us",{"dataNavLevelOne":3060},{"type":2844,"columns":3117},[3118],{"items":3119},[3120,3125,3130],{"text":3121,"config":3122},"Talk to sales",{"href":3123,"dataGaName":3124,"dataGaLocation":2793},"/sales/","talk to sales",{"text":3126,"config":3127},"Support portal",{"href":3128,"dataGaName":3129,"dataGaLocation":2793},"https://support.gitlab.com/hc/en-us","support portal",{"text":3131,"config":3132},"Customer portal",{"href":3133,"dataGaName":3134,"dataGaLocation":2793},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":462,"login":3136,"suggestions":3143},{"text":3137,"link":3138},"To search repositories and projects, login to",{"text":3139,"config":3140},"gitlab.com",{"href":2807,"dataGaName":3141,"dataGaLocation":3142},"search login","search",{"text":3144,"default":3145},"Suggestions",[3146,3148,3152,3154,3158,3162],{"text":2824,"config":3147},{"href":2829,"dataGaName":2824,"dataGaLocation":3142},{"text":3149,"config":3150},"Code Suggestions (AI)",{"href":3151,"dataGaName":3149,"dataGaLocation":3142},"/solutions/code-suggestions/",{"text":2783,"config":3153},{"href":2861,"dataGaName":2783,"dataGaLocation":3142},{"text":3155,"config":3156},"GitLab on AWS",{"href":3157,"dataGaName":3155,"dataGaLocation":3142},"/partners/technology-partners/aws/",{"text":3159,"config":3160},"GitLab on Google Cloud",{"href":3161,"dataGaName":3159,"dataGaLocation":3142},"/partners/technology-partners/google-cloud-platform/",{"text":3163,"config":3164},"Why GitLab?",{"href":2837,"dataGaName":3163,"dataGaLocation":3142},{"freeTrial":3166,"mobileIcon":3171,"desktopIcon":3176,"secondaryButton":3179},{"text":3167,"config":3168},"Start free trial",{"href":3169,"dataGaName":2798,"dataGaLocation":3170},"https://gitlab.com/-/trials/new/","nav",{"altText":3172,"config":3173},"Gitlab Icon",{"src":3174,"dataGaName":3175,"dataGaLocation":3170},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":3172,"config":3177},{"src":3178,"dataGaName":3175,"dataGaLocation":3170},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":3180,"config":3181},"Get Started",{"href":3182,"dataGaName":3183,"dataGaLocation":3170},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":3185,"mobileIcon":3189,"desktopIcon":3191},{"text":3186,"config":3187},"Learn more about GitLab Duo",{"href":2829,"dataGaName":3188,"dataGaLocation":3170},"gitlab duo",{"altText":3172,"config":3190},{"src":3174,"dataGaName":3175,"dataGaLocation":3170},{"altText":3172,"config":3192},{"src":3178,"dataGaName":3175,"dataGaLocation":3170},{"button":3194,"mobileIcon":3199,"desktopIcon":3201},{"text":3195,"config":3196},"/switch",{"href":3197,"dataGaName":3198,"dataGaLocation":3170},"#contact","switch",{"altText":3172,"config":3200},{"src":3174,"dataGaName":3175,"dataGaLocation":3170},{"altText":3172,"config":3202},{"src":3203,"dataGaName":3175,"dataGaLocation":3170},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":3205,"mobileIcon":3210,"desktopIcon":3212},{"text":3206,"config":3207},"Back to pricing",{"href":2941,"dataGaName":3208,"dataGaLocation":3170,"icon":3209},"back to pricing","GoBack",{"altText":3172,"config":3211},{"src":3174,"dataGaName":3175,"dataGaLocation":3170},{"altText":3172,"config":3213},{"src":3178,"dataGaName":3175,"dataGaLocation":3170},{"title":3215,"titleMobile":3216,"button":3217,"config":3222},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":2835,"config":3218},{"href":3219,"dataGaName":3220,"dataGaLocation":3221},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":3223,"disabled":2772},"release",{"data":3225},{"text":3226,"source":3227,"edit":3233,"contribute":3238,"config":3243,"items":3248,"minimal":3456},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":3228,"config":3229},"View page source",{"href":3230,"dataGaName":3231,"dataGaLocation":3232},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":3234,"config":3235},"Edit this page",{"href":3236,"dataGaName":3237,"dataGaLocation":3232},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":3239,"config":3240},"Please contribute",{"href":3241,"dataGaName":3242,"dataGaLocation":3232},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":3244,"facebook":3245,"youtube":3246,"linkedin":3247},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[3249,3296,3348,3392,3424],{"title":2939,"links":3250,"subMenu":3265},[3251,3255,3260],{"text":3252,"config":3253},"View plans",{"href":2941,"dataGaName":3254,"dataGaLocation":3232},"view plans",{"text":3256,"config":3257},"Why Premium?",{"href":3258,"dataGaName":3259,"dataGaLocation":3232},"/pricing/premium/","why premium",{"text":3261,"config":3262},"Why Ultimate?",{"href":3263,"dataGaName":3264,"dataGaLocation":3232},"/pricing/ultimate/","why ultimate",[3266],{"title":3267,"links":3268},"Contact Us",[3269,3272,3274,3276,3281,3286,3291],{"text":3270,"config":3271},"Contact sales",{"href":3123,"dataGaName":2803,"dataGaLocation":3232},{"text":3126,"config":3273},{"href":3128,"dataGaName":3129,"dataGaLocation":3232},{"text":3131,"config":3275},{"href":3133,"dataGaName":3134,"dataGaLocation":3232},{"text":3277,"config":3278},"Status",{"href":3279,"dataGaName":3280,"dataGaLocation":3232},"https://status.gitlab.com/","status",{"text":3282,"config":3283},"Terms of use",{"href":3284,"dataGaName":3285,"dataGaLocation":3232},"/terms/","terms of use",{"text":3287,"config":3288},"Privacy statement",{"href":3289,"dataGaName":3290,"dataGaLocation":3232},"/privacy/","privacy statement",{"text":3292,"config":3293},"Cookie preferences",{"dataGaName":3294,"dataGaLocation":3232,"id":3295,"isOneTrustButton":1912},"cookie preferences","ot-sdk-btn",{"title":2840,"links":3297,"subMenu":3306},[3298,3302],{"text":3299,"config":3300},"DevSecOps platform",{"href":2822,"dataGaName":3301,"dataGaLocation":3232},"devsecops platform",{"text":3303,"config":3304},"AI-Assisted Development",{"href":2829,"dataGaName":3305,"dataGaLocation":3232},"ai-assisted development",[3307],{"title":3308,"links":3309},"Topics",[3310,3315,3320,3325,3330,3333,3338,3343],{"text":3311,"config":3312},"CICD",{"href":3313,"dataGaName":3314,"dataGaLocation":3232},"/topics/ci-cd/","cicd",{"text":3316,"config":3317},"GitOps",{"href":3318,"dataGaName":3319,"dataGaLocation":3232},"/topics/gitops/","gitops",{"text":3321,"config":3322},"DevOps",{"href":3323,"dataGaName":3324,"dataGaLocation":3232},"/topics/devops/","devops",{"text":3326,"config":3327},"Version Control",{"href":3328,"dataGaName":3329,"dataGaLocation":3232},"/topics/version-control/","version control",{"text":2785,"config":3331},{"href":3332,"dataGaName":2767,"dataGaLocation":3232},"/topics/devsecops/",{"text":3334,"config":3335},"Cloud Native",{"href":3336,"dataGaName":3337,"dataGaLocation":3232},"/topics/cloud-native/","cloud native",{"text":3339,"config":3340},"AI for Coding",{"href":3341,"dataGaName":3342,"dataGaLocation":3232},"/topics/devops/ai-for-coding/","ai for coding",{"text":3344,"config":3345},"Agentic AI",{"href":3346,"dataGaName":3347,"dataGaLocation":3232},"/topics/agentic-ai/","agentic ai",{"title":3349,"links":3350},"Solutions",[3351,3353,3355,3360,3364,3367,3371,3374,3376,3379,3382,3387],{"text":2883,"config":3352},{"href":2878,"dataGaName":2883,"dataGaLocation":3232},{"text":2872,"config":3354},{"href":2856,"dataGaName":2857,"dataGaLocation":3232},{"text":3356,"config":3357},"Agile development",{"href":3358,"dataGaName":3359,"dataGaLocation":3232},"/solutions/agile-delivery/","agile delivery",{"text":3361,"config":3362},"SCM",{"href":2868,"dataGaName":3363,"dataGaLocation":3232},"source code management",{"text":3311,"config":3365},{"href":2861,"dataGaName":3366,"dataGaLocation":3232},"continuous integration & delivery",{"text":3368,"config":3369},"Value stream management",{"href":2911,"dataGaName":3370,"dataGaLocation":3232},"value stream management",{"text":3316,"config":3372},{"href":3373,"dataGaName":3319,"dataGaLocation":3232},"/solutions/gitops/",{"text":2921,"config":3375},{"href":2924,"dataGaName":2925,"dataGaLocation":3232},{"text":3377,"config":3378},"Small business",{"href":2930,"dataGaName":2931,"dataGaLocation":3232},{"text":3380,"config":3381},"Public sector",{"href":2936,"dataGaName":2937,"dataGaLocation":3232},{"text":3383,"config":3384},"Education",{"href":3385,"dataGaName":3386,"dataGaLocation":3232},"/solutions/education/","education",{"text":3388,"config":3389},"Financial services",{"href":3390,"dataGaName":3391,"dataGaLocation":3232},"/solutions/finance/","financial services",{"title":2944,"links":3393},[3394,3396,3398,3400,3403,3405,3408,3410,3412,3414,3416,3418,3420,3422],{"text":2957,"config":3395},{"href":2959,"dataGaName":2960,"dataGaLocation":3232},{"text":2962,"config":3397},{"href":2964,"dataGaName":2965,"dataGaLocation":3232},{"text":2967,"config":3399},{"href":2969,"dataGaName":2970,"dataGaLocation":3232},{"text":2972,"config":3401},{"href":2974,"dataGaName":3402,"dataGaLocation":3232},"docs",{"text":2995,"config":3404},{"href":2997,"dataGaName":2998,"dataGaLocation":3232},{"text":3406,"config":3407},"What's new",{"href":3055,"dataGaName":3056,"dataGaLocation":3232},{"text":2990,"config":3409},{"href":2992,"dataGaName":2993,"dataGaLocation":3232},{"text":3009,"config":3411},{"href":3011,"dataGaName":3012,"dataGaLocation":3232},{"text":3017,"config":3413},{"href":3019,"dataGaName":3020,"dataGaLocation":3232},{"text":3022,"config":3415},{"href":3024,"dataGaName":3025,"dataGaLocation":3232},{"text":3027,"config":3417},{"href":3029,"dataGaName":3030,"dataGaLocation":3232},{"text":3032,"config":3419},{"href":3034,"dataGaName":3035,"dataGaLocation":3232},{"text":3037,"config":3421},{"href":3039,"dataGaName":3040,"dataGaLocation":3232},{"text":3042,"config":3423},{"href":3044,"dataGaName":3045,"dataGaLocation":3232},{"title":3058,"links":3425},[3426,3428,3430,3432,3434,3436,3440,3445,3447,3449,3451],{"text":3066,"config":3427},{"href":3068,"dataGaName":3060,"dataGaLocation":3232},{"text":3071,"config":3429},{"href":3073,"dataGaName":3074,"dataGaLocation":3232},{"text":3079,"config":3431},{"href":3081,"dataGaName":3082,"dataGaLocation":3232},{"text":3084,"config":3433},{"href":3086,"dataGaName":3087,"dataGaLocation":3232},{"text":3089,"config":3435},{"href":3091,"dataGaName":3092,"dataGaLocation":3232},{"text":3437,"config":3438},"Sustainability",{"href":3439,"dataGaName":3437,"dataGaLocation":3232},"/sustainability/",{"text":3441,"config":3442},"Diversity, inclusion and belonging (DIB)",{"href":3443,"dataGaName":3444,"dataGaLocation":3232},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":3094,"config":3446},{"href":3096,"dataGaName":3097,"dataGaLocation":3232},{"text":3104,"config":3448},{"href":3106,"dataGaName":3107,"dataGaLocation":3232},{"text":3109,"config":3450},{"href":3111,"dataGaName":3112,"dataGaLocation":3232},{"text":3452,"config":3453},"Modern Slavery Transparency Statement",{"href":3454,"dataGaName":3455,"dataGaLocation":3232},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":3457},[3458,3461,3464],{"text":3459,"config":3460},"Terms",{"href":3284,"dataGaName":3285,"dataGaLocation":3232},{"text":3462,"config":3463},"Cookies",{"dataGaName":3294,"dataGaLocation":3232,"id":3295,"isOneTrustButton":1912},{"text":3465,"config":3466},"Privacy",{"href":3289,"dataGaName":3290,"dataGaLocation":3232},[3468],{"id":3469,"title":7,"body":2771,"config":3470,"content":3472,"description":2771,"extension":3476,"meta":3477,"navigation":1912,"path":3478,"seo":3479,"stem":3480,"__hash__":3481},"blogAuthors/en-us/blog/authors/cesar-saavedra.yml",{"template":3471},"BlogAuthor",{"name":7,"config":3473},{"headshot":3474,"ctfId":3475},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659600/Blog/Author%20Headshots/csaavedra1-headshot.jpg","csaavedra1","yml",{},"/en-us/blog/authors/cesar-saavedra",{},"en-us/blog/authors/cesar-saavedra","SMqRf-z0W5m5GROz_dXGjmuIb3YaOwm_n_RfeK16GcA",[3483,3491,3499],{"title":3484,"description":3485,"heroImage":3486,"category":2767,"date":3487,"authors":3488,"slug":3490,"externalUrl":2771},"Consolidate your GitLab stack with Gitaly on Kubernetes","Discover how to install Gitaly on Kubernetes, which is now generally available.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1756500636/wmey6kqzzuhirk88w2de.png","2026-05-07",[3489],"Olivier Campeau","gitaly-on-kubernetes-generally-available",{"title":3492,"description":3493,"heroImage":3494,"category":2767,"date":3495,"authors":3496,"slug":3498,"externalUrl":2771},"Teaching software development the easy way using GitLab","Learn how University of Washington lecturer Stephen G. Dame uses GitLab for Education to manage student assignments, distribute course materials, and provide inline code feedback at scale.\n","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659537/Blog/Hero%20Images/display-article-image-0679-1800x945-fy26.png","2026-04-29",[3497],"Rod Burns","teaching-software-development-the-easy-way-using-gitlab",{"title":3500,"description":3501,"heroImage":3502,"category":2767,"date":3503,"authors":3504,"slug":3506,"externalUrl":2771},"AI is reshaping DevSecOps: Attend GitLab Transcend to see what’s next","AI-generated code is 34% of development work. Discover how to balance productivity gains with quality, reliability, and security.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1767982271/e9ogyosmuummq7j65zqg.png","2026-01-08",[3505],"Manav Khurana","ai-is-reshaping-devsecops-attend-gitlab-transcend-to-see-whats-next",{"promotions":3508},[3509,3523,3534,3546],{"id":3510,"categories":3511,"header":3513,"text":3514,"button":3515,"image":3520},"ai-modernization",[3512],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":3516,"config":3517},"Get your AI maturity score",{"href":3518,"dataGaName":3519,"dataGaLocation":2998},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":3521},{"src":3522},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":3524,"categories":3525,"header":3526,"text":3514,"button":3527,"image":3531},"devops-modernization",[1643,2767],"Are you just managing tools or shipping innovation?",{"text":3528,"config":3529},"Get your DevOps maturity score",{"href":3530,"dataGaName":3519,"dataGaLocation":2998},"/assessments/devops-modernization-assessment/",{"config":3532},{"src":3533},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":3535,"categories":3536,"header":3538,"text":3514,"button":3539,"image":3543},"security-modernization",[3537],"security","Are you trading speed for security?",{"text":3540,"config":3541},"Get your security maturity score",{"href":3542,"dataGaName":3519,"dataGaLocation":2998},"/assessments/security-modernization-assessment/",{"config":3544},{"src":3545},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":3547,"paths":3548,"header":3551,"text":3552,"button":3553,"image":3558},"github-azure-migration",[3549,3550],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":3554,"config":3555},"See how GitLab compares to GitHub",{"href":3556,"dataGaName":3557,"dataGaLocation":2998},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":3559},{"src":3533},{"header":3561,"blurb":3562,"button":3563,"secondaryButton":3568},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":3564,"config":3565},"Get your free trial",{"href":3566,"dataGaName":2798,"dataGaLocation":3567},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":3270,"config":3569},{"href":3123,"dataGaName":2803,"dataGaLocation":3567},1786803759061]