How to Deploy EKS Cluster on AWS Using Terraform ? | Automated Using Jenkins CICD Pipeline

  Рет қаралды 12,426

DevOpsMaster

DevOpsMaster

2 ай бұрын

Title: Automating EKS Cluster Deployment and Nginx Application Deployment with Terraform and Jenkins CI/CD Pipeline
Description:
Welcome to another exciting tutorial where we delve into the world of cloud infrastructure and DevOps automation! In this video, we'll guide you through the seamless deployment of an EKS (Amazon Elastic Kubernetes Service) cluster on AWS using Terraform. But we won't stop there - we'll also demonstrate how to automate the deployment of an Nginx application onto this EKS cluster, all orchestrated by a Jenkins CI/CD pipeline.
Throughout this tutorial, you'll learn step-by-step how to:
1. Set up your AWS environment for EKS cluster deployment.
2. Utilize Terraform to define infrastructure as code, configuring the EKS cluster effortlessly.
3. Automate the deployment of an Nginx application onto the EKS cluster using Kubernetes manifests.
4. Configure Jenkins CI/CD pipeline to automate the entire process, from code commit to deployment.
By the end of this video, you'll have a clear understanding of how to leverage Terraform, Kubernetes, and Jenkins to automate the deployment of EKS clusters and applications, streamlining your DevOps workflows and increasing efficiency.
Don't forget to like, share, and subscribe for more insightful tutorials on cloud computing, DevOps practices, and automation strategies. Also, feel free to connect with me on LinkedIn, Twitter, or drop me an email if you have any questions or suggestions for future content.
Support my work: buymeacoffee.com/devopsmaster
GitHub Repo : github.com/ansarshaik965/CICD...
LinkedIn: / ansarshaik965
Twitter: / ansar9959 .
Gmail : ansarshaik965@gmail.com
Email: devopsmaster965@gmail.com
Stay tuned, and let's master DevOps together!

Пікірлер: 68
@balumahindara4722
@balumahindara4722 11 күн бұрын
You are a Gem! This video is savior for many .
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 10 күн бұрын
Thank you ❤️
@KayDeeSibbs
@KayDeeSibbs 2 ай бұрын
I was always stuck on the last stage of deploying the nginx because of the error of API server. Thank a lot for the video you have gained yourself a subscriber
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thank you ❤️😇
@user-ds4gb7qw1c
@user-ds4gb7qw1c 24 күн бұрын
Great job buddy. Keep doing it..!! Have a great career ahead..!!
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 24 күн бұрын
Thank you ❤️:)
@Niruukumar
@Niruukumar 2 ай бұрын
Great 👍 @DevOpsMaster Keep it up..!!
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thank you ❤️😊
@suhasadduri1691
@suhasadduri1691 Ай бұрын
Great Content , Great Effort
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Thanks for watching ❤️☺️
@dhilone
@dhilone Ай бұрын
truly useful bro
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Thank you ❤️
@yashwanthyash5273
@yashwanthyash5273 23 күн бұрын
Great Job Buddy please do more on ci/cd pipeline automation
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 23 күн бұрын
Sure 👍 ,Thanks for watching ❤️
@nguyenthanhlam1566
@nguyenthanhlam1566 Ай бұрын
So Great Sir Keep it up 💪💪
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Thank you ❤️☺️
@thapasujan07
@thapasujan07 Ай бұрын
Keep on uploading Sir. Best wishes.✨
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Thank you 👍❤️
@MaheshMahi-lb1zf
@MaheshMahi-lb1zf 2 ай бұрын
17th subscriber of your channel
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thanks for support ❤️❤️😇
@Silent_yt678
@Silent_yt678 Ай бұрын
Great❤
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
:)
@praveenkumarnavati5569
@praveenkumarnavati5569 28 күн бұрын
Hi bro, Nice explanation, Its very useful topic, upload more videos
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 28 күн бұрын
Sure Thanks for watching❤️
@samipdaveyt
@samipdaveyt 2 ай бұрын
nice explained bro keep it up👍👍👍
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thank you ❤️
@pramodhbr4190
@pramodhbr4190 2 ай бұрын
Great
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thank you ❤️
@somarajukottu1440
@somarajukottu1440 2 ай бұрын
Hey Bro your explanation was good something was missing so please explain clearly, less explanation but hands on was very clear, next time explain clearly bro, Really thank you very much it will help to us.
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thanks for watching and definitely I will work on that ❤️
@chetanlanje6144
@chetanlanje6144 2 ай бұрын
Great brother ..Thanks
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thank you ❤️
@user-xp2wo4vp3d
@user-xp2wo4vp3d Ай бұрын
❤❤
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
❤️☺️
@robmah7771
@robmah7771 2 ай бұрын
Thank you very much for the explanation. The last stage of deploying the nginx is not working. The commit does not have your latest kubernetes.tf and main.tf files. Can you please update the commit?
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Thanks for watching the video.. I have committed changes in dev branch , you can check there..I hope your problem will solve now.
@vinayk-il2gv
@vinayk-il2gv 2 ай бұрын
Hai...thanks for u r valuable information..in ec2 module code i have given key paire name but .it is looking for key ..where should I keep key pair..
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
First of all thanks for watching video.. Goto AWS console and open ec2 , left side there you will find “Key Pairs “ in Network & Security, just click on that and create key pair😊
@vinayk-il2gv
@vinayk-il2gv 2 ай бұрын
Thanks.. it's working
@raviteja-oe8wt
@raviteja-oe8wt 2 ай бұрын
@DevOpsMaster why jenkins server and eks cluster are in different vpc? What happens if we create in same vpc? Thanks
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
Yes , you can create multiple instances and clusters in single vpc through terraform modules.
@ibmuser13
@ibmuser13 Ай бұрын
good practice to keep them separate
@accountfortesting6321
@accountfortesting6321 2 ай бұрын
Hey @DevOpsMaster: content is awesome but it will be very helpful if you suggest few things: 1: How we can take reference of custom vpc to provision EKS on that which I already created like if we want to provision EKS in same jenkins-vpc which you created i.e if do not want to create another vpc for EKS separate. 2: If we provisioned EKS in same PVC then suppose if we have already created more than 1 EKS and more than 2 Ec2 whether its created via terraform or manually will be any impact. 3: if we try self to provision EKS cluster in free account for testing with 2 to 3 nodes suppose t2.medium each than can you suggest how much the cost will be to provision EKS in our account for 5 to 6 hours.
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms 2 ай бұрын
First of all thank you so much for watching my video and giving your valuable feedback 😇 1. You can invoke vpc module (jenkins-server vpc) in eks resource module by just defining “source /path/to that vpc module/“ . By doing this you can create eks cluster in same vpc. 2. Yes, you can provision multiple services in single vpc there will be no impact on other resources. 3. Eks cluster with t2.medium nodes for 5-6 hours it will cost around (2-3)$ if you’re using custom vpc. For default vpc it will cost less but that is not good practice I hope you will get better idea after this :)
@accountfortesting6321
@accountfortesting6321 2 ай бұрын
@@DevOpsMaster-un3ms as per the first point can you please give a sample example to reference custom VPC and thanks for the other points response.
@brostlefc
@brostlefc Ай бұрын
I believe most of the terraform configurations you did in the first 10mins were things that you can do on the AWS User interface right ?
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Thanks for watching video and commenting on it , means a lot ❤️☺️ Yes, not only video beginning services even you can complete whole project using aws console user interface but that’s not a good practice that’s why I showed each and every small thing from scratch..
@brostlefc
@brostlefc Ай бұрын
@@DevOpsMaster-un3ms I quite agree with you that using the AWS Console interface is not the best practice, though I don't know for work experience sake if you can tell me. I would appreciate it. However, I subscribed because of how you did it using CLI. I would like to master that. Can you recommend materials or videos that can help me master that?
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
@@brostlefc Absolutely, using the AWS Console directly can be time-consuming and error-prone, especially when managing multiple resources or environments. Instead, Using terraform or CloudFormation allows for easier management, version control, and reproducibility of your infrastructure. U can check out this playlist of terraform zero to hero by Abhishek veeramalla(kzbin.info/aero/PLdpzxOOAlwvI0O4PeKVV1-yJoX2AqIWuf&si=nlKPUrHiN7EF4f8Y)
@user-ox7tl6ie2z
@user-ox7tl6ie2z 2 ай бұрын
hi bro when i was trigger the jenkins job I am facing this error + kubectl apply -f deployment.yml error: You must be logged in to the server (the server has asked for the client to provide credentials) and One more thing I was watched same vedio and same --> Guri madam explination
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Checkout to dev branch, there you will find modified files! Thanks for watching the video ❤️
@chandrasekhar5858
@chandrasekhar5858 Ай бұрын
Please do video on devops zero to Hero
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Sure❤️
@kavindugunasekara448
@kavindugunasekara448 Ай бұрын
In my AWS EC2 instance type there no t2.medium Sir , It start from t3 there is no any t2 types ,, please sir I need you Help
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Change region.
@KishanRampure
@KishanRampure Ай бұрын
Hello, It is a really nice CICD pipeline. but got some error's in deployment.yml file and EKS -> data.tf file. In the deployment.yml -> template not templates. In the data.tf -> data "aws_eks_cluster" "cluster" { name = module.eks.cluster_id } #it's throwing error required name argument So i have used below data. It's working data "aws_eks_cluster_auth" "cluster" { name = module.eks.cluster_name depends_on = [ module.eks ] } Please check your side also, and is issue is with myside only or comman issue.
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Thank you kishan for your feedback , ok ! If it’s working then definitely I will update it☺️
@KishanRampure
@KishanRampure Ай бұрын
@@DevOpsMaster-un3ms "aws_eks_cluster" and "aws_eks_cluster_auth" Both have to provide (depends_on) parameter. :) Thank you.
@ayencoscolfield3312
@ayencoscolfield3312 Ай бұрын
hi great content but why ois the terraform.tfstate inside gitghub it should have been part of the .gitignore items to be ignored when pushing to repository it should rather be in the s3 bucket
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
Yes , definitely it should have been part of .gitignore , but I forgot to mention that in .gitignore while pushing chages to GitHub repository , because state file wasn’t needed for further process. Thanks for sharing that 😊 and once again thanks for watching the video:)
@ayencoscolfield3312
@ayencoscolfield3312 Ай бұрын
@@DevOpsMaster-un3ms Thanks for adding values through your videos, will definitely be sharing within my network, great work you are doing, pls lets keep the flag flying👍
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
@@ayencoscolfield3312 Thank you so much it means a lot ❤️
@user-xp2wo4vp3d
@user-xp2wo4vp3d Ай бұрын
❤❤
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
☺️❤️
@DevOpsMaster-un3ms
@DevOpsMaster-un3ms Ай бұрын
☺️❤️
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 28 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 1,5 МЛН
АСЛАНЯН: Китайский автопром - это обман россиян
7:57
Ходорковский LIVE
Рет қаралды 165 М.
Байден или Трамп? Путин ответил
9:03
AKIpress news
Рет қаралды 379 М.
Kubernetes hands on introduction (2023) | Amazon EKS Workshop
1:27:23
Containers from the Couch
Рет қаралды 31 М.
Why You NEED To Learn Terraform | Practical Tutorial
27:33
Travis Media
Рет қаралды 95 М.
No Interview Calls ? | But how some people are getting Jobs ?
10:54
Abhishek.Veeramalla
Рет қаралды 25 М.
What is GitOps | GitOps explained with ArgoCD project
15:51
Cloud Champ
Рет қаралды 10 М.
Kubernetes CI/CD Pipeline Using Jenkins | DevOps Tutorial/Project - 2023
2:49:55