bhai no doubt ap awesome projects karwate h kuch projects microservices pr laiye na jiske andr kubernetes ka use ho r different services n components ek dusre se communicate krri ho
sir , hatts off your effoerts. i want to say one thing While doing the steps of the project, you should also have told why it has to be done this step ,so that we can understand it better.
Hi. I am getting this error while to setup ansible server at 56:05. Could you please guide me. I am running this command $ssh-copy-id 172.31.16.237 and getting this error: "/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory (to install the contents of '/root/.pub' anyway, look at the -f option)"
2nd line will copy the tomcat webapps folder to image webapps folder. And 3rd line will copy the .war file from current workspace folder to image webapps folder.
Fentastic project step by step without errors, i need same CICD jen-docker-nginx-k8s to deploy static website and same pipeline for React.Js, bcoz i have my own websites of html+css+js and React.js, i wish yo practice to deploy that by my own, plsss make that also sir
This error comes due to aws cli version. From root user run below commands on Bootstrap-Server. $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version Hope you have assigned IAM role to EC2.
Thanks for making videos, do you have any video to setup CI/CD pipeline for a nodejs(with typescript) app with github, github actions, gcp cloud biuld, container registry, Docker, Kubernetes, not sure if terraform jenksins or mavin should also be used here , but we use new relic for monitoring and slack for notifications. Do you help one on one in settig it up ? ..We use GCP for servers and AWS for ML.
Thank you Prof Ashfaque, I love this but I got stuck because I did not see in the video where you installed awscli on the bootstrap server, also, immediately I did that and installed eksctl and I moved it to the bin folder my server keeps crashing, do I have to change the ec2 from t2.micro to t2.small or what?
Hope you have given remote directory as "//opt//docker" and you have given the ownership of /op/docker to ansadmin username by command $ sudo chown ansadmin:ansadmin /opt and $ sudo chown ansadmin:ansadmin /opt/docker
Hi sir, well project, learned a lot. One doubt: there are three Jobs created in Jenkins: Test Maven, CI and CD. In CI there is SCM Polling(*****) and GitHub repo mentioned, and as per post build its triggering the CD job. But I guess the Test maven job is missed. the CI job is not added to Test Maven.. Please correct me if I am wrong.
"Test-Maven-Build" Job was created & executed only to verify that Maven build is happening or not. At 43:55 we created "Copy_Artifacts_onto_Ansible" Maven Job and configured all settings of "Test-Maven-Build" into this Job also along with Ansible server settings. Later in the video "Copy_Artifacts_onto_Ansible" job has been renamed as "CI_Job".
thanks sir, does it mean that in real time we do build only once to check if the war is getting created? as each time we do commit the Maven job will not get trigger if we dont use any hook or Poll SCM. So later when we commit in this particular video, its not getting the newly created war? As test Maven job only creating the war. Please correct me if I missed anything. Thanks in advance@@VirtualTechBox
Or as the Copy artifacts job which is later CI job, is doing the build each time as its selected as Maven Project not freestyle or pipeline. As I am new bit confused.
Not required. We have given schedule in Poll SCM for every minute. It will verify the GitHub repo every min and if there is any change, it will trigger the job.
Hi sir im getting this error while setup kubernets with EKSCTL, i.e., getting Kubernetes version on EKS cluster: error running `kubectl version`: exit status 1 (check 'kubectl version'). pLease help me on this
This error comes due to aws cli version. From root user run below commands $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version
Hello Ashfaque, I am getting the error in Kubernetes setup.. Error like Exec credential.. can you please help sir.. Also kindly share the document with commands list sir
This error comes due to aws cli version. From root user run below commands $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version All the command used in video are already available in description.
Link & command I have provided in one repo which is available in description. github.com/Ashfaque-9x/Scripts/blob/main/DevOps-Project-with-Jenkins-Maven-and-Kubernetes.txt
Hi Sir , I am getting error @ 48.10 , while building copy artifiacts to ansible . ********************************************************************************* git rev-parse refs/remotes/origin/main^{commit} # timeout=10 > git rev-parse origin/main^{commit} # timeout=10 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. SSH: Current build result is [FAILURE], not going to run. Finished: FAILURE ******************************
only having one issue with you sir. you opened many links in videos but not mentioned what you searched for that and not even mentioned link in description also.
All the commands & links I have given in the github repo mentioned in the description. If any thing missing kindly provide me timestamp of the video I will add it in repo github.com/Ashfaque-9x/Scripts/blob/main/DevOps-Project-with-Jenkins-Maven-and-Kubernetes.txt
Do visit to my DevOps Playlist👇
ua-cam.com/play/PLmSlOWkfkugmXU1WVTu_fmrOwjRAbbWvL.html
really really cool man thankyou so much.... clear explanation for cicd
bhai no doubt ap awesome projects karwate h kuch projects microservices pr laiye na jiske andr kubernetes ka use ho r different services n components ek dusre se communicate krri ho
I will try.
Thank you. you made our life easy :)
You're Welcome.
Thanks Ashfaque!!
Thanks you very much
Expecting different projects similar to this
Will try.
Amazing Project sir, and well explained each and every step @VirtualTechBox
@sumanprasad007 Thank You for your kind words.
Well explained!
Thank You @gajananbarure4007
sir , hatts off your effoerts. i want to say one thing While doing the steps of the project, you should also have told why it has to be done this step ,so that we can understand it better.
If I do the this, video would gave become too long.
@40:50 Publish over SSH is not there in my system
You need to install plugin called "publish over ssh" in your Jenkins.
@@VirtualTechBox thank you very much for the quick response ashfaque sir ❤ please continue the good work, may allah SWT bless you❤
@@nihalsj-k7x Thank you for your kind words.
goto manage jenkins > plugins > available plugins > search for publish over ssh > install
Thank you
Hi. I am getting this error while to setup ansible server at 56:05. Could you please guide me.
I am running this command $ssh-copy-id 172.31.16.237
and getting this error: "/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory
(to install the contents of '/root/.pub' anyway, look at the -f option)"
Refer
unix.stackexchange.com/questions/212098/unable-to-use-ssh-copy-id-mktemp-failed-to-create-file-via-template
Thank you.
You're Welcome.
Hello, can anyone you please help me with DockerFile understanding. I have not understood what last 2 lines is doing.
2nd line will copy the tomcat webapps folder to image webapps folder. And 3rd line will copy the .war file from current workspace folder to image webapps folder.
Fentastic project step by step without errors, i need same CICD jen-docker-nginx-k8s to deploy static website and same pipeline for React.Js, bcoz i have my own websites of html+css+js and React.js, i wish yo practice to deploy that by my own, plsss make that also sir
I will Try.
The .war file was not copping to //opt//Docker file
The build was success but the folder was still empty
Cloud you please guide me 🙏
1:17:08 ERROR: When i hit "kubectl get nodes" i couldn't get a list of nodes i got the error -- iam_authinticator.
please reply😊
This error comes due to aws cli version. From root user run below commands on Bootstrap-Server.
$ sudo yum remove -y aws-cli
$ pip3 install --user awscli
$ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws
$ aws --version
Hope you have assigned IAM role to EC2.
Thanks for making videos, do you have any video to setup CI/CD pipeline for a nodejs(with typescript) app with github, github actions, gcp cloud biuld, container registry, Docker, Kubernetes, not sure if terraform jenksins or mavin should also be used here , but we use new relic for monitoring and slack for notifications. Do you help one on one in settig it up ? ..We use GCP for servers and AWS for ML.
Not yet. I will try to make.
Thank you Prof Ashfaque, I love this but I got stuck because I did not see in the video where you installed awscli on the bootstrap server, also, immediately I did that and installed eksctl and I moved it to the bin folder my server keeps crashing, do I have to change the ec2 from t2.micro to t2.small or what?
run below commands from root
$ sudo yum remove -y aws-cli
$ pip3 install --user awscli
$ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws
$ aws --version
@48:13 ERROR: Exception when publishing, exception message [Permission Denied]
output: UNSTABLE
PLEASE HELP ME Ashfaque Sir
Hope you have given remote directory as "//opt//docker" and you have given the ownership of /op/docker to ansadmin username by command $ sudo chown ansadmin:ansadmin /opt and $ sudo chown ansadmin:ansadmin /opt/docker
Hi sir, well project, learned a lot. One doubt: there are three Jobs created in Jenkins: Test Maven, CI and CD. In CI there is SCM Polling(*****) and GitHub repo mentioned, and as per post build its triggering the CD job. But I guess the Test maven job is missed. the CI job is not added to Test Maven.. Please correct me if I am wrong.
"Test-Maven-Build" Job was created & executed only to verify that Maven build is happening or not.
At 43:55 we created "Copy_Artifacts_onto_Ansible" Maven Job and configured all settings of "Test-Maven-Build" into this Job also along with Ansible server settings.
Later in the video "Copy_Artifacts_onto_Ansible" job has been renamed as "CI_Job".
thanks sir, does it mean that in real time we do build only once to check if the war is getting created? as each time we do commit the Maven job will not get trigger if we dont use any hook or Poll SCM. So later when we commit in this particular video, its not getting the newly created war? As test Maven job only creating the war. Please correct me if I missed anything. Thanks in advance@@VirtualTechBox
Or as the Copy artifacts job which is later CI job, is doing the build each time as its selected as Maven Project not freestyle or pipeline. As I am new bit confused.
@@soumitrabose3277 Every time you commit the code, CI Job get triggered through Poll SCM and you have new Maven build.
@@soumitrabose3277 CI Job is Maven job, upon every trigger it will create the new Maven build.
Hello,
i didn't get the option of publish over SSH time: 40:53 could anyone suggest me
You need to install plugin called "publish over SSH" in your Jenkins.
Hi,i have a question here if i have ubuntu OS then i follow the same command and process ??
You will have to follow same process but commands may be bit different.
thx@@VirtualTechBox
@@adnanrafique4785 You're Welcome.
nice...do we need to configure github hooks, for automatic run of jenkins jobs?
Not required. We have given schedule in Poll SCM for every minute. It will verify the GitHub repo every min and if there is any change, it will trigger the job.
in last git have used webhook? for auto build u not shown in video
I haven't used GitHub Webhook, I have used Poll SCM Schedule to Trigger Pipeline.
nice
Thank You.
Hello sir why I'm getting Unstable build and can't able to push the image to docker hub ?
Is ur image getting build locally perfectly? If yes hen try to run container with it locally. Hope you have done the docker login from CLI.
Hi sir im getting this error while setup kubernets with EKSCTL, i.e., getting Kubernetes version on EKS cluster: error running `kubectl version`: exit status 1 (check 'kubectl version'). pLease help me on this
This error comes due to aws cli version. From root user run below commands
$ sudo yum remove -y aws-cli
$ pip3 install --user awscli
$ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws
$ aws --version
thank you very much, i have same this issues after following this command its worked. @@VirtualTechBox
👍@@supacpro
While copying artifact to ansible over SSH iam getting error (auth fail publickey,passwd ) showing unstable
Reconfigure the credentials on Jenkins for the server.
getting error of unstable of ci pipeline plugin over ssh
how to resolve? i tired every possible thing
Hope you have installed the plugin "publish over ssh".
Hello Ashfaque, I am getting the error in Kubernetes setup.. Error like Exec credential.. can you please help sir.. Also kindly share the document with commands list sir
This error comes due to aws cli version. From root user run below commands
$ sudo yum remove -y aws-cli
$ pip3 install --user awscli
$ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws
$ aws --version
All the command used in video are already available in description.
you have create kubeconfig as well use aws eks kubeconfig documentation
you have downloaded EKSCT but link you have pasted from where ? how we can get that link
Link & command I have provided in one repo which is available in description.
github.com/Ashfaque-9x/Scripts/blob/main/DevOps-Project-with-Jenkins-Maven-and-Kubernetes.txt
@@VirtualTechBox Thanks
Most Welcome.@@manishkumawat011
@@VirtualTechBox Hello, can you please help me with Dockerfile understanding. I have not understood what last 2 lines will do.
can i also run react or nodejs file using this video ?
Yes you can.
Sir in realtime what is the Size of CI server we use ??
Depends on the environment and requirement.
Hi Sir , I am getting error @ 48.10 , while building copy artifiacts to ansible .
*********************************************************************************
git rev-parse refs/remotes/origin/main^{commit} # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE
******************************
Hope you have given Remote Directory://opt//Docker and user ansadmin has right on this directory
only having one issue with you sir. you opened many links in videos but not mentioned what you searched for that and not even mentioned link in description also.
All the commands & links I have given in the github repo mentioned in the description. If any thing missing kindly provide me timestamp of the video I will add it in repo
github.com/Ashfaque-9x/Scripts/blob/main/DevOps-Project-with-Jenkins-Maven-and-Kubernetes.txt
@@VirtualTechBox Thanks
You're Welcome@@manishkumawat011
We need declairative pipeline project for the same, plz check and upload if any.
Will try.
Baba , kuch na smjh aa rha
Step-1 se project practice karna shuru kar do sab samajh aane lage ga.
sir i got confusion how did you get regapp-deployment.yml and regapp-service.yml
Along with repository it was cloned. If it is not present, you need to make it. Its a manifest file to deploy resources on Kubernetes.
@@VirtualTechBox i got in later that you provide us a link in description ...thank you
You're Welcome@@handsomevillian