Тёмный

How to Build and Deploy an app on Kubernetes by GitLab ci cd pipeline 

be-devops
Подписаться 2,9 тыс.
Просмотров 43 тыс.
50% 1

CI CD pipeline is used for quick and efficient delivery of an application to its consumers. So, In this "How To" presentation I demonstrate how to create a #gitlab CI/CD #pipeline that uses a #Gitlab-Runner to build and push images to GITLAB #container registry and we will learn how to connect an existing #kubernetes Cluster to GitLab and How to deploy applications on cluster using CI/CD tunnel
This #tutorial assumes you have a Local Kubernetes cluster like Racher-Desktop . To setup Rancher Cluster on your windows machine, you can follow this tutorial: • How to Install & Confi...
==========================================
www.buymeacoff...
==========================================
Note:
If you are using GitLab self-managed instance, You need to enable GitLab Kubernetes Agent Server (KAS) from GitLab configuration using below step.
Add below line in /etc/gitlab/gitlab.rb file
gitlab_kas['enable'] = true
Restart or re-configure GitLab.
All Files related to this Project: (1-K8S-CICD folder)
github.com/mka...
How ton install Rancher-Desktop on Windows: • How to Install & Confi...
#kubernetes #gitlab #gitlab-runner # gitlab # build #deploy #ci cd pipeline #gitlab ci cd tutorial #gitlab tutorial #pipeline #devops ci cd pipeline

Опубликовано:

 

11 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 114   
@imCroozen
@imCroozen 4 месяца назад
I've been watching ALOT of devops videos for my job this week, and this is BY FAR the most hands on devops pipeline tutorial I have found. Thank you.
@be-devops
@be-devops 4 месяца назад
Thank You
@bothorsen4292
@bothorsen4292 8 месяцев назад
Thank you for this, it was exactly what I needed. If only the gitlab documentation was as good as this video :)
@be-devops
@be-devops 8 месяцев назад
Thanks
@muhammadrehan5722
@muhammadrehan5722 2 месяца назад
The most underrated channel for devops i guess. This is all we need i guess simple and clear
@AI-4-U
@AI-4-U Год назад
You are the best teacher. I took so many courses, but the way you teach goes straight to my head. 🎉🎉🎉🎉
@be-devops
@be-devops Год назад
Thank you, today I started my day with your energetic sentence.
@Amit007111
@Amit007111 Месяц назад
It is very helping to understand the process of web app deployment into kubernative cluster. It is very good devops channel.
@hajermakina7474
@hajermakina7474 11 месяцев назад
This is such a structured video for those who want to build a complete cicd pipeline. and explanation was really crystal clear ! you are such a gem trainer :) you have really done a fantastic job creating this video, I hope we could get more such end to end project to grind our skills !! Thank you
@be-devops
@be-devops 11 месяцев назад
You built my day with your full energetic sentences
@ssreelakshmi5075
@ssreelakshmi5075 Месяц назад
your explanation was good i need some more this type of project videos
@amadoudiop6634
@amadoudiop6634 7 месяцев назад
Excellent tutorial and very well explained. Thank you very much !!!
@be-devops
@be-devops 7 месяцев назад
Thank you
@vivekgupta309
@vivekgupta309 28 дней назад
very high quality, valuable tutorial and explanation !!!
@DynamiArrow
@DynamiArrow 4 месяца назад
Best explanation of this topic that i have seen, great job
@raph1587
@raph1587 11 месяцев назад
Wow! This is what I am looking for! Its so detailed and well explained! Keep the Tutorial Videos coming!
@be-devops
@be-devops 11 месяцев назад
Thanks Raph
@naseredinwesleti300
@naseredinwesleti300 2 месяца назад
amazing one ✅🚩
@jameswachira5713
@jameswachira5713 Месяц назад
Great tutorial. It has helped me alot. Thank you sir
@ahosanhabib9399
@ahosanhabib9399 7 месяцев назад
Great teaching
@be-devops
@be-devops 7 месяцев назад
Thanks
@MohamadMirSajadi
@MohamadMirSajadi 11 месяцев назад
it was ,nice , clear and what i was looking for . Thank you
@be-devops
@be-devops 11 месяцев назад
Thanks for the nice comment. لطف دارید
@feder7582
@feder7582 3 месяца назад
solid video. would be even greatet with time sections since it offers so much valuable instructions.
@LucasAragãoA.daCosta
@LucasAragãoA.daCosta 3 месяца назад
amazing tutorial, ty
@timpomaville3080
@timpomaville3080 7 месяцев назад
These videos are wonderful!
@AartiPawar-w7e
@AartiPawar-w7e Месяц назад
great video!
@manhnguyenitc
@manhnguyenitc 5 месяцев назад
Thank you very much, it was exactly what I needed :)
@be-devops
@be-devops 4 месяца назад
You're welcome!
@AI-4-U
@AI-4-U Год назад
Can you please do a video on these topics. 1. Helm charts 2. Istio service mesh 3. Observability with OpenTelemetry 4. GitOps, ArgoCD
@be-devops
@be-devops Год назад
Good Ideas, sure will do
@neelojp8460
@neelojp8460 Год назад
@@be-devops yes please about Helm :-)
@be-devops
@be-devops Год назад
@@neelojp8460 I am preparing it
@sergekomi6039
@sergekomi6039 7 месяцев назад
great explanation very helpful thank you !!!
@be-devops
@be-devops 7 месяцев назад
Thanks
@nadiasadiki9301
@nadiasadiki9301 6 дней назад
Thank you for the video
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
Development of skills and Wisdom and experience and learning education po
@HamzehMotahari
@HamzehMotahari 5 месяцев назад
Thank you, very helpful.
@be-devops
@be-devops 4 месяца назад
Glad to hear it!
@jakub6514
@jakub6514 Месяц назад
Thank You a lot man for this video
@rikitikitaki5919
@rikitikitaki5919 6 месяцев назад
Good video, but you didnt mention about runner. I think it was full cicd process if you showed installing runner
@be-devops
@be-devops 6 месяцев назад
Thank you for your comment Here we more focus on CICD. But i had another video about using gitlab runner: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6BlsKlhOhDE.html
@rikitikitaki5919
@rikitikitaki5919 5 месяцев назад
​@be-devops Could you explain me, please. In stage deploy, do we need to use kubernetes runner? Or it is enought that we have agent. Because when i am starting my pipeline it gives me error, that here we dont have runner to deploy. Maybe i have a mistake.
@be-devops
@be-devops 5 месяцев назад
@@rikitikitaki5919 no need something like you say kubernetes runner. we do not have such thing. Only agent is ok you can contact me by email and send me the issue logs and we can solve it quickly
@be-devops
@be-devops 5 месяцев назад
@@rikitikitaki5919 howtoskillsvid@gmail.com
@lenoah8692
@lenoah8692 9 месяцев назад
best teacher thanks
@mostafabanaei2832
@mostafabanaei2832 9 месяцев назад
thank you for great video
@be-devops
@be-devops 9 месяцев назад
It is my pleasure
@sharukhannadagoud
@sharukhannadagoud 6 месяцев назад
awesome video
@sfarpaktech
@sfarpaktech 10 месяцев назад
Really helpful thanks for sharing
@eliaspereira777
@eliaspereira777 8 месяцев назад
Hello, great explanation!!! I have a gitlab-ci.yml identical to yours, but in the build stage, I set the tags: build, only. The deploy is identical. When I push, the stage build completes successfully, but the stage deploy is waiting for a runner. I believe that with the gitlab agent, there is no need for a runner, correct?
@be-devops
@be-devops 8 месяцев назад
yes deploy also need gitlab runner, because you are using an image to run kubectl command check yr deploy config. or send me by email to check it for you howtoskillsvid@gmail.com
@somber2075
@somber2075 7 месяцев назад
Great video. It has helped me a lot
@nikitamathur6720
@nikitamathur6720 6 месяцев назад
Thanks for the detailed Video. Help me alot !!! Want to ask you that when i run 'kubectl get node -o wide' and take the internal ip of the node-cluster, i am not able to connect to my app on browser. I have installed docker for windows on my windows machine. Then minicube for Kubernetes. Should i install anything else.
@be-devops
@be-devops 6 месяцев назад
Please check your firewall on windows and maybe blocked it but as i described I am using Rancher Desktop and really is amazing for its installation you can check my other video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-I9YtRhPRMqc.html
@madhuppandey3151
@madhuppandey3151 9 дней назад
As you have created two repositories in your gitlab account, one for k8s connection and another one for source code. So, my question is, can we create only one repository for both work (connection to k8s and for source code) ?
@be-devops
@be-devops 8 дней назад
Hi Yes you can , but for clear the result i used 2 repo
@Freeline95
@Freeline95 9 месяцев назад
Nice video! Could you give me advice by best practices. In your case you store k8s yaml files in your project repo. But i am developing microservices architecture and my files are storing in separated repo "infrastructure". How to get files from there? Git clone my private repo during the build?
@be-devops
@be-devops 8 месяцев назад
Hi Friend, You can find your answer here in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OvgXuGskdCM.html I described there how to clone other repo in CICD
@ceasarpalache1045
@ceasarpalache1045 5 месяцев назад
Make sure your k8s-connection is in the same group as the project you're trying to deploy. If it's not, the deployment step will fail trying to set kubectl contexts.
@happyshoppi1036
@happyshoppi1036 7 месяцев назад
Hi Thankyou so much for your video I have made a similar lab for testing CICD Gitlab I am facing issues whule pusing the code in gitlab container I would appreciate your help
@be-devops
@be-devops 7 месяцев назад
Thanks
@danishkhalid9193
@danishkhalid9193 Месяц назад
I followed your step when deploying application manually in k8s cluster , i did the same thing but i am unable to access the application using internal IP of the cluster but i am able to access it through localhost:nodeport . What might haves caused this problem or is it not a problem at all ? Thanks
@be-devops
@be-devops Месяц назад
check yr firewall
@serokanikani
@serokanikani 6 месяцев назад
thanks for the tutorial, I have a problem if I update coding and push to gitlab, build image and deploy successfully. but it seems like the pod or service or image in microk8s is not updated and if I delete the service and pod first then push to gitlab, its work. my gitlab ci yaml is same with tutorial
@hwy9nightkid
@hwy9nightkid 9 месяцев назад
at about 29:26 you're showing the building of the image with a public gitlab provided runner.. is the agent also capabale of building or how should one go about supporting not just operations but build steps in our private k8s? seems I need more runner types installed?
@be-devops
@be-devops 9 месяцев назад
Hello, I did not get your question would you please send me more details in my email howtoskillsvid@gmail.com
@hwy9nightkid
@hwy9nightkid 9 месяцев назад
I'd rather not reveal my email.. but I think I understand.. you built the docker image using gitlabs free runners... I wanted to see if you could build docker images within the k3s cluster.. but very good video thanks ! @@be-devops
@be-devops
@be-devops 9 месяцев назад
@@hwy9nightkid Good Hint. I will check K3S and will try to do. Thanks
@elchinefa9524
@elchinefa9524 5 месяцев назад
First of all thnaks a lot for this video. I am fasinf agent connection issue. I'm using our company gitlab server and Connect a Kubernetes cluster return an error: Gitlab Failed to register an agent GRPC::Unimplemented . By the way my kubernetes running in Proxmox and it is kubeadm cluster.
@be-devops
@be-devops 5 месяцев назад
Please check in Kubernetes Cluster that Helm chart installed successfully and agent is running. you can reach me by email and we can discuses on it
@elchinefa9524
@elchinefa9524 4 месяца назад
@@be-devops Where can i find your email.
@be-devops
@be-devops 4 месяца назад
@@elchinefa9524 howtoskillsvid@gmail.com
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
Superior of all physicians group multidisciplinary plan and professionalism for all the healthcare workers po
@JavierParadaHD1
@JavierParadaHD1 5 месяцев назад
Teacher i have a problem, in the same group i have acces to the k8s aggent with every project without any problem, but when i need the k8s agent in another group i have'nt access, and i've already added the ci_access project and group to access it, but it doesn't work :((. I've my own self hosted gitlab and i've put as true the gitlab_kas['enable']. Help pls
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
New development for skills Experience wisdom creativity and all my talents and wisdoms righteousness obedience training equipment po
@Rajasubbiah-x1k
@Rajasubbiah-x1k 10 месяцев назад
Hi bro, thanks for the video. May I know how to access the source code
@be-devops
@be-devops 10 месяцев назад
In description there is Github repo address. but here you are: All Files related to this Project: (1-K8S-CICD folder) github.com/mkaraminejad/cicd_pipeline
@dattran3130
@dattran3130 11 месяцев назад
Hello ad, can you share me the repo of web in k8s-data. Very thanks you
@be-devops
@be-devops 11 месяцев назад
I added this repo in description github.com/mkaraminejad/cicd_pipeline.git folder 1-K8S-CICD
@WIEMMSEDDI
@WIEMMSEDDI 4 месяца назад
Thank you ! But i have never connected status !! and i have a "Failed to register agent pod. " problem ! Can you help please !?
@be-devops
@be-devops 4 месяца назад
Thank you for your comment. To make connection I would check cluster side. I suggest you when in gitlab side you create a connection, copy helm codes and past them in Cluster side. After please check if everything in cluster side working well: 1) kubectl get ns you will see the name spaces and also the one for gitlab 2) kubectl -n get pods ex: kubectl -n gitlab-agent-k8s-connection get pods the result will show you the pods should be in running status. If pods be in Running status but still you have no connection in gitlab, check your firewall You can reach me by Email.
@WIEMMSEDDI
@WIEMMSEDDI 4 месяца назад
@@be-devops Can you give me your email please ?
@shivendrasingh5550
@shivendrasingh5550 10 месяцев назад
When the Docker image has already been built in the gitlab registry. Why do we need to push it again? Won't the image be there already?
@be-devops
@be-devops 10 месяцев назад
When it had been built by CICD , it is located on gitlab runner and when the job done by gitlab runner it will gone because it is a container so we need to push it on gitlab repository that be useable
@shivendrasingh5550
@shivendrasingh5550 10 месяцев назад
@@be-devops Thankyou for the prompt response. Please also make a video on how helm charts, gitlab-ci.yaml, Dockerfile and Docker-compose.yaml are related? I have seen all of them in a single project and could not understand the use of all of them.
@be-devops
@be-devops 10 месяцев назад
@@shivendrasingh5550 check my latest video in my channel using helm chart with CICD to deploy on K8S
@BollineniMohanKrishna
@BollineniMohanKrishna 11 месяцев назад
inmy case i have installed kubecluster in my local environment when i did the same as you presented my agent is not connecting. can you provide any solution for that.
@be-devops
@be-devops 11 месяцев назад
do you have access to your kube cluster from your local machine terminal? for example if you open yr terminal and type "kubectl get node -o wide" works? because at first you have to be sure you cluster works well. contact me by "howtoskillsvid@gmail.com" and we can solve the issue
@nikhiltaneja9825
@nikhiltaneja9825 2 месяца назад
Same with me. Any idea why its happening?
@BollineniMohanKrishna
@BollineniMohanKrishna 2 месяца назад
@@nikhiltaneja9825 i have solved my issue what exactly the problem u r facing?
@BollineniMohanKrishna
@BollineniMohanKrishna 2 месяца назад
@@nikhiltaneja9825 my issue was resolved can u b more specific of the issue?
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
Sir/Dr. mark Anthony familaran po and mommy/dr.Carmela domocmat po
@shashankmr2482
@shashankmr2482 6 месяцев назад
You didn't mention runners there
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
And god po
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
🙏😇
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
New cluster and projects po
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
Physicians group multidisciplinary plan
@praveenchaudhary288
@praveenchaudhary288 10 месяцев назад
getting an error occurred while loading your agents
@be-devops
@be-devops 10 месяцев назад
your k8s cluster is in remote or local?
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
God and whole dragons teams po Kuya Bobby and ate Anna Po and bata Po kami ni thel Po mommy Carmela Po
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
Sir Henry and sir Aiken and sir danni Po and madam butterfly and madam/Dr. Carolyn and madam divine and madam mercy and madam Kris amoyo po and madam grace po
@VincentPaulAlimbuyuguen
@VincentPaulAlimbuyuguen 10 месяцев назад
Thank you god and sir mark Anthony familaran po and mommy Carmela Po box online and meetings Po 🤝🐉 Kuya Bobby and ate Anna Po nakakainis maraming thesis papers natin Po
@stream4885
@stream4885 9 месяцев назад
Thank you for your video and presentation. after following deployment is ok and manual deployment also work, but i have this message at the end of cd/cd process. any clue why? thank you @be_devops .gitlab-ci.yml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
@be-devops
@be-devops 8 месяцев назад
Please share me the content of .gitlab-ci.yml by my email: howtoskillsvid@gmail.com
Далее
GENIUS FOOD HACKS 🍰 #shorts
00:36
Просмотров 9 млн
WHICH SODA CAN FLY THE HIGHEST?
00:48
Просмотров 3,4 млн
Part 4. Roblox trend🗿
00:16
Просмотров 607 тыс.
GitLab CI/CD Pipeline Tutorial for Beginners (2024)
19:33
Kubernetes Crash Course for Absolute Beginners [NEW]
1:12:04
How to design a modern CI/CD Pipeline
9:59
Просмотров 142 тыс.
GitLab CI CD Tutorial for Beginners [Crash Course]
1:09:00
GENIUS FOOD HACKS 🍰 #shorts
00:36
Просмотров 9 млн