{"id":1376,"date":"2021-09-27T14:36:41","date_gmt":"2021-09-27T12:36:41","guid":{"rendered":"https:\/\/savecore.se\/gitlab-kubernetes-tutorial\/"},"modified":"2025-12-10T10:34:15","modified_gmt":"2025-12-10T09:34:15","slug":"gitlab-kubernetes-tutorial","status":"publish","type":"post","link":"https:\/\/savecore.se\/en\/gitlab-kubernetes-tutorial\/","title":{"rendered":"GitLab &amp; Kubernetes Tutorial"},"content":{"rendered":"\n<p><br>Git has become an integral part of the development process and is often managed using GitHub or BitBucket.\nIf you want to manage your own Git server, GitLab is the obvious choice.\nGitLab has many advantages such as its built-in CI\/CD solution and AutoDevOps.  <\/p>\n\n\n\n<p>Kubernetes (K8S) is an open source container orchestration system for automating deployment and scaling, and managing microservices and applications.  <\/p>\n\n\n\n<p>To integrate GitLab and Kubernetes, follow these steps:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to <a href=\"https:\/\/app.infra.savecore.com\/\">https:\/\/app.infra.savecore.com<\/a><\/li>\n\n\n\n<li>Click on Marketplace (1) and then click install on both <em>Kubernetes Cluster<\/em> and <em>DevOps Lab &#8211; GitLab Server. <\/em> <\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"588\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab1.jpg\" alt=\"\" class=\"wp-image-2269\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab1.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab1-600x389.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-05-25.png\"><\/a><\/p>\n\n\n\n<p>a.\nWhen you click Install from the Marketplace, you will be given the option to choose the name of your environment (1).\nYou can also choose a descriptive name such as &#8220;Display Name&#8221; which will appear when you look at all your environments.\nThen click on Install.   <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"534\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab2.jpg\" alt=\"\" class=\"wp-image-2271\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab2.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab2-600x353.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-08-01.png\"><\/a><\/p>\n\n\n\n<p>Then this installation window comes up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"292\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab3.jpg\" alt=\"\" class=\"wp-image-2273\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab3.jpg 862w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab3-600x203.jpg 600w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-09-49.png\"><\/a><\/p>\n\n\n\n<p>Once the installation is complete, you will receive a username and password for the GitLab server that you use to log in.\nYou will also receive it by email. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"392\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab4.jpg\" alt=\"\" class=\"wp-image-2275\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab4.jpg 858w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab4-600x274.jpg 600w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-31-48.png\"><\/a><\/p>\n\n\n\n<p>b.\nWhen you press Install from the Marketplace, you will be given the option to choose the name of your environment (1).\nHere you can choose to either use default settings or change to the needs that you have, we have chosen to add <strong><em>Remote API Access<\/em><\/strong>.\nYou can also choose a descriptive name such as &#8220;Display Name&#8221; that appears when you look at all your environments.\nThen click on Install.    <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"726\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab5.jpg\" alt=\"\" class=\"wp-image-2277\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab5.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab5-600x480.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-17-10.png\"><\/a><\/p>\n\n\n\n<p>Then this installation window comes up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"204\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab6.jpg\" alt=\"\" class=\"wp-image-2279\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab6.jpg 856w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab6-600x143.jpg 600w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-20-31.png\"><\/a><\/p>\n\n\n\n<p>Once the installation is complete, you will receive an access token that has been generated to access the Kubernetes dashboard or the Remote API.\nYou will also receive this sent to you via email. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"730\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab7.jpg\" alt=\"\" class=\"wp-image-2281\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab7.jpg 854w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab7-600x513.jpg 600w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-34-37.png\"><\/a><\/p>\n\n\n\n<p>3. When both installations are complete, return to the view of your environments.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"276\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab8.jpg\" alt=\"\" class=\"wp-image-2283\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab8.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab8-600x182.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-42-34.png\"><\/a><\/p>\n\n\n\n<p>4. Next, go to Kubernetes Cluster and click Add-Ons on the Master node.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"202\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab9.jpg\" alt=\"\" class=\"wp-image-2285\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab9.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab9-600x133.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-40-53.png\"><\/a><\/p>\n\n\n\n<p>5. Then click Configure on GitLab Integrations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"160\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab10.jpg\" alt=\"\" class=\"wp-image-2287\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab10.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab10-600x106.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-44-31.png\"><\/a><\/p>\n\n\n\n<p>When selecting GitLab environment, select your newly installed GitLab environment and then press Apply.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"320\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab11.jpg\" alt=\"\" class=\"wp-image-2289\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab11.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab11-600x211.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-47-47.png\"><\/a><\/p>\n\n\n\n<p>Wait until the configuration is complete before moving on to the next step and verifying that the integration works.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"360\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab12.jpg\" alt=\"\" class=\"wp-image-2291\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab12.jpg 624w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab12-600x346.jpg 600w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-49-05.png\"><\/a><\/p>\n\n\n\n<p>6. When it says that your GitLab integration is complete on the Master node of the Kubernetes Cluster, log in to your GitLab server with the credentials you received earlier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"462\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab13.jpg\" alt=\"\" class=\"wp-image-2293\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab13.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab13-600x305.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-15-33-51.png\"><\/a><\/p>\n\n\n\n<p>7. click on Admin Area (1) and then go to Kubernetes (2).\nIf you see your Kubernetes Cluster (3), the integration is successful.\nIf you click on Kubernetes (3), you can see more information regarding your Kubernetes Cluster.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"464\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab14.jpg\" alt=\"\" class=\"wp-image-2295\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab14.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab14-600x307.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-16-00-27.png\"><\/a><\/p>\n\n\n\n<p>Here you can go through the different tabs that show more about details, health and integrations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"524\" src=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab15.jpg\" alt=\"\" class=\"wp-image-2297\" srcset=\"https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab15.jpg 908w, https:\/\/savecore.se\/wp-content\/uploads\/2021\/09\/savecore-gitlab15-600x346.jpg 600w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/savecore.se\/app\/uploads\/2021\/09\/screenshot-2021-06-11-at-16-07-32.png\"><\/a><\/p>\n\n\n\n<p>8. Now you can use the full functionality of GitLab&#8217;s CU\/CD solution to get your applications out faster and more securely.<\/p>\n\n\n\n<p>Please do not hesitate to contact us at <a href=\"mailto:support@savecore.se\">support@savecore.se<\/a> if you have any further questions.<\/p>\n\n\n\n<p>Don&#8217;t have a PaaS account?\nNo problem, you can create one quickly and easily here.\nYou can test the platform free of charge for 14 days.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git has become an integral part of the development process and is often managed using GitHub or BitBucket. If you want to manage your own Git server, GitLab is the obvious choice. GitLab has many advantages such as its built-in CI\/CD solution and AutoDevOps. Kubernetes (K8S) is an open source container orchestration system for automating &#8230; <a title=\"GitLab &amp; Kubernetes Tutorial\" class=\"read-more\" href=\"https:\/\/savecore.se\/en\/gitlab-kubernetes-tutorial\/\" aria-label=\"Read more about GitLab &amp; Kubernetes Tutorial\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1205,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1376","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industry-related"],"acf":[],"_links":{"self":[{"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/posts\/1376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/comments?post=1376"}],"version-history":[{"count":2,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/posts\/1376\/revisions"}],"predecessor-version":[{"id":2300,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/posts\/1376\/revisions\/2300"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/media\/1205"}],"wp:attachment":[{"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/media?parent=1376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/categories?post=1376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savecore.se\/en\/wp-json\/wp\/v2\/tags?post=1376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}