DevOps Lab Project - Learn to be a DevOps Engineer through this Practical Lab Project
Вставка
- Опубліковано 31 тра 2024
- In this video I walk you through a typical DevOps project. In this Project I introduce the concept of configuration as code with Vagrant, go over configuration management with Ansible, then Containers and Container Orchestration with Docker and Docker Swarm.
📁 github.com/devopsjourney1/dev...
☕ Buy me a beer: www.buymeacoffee.com/bradmorg
👨💻 Join our Discord Community of DevOps Engineers: / discord
0:00 Introduction
0:55 Vagrant/Virtual Box setup
10:20 Managing Server Configuration with Ansible
25:06 Containerizing Applications with Docker
33:40 Container Orchestration with Docker Swarm - Наука та технологія
This walktrough has been helpful to understand how each of these tools work together.
Wow, a round of applause 👏. Please keep up the awesome work.
Awesome video. Very well explained. Down to Earth and explained in a way that I totally understand. I'm starting a DevOps Apprenticeship in September and I think your channel will be a valuable resource. Many thanks.
Thanks. It took me sometime but I finally got everything running. SO proud of you!
Great job! I'm proud of YOU!
Curiously waiting for this‼️‼️♥️
Really appreciate your effort.Thanks for the video.
Man, you're great. I'm trying to land a junior devops job and projects like this help me a lot to have a better grasp on how all these technologies work together.
Thanks and keep up the good work.
You made my day!
Did you ever get a devops job
Thanks a bunch, bro! Keep doing such lessons with different technologies
Beneficial material
Great job! Many thanks for this demo!
Glad you liked it!
This is so good. thank you so much!
Hey Devops journey, thank you for taking the time to show us this detail by detail. My question for you is - would a project like this be worth putting on your resume to show that you have some familiarity with these roles are looking for?
This is an incredible video.
Great Job Man, Many thanks
You're welcome!
very helpful. thanks!
Merci beaucoup. Very interesting lab. Thanks for this good job.
Great! thank you!
Amazing video!
Thanks!
Please make more of these projects
Thanks!
Thanks man !
Coming to the docker part, I am facing an issue. On node 1, when I run docker run hello-world, I get permission issues, but when I run sudo dokcer run hello-world, everything works fine, any idea of how can this be fixed, so that I can run docker without root access?
Thanks for this tutorial. I have an exsi host with almalinux as my controller and two other nodes (centos8) as my home lab. Can I run this project on my controller?
After provisioning you said I'll show how to copy the host file to the right location but there were no instructions for that, I provisioned the boxes and ssh in to control but the vagrant folder contents do not match what appears in the directory
we need more of these devops lab tutorials plz
They take a little longer to make and plan out, but I plan to do more of them!
@@DevOpsJourney thank u very much
@@DevOpsJourney legend!
Thank you for this awesome project !! I have just one question: Why not configuring the control node as the manager for docker swarm instead of using node ?
Thanks
You've helped me so much over the past two years. Thank you so much for that!
Super nit-picky and not to be taken as critique because you maybe know this by now and it's not the biggest deal: Be sure to add all of your 'RUN' commands in Dockerfiles to the same RUN line when possible, to avoid creating separate layers in your produced image and to keep the images/containers smaller.
RUN do stuff \
&& do more stuff \
&& do final thing
Instead of having:
RUN do stuff
RUN do more stuff
RUN do final thing
It'll keep your final images smaller.
#bestpractices #unaskedforadvice
Thanks, that's actually really good advice that I will implement!
I am getting errors when trying to test ansible, it says unable to parse .... as an inventory source and also, " no inventory list was parsed", "provided host list is empty"
Will you in future bring another project using terraform instead of vagrant? And a little more advanced side of that? I am really interested. This was awesome!
Yup! I will be working on Terraform and some Kibana tutorials in the next few months.
@@DevOpsJourney awesome!
I keep running vagrant up and keep getting a message that says my ip addresses arent in range. Cant find any videos on how to correct it.
after installing ansible I tied to CD in to it but I am getting an error that it is not a directory. I have tried to uninstall and reinstall but still getting the same message please help
Everything is fine just that things take a lot of time to load in my laptop. Like configuration of the servers took about 30 minutes and getting into vagrant ssh control too took about 40 minutes. Rest everything works fine. I am looking forward to do some more projects into devops. Thanks for this tutorial.
Edit: Okay, so I just got stuck at the ansible part over here and then after some debugging found out that ansible installation got corrupted midway and hence the command ansible was not being recognised. So again, had to run sudo apt get ansible and the issue got fixed.
I hope i dont miss it, this will be at my 3am.
everything worked for me just fine, but when doing curl node1:5000 it also outputs the hostname of nodes 2 and 3
Can anyone tell me why we only do orchestration on node servers?
How to implement this same project out of vagrant?
Hey DevOps Journey, Thanks for this project. Do you have a video on how to migrate this project to cloud using Terraform?
Interesting topics about DevOps stack, I'm wonder why you chose Docker Swarm instead of K8s.
K8s is a bigger beast to teach, requires a dedicated video. Just wanted to introduce the concept of orchestration :)
Fairly new and I am trying to see what is involved with DevOps. I noticed some terminal commands; I am assuming you have to become a master of terminal commands? Also, Is Python the preferred programming language? I know Python and JavaScript if either is optional? Finally, is starting with the AWS Architect Associates enough to land a first job in AWS Cloud services or would I need 2 certifications the AWS Developers Associates as well to become employable in DevOps?
A lot of terminal commands are used day to day. Python is popular but any of the major programming languages should be enough to land you a job. No need for multiple AWS certs - I don't have any and neither do most of the people I've worked with.
@@DevOpsJourney Thank you, that actually inspires me to look further into DevOps. At the moment I am comparing the DevOps developer path versus the C# Developer Path, I am stuck in the middle between these 2 professions, I like them both equally. At the moment I am just master JavaScript and Python. But I should have enough info to decide by the end of this month. Thank you so much for getting back to me and I've been watching your content more now to learn more about DevOps.
@@DevOpsJourney Forgot to ask, but how can I land a job in tech like a spot as a developer for something similar like what you do? I don't have a degree, I don't work in tech I work for an airline company. What would you recommend? Thank you.
@@DevOpsJourney That is actually good to know!! All I keep seeing or hearing whether it is from Twitter or UA-cam is people advertising the idea that it is mandatory to get these certifications to land an AWS job. Thanks for letting me know.
we can create instances in AWS nd use them instead of Vagrant , Right ?
Yup!
Howdy Mate! how about using Vim to hold Vagrant files instead of installing Virtual Studio code?
Yup that's fine!
@@DevOpsJourney Thanks Mate. Made it running using Vim. looking forward for the next informative and fun learning tutorial w/ DevOps.. stay safe Mate.
Legacy stack I think!!
Can I use terraform instead of vagrant ?
Yes that would be even better!
I copied the keyes as per instruction but it still asks for password when i try to access any of the nodes. I followed the video to every detail. Please help. Thank you.
Hey Kasdal. Can you give the timestamp around where you are having the issue? Thanks!
@@DevOpsJourney Heya. Thx for reply. Its this part here. ua-cam.com/video/YuZ002YrvUA/v-deo.html It still asks for password regardless.
I have the hosts copied and it pings fine when i call a node so name resolution works fine. But when i copy the ssh keyes something goes wrong. I checked /etc/ssh/sshd_config it looks ok as per Stackowerflow recommendation.
@@kasdal did the ssh-copy-id commandd work? It should copy the public ssh key to the hosts. once the public ssh key is on the hosts, they should no longer require a password. This article might help: www.ssh.com/academy/ssh/copy-id
@@DevOpsJourney It did i can see it in the remote machines. I also tried using other images same thing. It's really strange. I will check this article. Thank you.
@@DevOpsJourney My bad. I totally misunderstood how ssh-keygen works. When creating one i added a password. xD Shooting myself in a foot and spending one day or more debugging this crap.
Amazing project . How can I put those kind of projects in resume ?
I've given a high level summary of a projects similar to how I specify job experience. I've also linked to GitHub
@@DevOpsJourney got it thank you
what is the password? i was asked about node1, node 2, node3 passwords
Should be "vagrant"
海贼王漫画
the best
2024: Change vagrant to terraform and containerizing with docker-compose (more similar to next step of orquestation with k8s) and why are not included gitlab/jenkins and some public cloud=?
Hello,
trying to execute the first command in Ansible I received an errror:
ansible nodes -i myhosts -m command -a hostname
[WARNING]: Ansible is in a world writable directory (/vagrant/ansible), ignoring it as an ansible.cfg source.
node2 | FAILED | rc=0 >>
MODULE FAILURE
node1 | FAILED | rc=0 >>
MODULE FAILURE
node3 | FAILED | rc=0 >>
MODULE FAILURE
Do you know why? The ssh connection works fine.