{"id":27983,"date":"2023-09-28T15:27:56","date_gmt":"2023-09-28T13:27:56","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=27983"},"modified":"2023-09-28T15:27:56","modified_gmt":"2023-09-28T13:27:56","slug":"deploy-an-application-with-gitlab-ci-cd","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/","title":{"rendered":"Deploy an application with GitLab CI\/CD"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Following on from my previous article &#8220;<a href=\"https:\/\/www.dbi-services.com\/blog\/build-and-containerize-an-angular-application-with-gitlab-ci-cd\/\">Build and containerize an Angular application with GitLab CI\/CD<\/a>&#8220;, it&#8217;s now time to deploy this application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, I will deploy the application on a Kubernetes cluster using Helm.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, you need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect a cluster to the project. See my article: &#8220;<a href=\"https:\/\/www.dbi-services.com\/blog\/connect-a-kubernetes-cluster-to-gitlab\/\">Connect a Kubernetes cluster to GitLab<\/a>&#8220;<\/li>\n\n\n\n<li>Define deployment environments. See my other article: &#8220;<a href=\"https:\/\/www.dbi-services.com\/blog\/declaring-environments-in-gitlab\/\">Declaring Environments in GitLab<\/a>&#8220;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-preparing-the-project\">Preparing the project<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To prepare the project for deployment, I added a very basic Helm chart with only one deployment and one service. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, on the root folder of my project, I have a charts folder with the classic content of a chart. See the <a href=\"https:\/\/helm.sh\/docs\/topics\/charts\/\">Helm documentation<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-c-reate-a-new-deployment-stage-in-the-gitlab-ci-yaml\"><strong>C<\/strong>reate<strong> a new deployment stage in the .gitlab-ci.yaml<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the name of your new stage in the list od stages (For example, deploy_dev) :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>stages:\n- build\n- deploy_dev<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add a new stage in the main part of the page:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deploy_dev:\n  stage: deploy_dev\n  image: dtzar\/helm-kubectl\n  before_script:\n  - kubectl config use-context dbiservices\/gitlab-testing\/ci-project:test-cluster\n  - sed -i \"s\/#TAG#\/${CI_COMMIT_SHORT_SHA}\/g\" .\/charts\/values.yaml\n  script:\n  - helm upgrade --install --values=charts\/values.yaml --namespace ${K8S_NS} ci-project .\/charts\n  environment:\n    name: \"application-test\"\n  rules:\n    - if: $CI_COMMIT_BRANCH\n      exists:\n        - Dockerfile\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-important-parameters-in-the-deployment-stage\">Important parameters in the deployment stage:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>image<\/strong> parameter: &#8220;image: dtzar\/helm-kubectl&#8221;, a job in GitLab CI\/CD run in a container. Consequently, the image need the right tools to execute the task. For a deployment using Helm, you&#8217;ll need an image containing kubectl and Helm. I use the <a href=\"https:\/\/hub.docker.com\/r\/dtzar\/helm-kubectl\">dtzar\/helm-kubectl<\/a> image from the community, this image is frequently updated and commonly used.<\/li>\n\n\n\n<li>The <strong>before_script (kubectl)<\/strong>: this step prepare the context for the main task. The &#8220;kubectl config use-context&#8221; command defines which kubernetes context will be used. GitLab can provision Kubernetes contexts from the configured clusters in the project. The context name is defined as follows: [GitLab project path]:[cluster name] (see my article about <a href=\"https:\/\/www.dbi-services.com\/blog\/connect-a-kubernetes-cluster-to-gitlab\/\">cluster in GitLab<\/a>)<\/li>\n\n\n\n<li>The <strong>before_script (sed)<\/strong>: replace the tag of the image to deploy by the CI_COMMIT_SHORT_SHA in the chart&#8217;s values.yaml file.<\/li>\n\n\n\n<li>The <strong>environment<\/strong> parameter : defines the name of the environment where the application will be deployed. <strong>Important<\/strong> : don&#8217;t forget to specify the environment, many behaviors are linked to it, such as environment related variables, deployment approval and the deployment tracking<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-the-helm-command\">The Helm command<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The main task (the script section) of this stage contains only one command: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>helm upgrade --install --values=charts\/values.yaml --namespace ${K8S_NS} ci-project .\/charts<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The command Helm upgrade update an existing Helm deployment, in addition, the &#8211;install option allow Helm to create the deployment if not exists.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following option &#8211;values=charts\/values.yaml, specify the location of the values for the templates in the Helm chart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The option &#8211;namespace, indicates the target namespace in cluster for the application deployment. In addition, the value ${K8S_NS} is an environment-specific variable. See the <a href=\"https:\/\/www.dbi-services.com\/blog\/declaring-environments-in-gitlab\/\">article about environments<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The two last values in the command correspond to the name of the Helm deployment and the location of the chart.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now my pipeline could build and deploy my application !<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"269\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-1024x269.png\" alt=\"\" class=\"wp-image-27988\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-1024x269.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-300x79.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-768x201.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-1536x403.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-2048x537.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, it&#8217;s possible to add more deployment task, such as another for the production environment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"262\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-deployment-prod-1024x262.png\" alt=\"\" class=\"wp-image-27989\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-deployment-prod-1024x262.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-deployment-prod-300x77.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-deployment-prod-768x197.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-deployment-prod-1536x393.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-deployment-prod-2048x524.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Deploying an application with GitLab CI\/CD is really simple, takes little time and meets real business needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following on from my previous article &#8220;Build and containerize an Angular application with GitLab CI\/CD&#8220;, it&#8217;s now time to deploy this application. In this article, I will deploy the application on a Kubernetes cluster using Helm. Prerequisites Before starting, you need to: Preparing the project To prepare the project for deployment, I added a very&hellip;&nbsp;<\/p>\n","protected":false},"author":72,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1320],"tags":[2983,2648,3028,1523],"class_list":["post-27983","post","type-post","status-publish","format-standard","category-devops","tag-ci-cd","tag-gitlab","tag-gitlabci-cd","tag-helm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Deploy an application with GitLab CI\/CD - dbi services Blog<\/title>\n<meta name=\"description\" content=\"How to deploy an application on Kubernetes using Gitlab CI\/CD. Configure your project, add required steps and use helm to deploy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploy an application with GitLab CI\/CD\" \/>\n<meta property=\"og:description\" content=\"How to deploy an application on Kubernetes using Gitlab CI\/CD. Configure your project, add required steps and use helm to deploy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-28T13:27:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2684\" \/>\n\t<meta property=\"og:image:height\" content=\"704\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nicolas Meunier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nicolas Meunier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/\"},\"author\":{\"name\":\"Nicolas Meunier\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/f7db0bacb346a357921356a06e563000\"},\"headline\":\"Deploy an application with GitLab CI\\\/CD\",\"datePublished\":\"2023-09-28T13:27:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/\"},\"wordCount\":499,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Pipeline-Deployment-Task-1024x269.png\",\"keywords\":[\"CI\\\/CD\",\"GitLab\",\"GitlabCI\\\/CD\",\"helm\"],\"articleSection\":[\"DevOps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/\",\"name\":\"Deploy an application with GitLab CI\\\/CD - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Pipeline-Deployment-Task-1024x269.png\",\"datePublished\":\"2023-09-28T13:27:56+00:00\",\"description\":\"How to deploy an application on Kubernetes using Gitlab CI\\\/CD. Configure your project, add required steps and use helm to deploy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Pipeline-Deployment-Task.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Pipeline-Deployment-Task.png\",\"width\":2684,\"height\":704},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/deploy-an-application-with-gitlab-ci-cd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploy an application with GitLab CI\\\/CD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/f7db0bacb346a357921356a06e563000\",\"name\":\"Nicolas Meunier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/NME_web-min-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/NME_web-min-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/NME_web-min-scaled.jpg\",\"caption\":\"Nicolas Meunier\"},\"description\":\"Nicolas Meunier specializes in cloud solutions and has more than 20 years of experience in IT web technologies and development, including CI\\\/CD, Kubernetes, Docker, Jenkins-X, and Azure DevOps. Prior to dbi services, he developed and maintained a CI\\\/CD pipeline at CEGID in Paris and worked as Lead Developer at KPMG. He holds a superior technical diploma in IT development. His background covers software and cloud platform architecture.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/nicolas-meunier\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Deploy an application with GitLab CI\/CD - dbi services Blog","description":"How to deploy an application on Kubernetes using Gitlab CI\/CD. Configure your project, add required steps and use helm to deploy.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/","og_locale":"en_US","og_type":"article","og_title":"Deploy an application with GitLab CI\/CD","og_description":"How to deploy an application on Kubernetes using Gitlab CI\/CD. Configure your project, add required steps and use helm to deploy.","og_url":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2023-09-28T13:27:56+00:00","og_image":[{"width":2684,"height":704,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task.png","type":"image\/png"}],"author":"Nicolas Meunier","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Nicolas Meunier","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/"},"author":{"name":"Nicolas Meunier","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/f7db0bacb346a357921356a06e563000"},"headline":"Deploy an application with GitLab CI\/CD","datePublished":"2023-09-28T13:27:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/"},"wordCount":499,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-1024x269.png","keywords":["CI\/CD","GitLab","GitlabCI\/CD","helm"],"articleSection":["DevOps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/","url":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/","name":"Deploy an application with GitLab CI\/CD - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task-1024x269.png","datePublished":"2023-09-28T13:27:56+00:00","description":"How to deploy an application on Kubernetes using Gitlab CI\/CD. Configure your project, add required steps and use helm to deploy.","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/09\/Pipeline-Deployment-Task.png","width":2684,"height":704},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/deploy-an-application-with-gitlab-ci-cd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Deploy an application with GitLab CI\/CD"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/f7db0bacb346a357921356a06e563000","name":"Nicolas Meunier","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/NME_web-min-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/NME_web-min-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/NME_web-min-scaled.jpg","caption":"Nicolas Meunier"},"description":"Nicolas Meunier specializes in cloud solutions and has more than 20 years of experience in IT web technologies and development, including CI\/CD, Kubernetes, Docker, Jenkins-X, and Azure DevOps. Prior to dbi services, he developed and maintained a CI\/CD pipeline at CEGID in Paris and worked as Lead Developer at KPMG. He holds a superior technical diploma in IT development. His background covers software and cloud platform architecture.","url":"https:\/\/www.dbi-services.com\/blog\/author\/nicolas-meunier\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/27983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/72"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=27983"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/27983\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=27983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=27983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=27983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}