CICD Pipeline to deploy Kubernetes Applications using Terraform, EKS, and Jenkins

CICD Pipeline to deploy Kubernetes Applications using Terraform, EKS, and Jenkins

Primus Learning

1 год назад

26,644 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Johnson Nejo
Johnson Nejo - 12.10.2023 09:02

Thank you brother for this helpful tutorial. I followed your steps carefully to demonstrate the project, but an error message is displayed when I run "terraform init" command. Please could you help explain this error message:

HP 840 G2@DESKTOP-5BG8K7E MINGW64 ~/Desktop/DevOps/KUBERNETES PROJECT/terraform-code-to-create-jenkins-server (main)
$ terraform init

Initializing the backend...

Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.

Error refreshing state: AccessDenied: Access Denied
status code: 403, request id: Q5RRCESDRXHGM60H, host id: MHR/JOPOKrL9M+yTorjB6TDuwjd6rhz3MVnH2yDkc5MFL0XscKSbqT8eS/Xh2dcad/hmN+ggBoalm4wPFbWwNw==

Ответить
Archana Dhage
Archana Dhage - 04.10.2023 10:52

What is the role and responsibilities of this project sir coz I want to add in my cv

Ответить
DNT Growth
DNT Growth - 21.09.2023 13:01

Thanks for your tutorial! :)
Just a small question in the Jenkins part:
In your JenkinsFile I see you define the variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, but you never use it to execute the "sh "aws eks update-kubeconfig --name myapp-eks-cluster". Can you telle me pls why or if I am missing something? :)
Because normally we use "withCredentials( )" function to use those credential Variables inside JenkinsPipeline.

Or is it enough just in the ec2 instance add the credentials manually using "aws configure" in the console? :)
Thanks again for your support! :)

Ответить
Pascal Wirba
Pascal Wirba - 19.09.2023 19:04

Absolutely amazing

Ответить
Michael Qin
Michael Qin - 21.08.2023 09:48

Excellent tutorial. My recommendation is to use Python or shell script to organize and run terraform code, and just use Jenkin for your CI/CD pipeline. If you could demo a simple application with the CI/CD pipeline is even better, in which you can include web hook, unit test, security scan, smoke test, etc. in the pipeline, and independent of infrastructure code - terraform. Look forward to your next tutorial. Thanks,

Ответить
cap michal
cap michal - 15.08.2023 17:08

For some reason my LoadBalancer can't be created, EKS creation and kubernetes deployment return success, but mu LoadBalances is not created. Google says that there is problem with public/private subnets. Do we assign private subnets to our LB ? Or is it publicly open for anyone ?

Error shown on AWS EKS deployment section:
Error syncing load balancer: failed to ensure load balancer: could not find any suitable subnets for creating the ELB

Ответить
Darius Tentegue
Darius Tentegue - 18.07.2023 21:35

Thanks for your effort .The jenkins-pipeline-deploy-to-eks is trowing some error and pipeline is failling

Ответить
Darius Tentegue
Darius Tentegue - 17.07.2023 14:19

Thank you so much for your video .Could also do a video to show how to create all terraform files you used to deploy the cluster? please

Ответить
Janell Featherstone
Janell Featherstone - 21.06.2023 05:41

@primuslearning4235 I tried the tutorial but jenkins wasn't installed on my server. I see that some others had the same issue. Do you have a resolution for this please ?

Ответить
Speero One
Speero One - 10.06.2023 21:16

Awesome!👏

Ответить
amuwonge
amuwonge - 06.06.2023 19:30

Thanks Primus for this really informative end to end demonstration. Very insightful. I was wondering if you could please advise on an error I am getting. I tried to run a Terraform initialization but getting the below error. It doesn't seem to like the S3 bucket.. Could you please advise..?

PS C:\Users\user\Documents\Terraform22\terraform-code-to-create-jenkins-server> terraform init

Initializing the backend...

Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Error refreshing state: AllAccessDisabled: All access to this object has been disabled
status code: 403, request id: T7RZMYJ9G16Z5A0H, host id: lnX1pmr53RBi11UOyCaFjF/kGvW4JE/W4EiNbkLknMx/usQ0B4KSYmcr3BtUuEEGuxiGAeQ1GsjYCADqihAIb2OlXJScdxFwYlPBx/kVq1s=

Ответить
ujjawal chaturvedi
ujjawal chaturvedi - 29.05.2023 21:38

Hey Bro , Awesome work here , really appreciate the content , have a doubt in terraform part that how terraform will come to know about my aws account where it has to deploy ec2 , subnet, etc , also can we use default vpc or vpc is also required ,

Ответить
shubham jain
shubham jain - 19.05.2023 00:08

Also i'm not able to initialize the backend even after providing credentials for accesskey and secret key.
i did not find anything in video where to and how to do.?

Ответить
Mahesh Lawnekar
Mahesh Lawnekar - 14.05.2023 12:57

Bravo 👏

Ответить
kbrajeshwaran
kbrajeshwaran - 11.05.2023 19:39

Much appreciated your efforts

Ответить
Kanika Gola
Kanika Gola - 23.04.2023 16:13

I just connected my server through ssh ans saw that jenkins has not been installed and that's why I am not able to access it on web.

Ответить
Huguette Edjangue
Huguette Edjangue - 18.04.2023 14:49

Hi Primus, I tried to implement this project but the initialisation doesn't work at all I got this error message (
Initializing the backend...

│ Error: Failed to get existing workspaces: S3 bucket does not exist.

│ The referenced S3 bucket must have been previously created. If the S3 bucket│ was created within the last minute, please wait for a minute or two and try
│ again.

│ Error: NoSuchBucket: The specified bucket does not exist
│ status code: 404, request id: XKA4ZJKZTVRJKY30, host id: B19gFAQIMXJ5O03C3q/Qtak3SQibwiUdQFl0Ak3wqQc5AZag5qLtiavdRg4ZozbjtVfvb5Ikg+8exh5rDcTQOg== ), and I already create S3

Ответить
elvin ugonna
elvin ugonna - 17.04.2023 07:33

You are doing great work bro!

Ответить
Vishnu Rathore
Vishnu Rathore - 05.04.2023 02:01

🤜🤜

Ответить
Evanson Mwangi
Evanson Mwangi - 29.03.2023 15:21

Quick question, did you have an already created cluster prior to running the create eks cluster pipeline? I am getting No cluster found for name: calcapp-eks-cluster.

Ответить