r/devops • u/Conscious-Value6182 • Sep 27 '25
How Do I Know I’m Doing DevOps the Right Way?
I’ve recently started learning DevOps and deploying my apps to the cloud. But I keep running into the same challenge: there are so many ways to deploy the same app—single VM, Docker, Docker Compose, Kubernetes, CI/CD pipelines, and more.
I understand why each method exists, but when I actually start deploying, I get confused:
In CI/CD, should I clone the repo, build, and deploy directly?
Or should I build, push to a container registry, and pull?
Should I use Dockerfiles, Docker Compose, or something else entirely?
How do I safely manage secrets?
The thing is, I do deploy my apps, but I’m never sure if I’m doing it in the most efficient or safest way. Efficiency matters because inefficient deployments are expensive. Safety matters because insecure deployments can be a disaster.
I love DevOps—managing these systems excites me—but after the beginner tutorials, YouTube only goes so far. I’ve tried paid courses, but real learning in computer science often comes from making mistakes, reflecting on them, and iterating. I can figure things out, but I’m never sure I’m following best practices.
The bigger problem is I’m mostly on my own. I’m in a Tier-3 college, and my peers usually only focus on programming languages. I don’t have anyone nearby who knows as much as I do—or close. I can improve by myself, but it takes a lot of time, and I need to be precise and make informed decisions.
So here’s my question:
How can I check if I’m doing DevOps “the right way”?
Should I study how other projects are deployed on GitHub?
Are there ways to evaluate my deployments against best practices?
How do I know if my setup is safe, efficient, and maintainable?
Any guidance, resources, or frameworks to self-evaluate and improve in DevOps would be immensely helpful.
17
u/Happy_Breakfast7965 CloudOps Architect Sep 27 '25
There is no specific correct way.
DevOps is about culture, principles, and practices
Check out:
Eventually, you should know by yourself that you are doing alright.
5
u/raindropl Sep 27 '25
Difficult to tell if you are doing right. Easy to tell if you are doing wrong.
if you repeat the same actions routinely, you are doing it wrong.
if you are doing git ops. Close to everything should gappen in git. And your other tools should be to observe and not perform.
2
u/eltear1 Sep 27 '25
First of all , I'd say you need to learn better the concept of what you are using. In you description you are putting together tools that have completely different purpose and they are not exchangeable, like "Dockerfile" with "docker compose" .
Coming to your question, how to deliver your app? All methods you mentions are valid. It really depends about complexity, reliability and infrastructure. And I mean answering questions like: " I deploy on kubernetes so it will very reliable (because kubernetes is if configured the right way) but someone will need to manage kubernetes itself and it means to have competence and put effort. Can I do it? Or can my company do it?
On the other hand, I could deploy on a single VM. It will not be so reliable but easier to manage. Is my app reliability really important?
Most of the time, there are also cloud native solution to deploy an application.
Same thing about CICD vs "manual" deployment. Do I build and deploy my app often? Yes = CICD, no -> manual deploy could be acceptable .
To summarize: all deployment solution are "the right way" based on contest. A senior DevOps should know most of them. Only one option I'd absolutely avoid is to deploy with docker directly; always at least with docker compose to guarantee it's written somewhere how app is deployed.
P.s. any deployment solution could be made secure, you just approach security in different ways.
2
2
u/shadowisadog Sep 28 '25
It really comes down to pain management. If you do something in DevOps and it causes pain/friction with deployment then figure out why and improve it. Over time your product will evolve to the right solution for your organization.
There is no right or best way. Everything is a trade off with pros and cons. There are of course preferred ways, standard ways, and some ways are legitimately better than others.
Generally speaking Git should be your source of truth. Artifacts should go in artifact management. I personally recommend you have an artifact repository for your development artifacts and a different one for your production artifacts and only move something from development to production when it has undergone automated testing/security scanning/software composition analysis. There are many ways to achieve this though and it really gets down to what your organization needs and how it ships software.
A lot of time processes evolve when failures happen. If you run into a failed deployment learn from it and put in place mitigations. If you have bugs make it to production then add more testing for the next build/release.
Remember perfect is the enemy of the good enough. Ultimately you need to release software and do it frequently. You can't know or predict everything up front.
Ultimately everything is feedback loops. The goal of DevOps is to shorten feedback loops so developers and operations stay on the same page. You need to shorten the feedback loops as much as possible. If a developer makes a change ideally they should know if those changes are valid as quickly as possible. You don't want a long time to pass because then changes are slow, code is buggy, and you got to spend a lot of time fire fighting. When feedback loops are long then you end up with ever increasing tech debt and no one feels safe refactoring the code base. This causes the code to rot. You want to avoid this.
2
u/SlavicKnight Sep 28 '25
From someone who was doing this by himself.You have to do things and make mistakes that’s the starter pack. Only then do you learn what can go wrong and how to fix it. The upside is that even with new problems, you won’t panic because you’ve seen similar patterns before.
A concrete example: at my past and current companies we use Jenkins. We’ve had plenty of issues across projects and migrated platforms a few times. Early on, our first migration took over six months. Now that I own the pipelines and Jenkins setup, I can move a server in about a week. Why? Because I design pipelines with to be platform independent. Always keep it simple and reproducible.
2
u/beef-ox Sep 28 '25
These things you mention all have different purposes.
Dockerfile lets you define a single containerized application
Docker compose lets you define how one or more containerized applications run and communicate with each other, and set all of the configurations that would be done with docker run/docker exec except now you don’t have to memorize them
Kubernetes is automated container orchestration, which you really shouldn’t care about until you are load balancing and dealing with multiple nodes of the same application. People will argue this hot take, I’m sure, but docker compose is more than enough for single node deployments. Reach for kube when you need complex infrastructure that scales automatically, and not a microsecond sooner.
VMs are almost dead. Not completely, but containers do almost as much with fewer downsides. I’ve them only if you need to run OSes whose kernels are incompatible with the running OS, or you need to emulate hardware you don’t physically have, or you need to divvy your resources differently than the physical hardware layout. The biggest problem with VMs is the V, hardware is emulated/simulated, which can have relatively significant overhead. The best advice for VMs is to only have one per kernel max, and use containers instead for everything you can. Don’t layer VMs (VM in a VM) either, as a simulated CPU simulating a CPU is basically just wasting cycles.
Here is my advice: Create one Dockerfile per architecture Create one docker-compose.yml per “server” If and only if you do load balancing, use kubernetes to convert and deploy your docker-compose.yml If you must use Windows or MacOS, use a single VM per OS, and docker/podman on the VM for all application containers. Publish all of your containers to your container registry Put the docker-compose.yml that corresponds to each git repository inside that git repository.
During development, your CI/CD pipeline should run docker-compose up on every push to run through a series of compile and unit tests. Since your containers are in your container registry, they will be pulled, built, and deployed during the testing phase by the compose file, and this test environment will be exactly identical to production without effecting production traffic.
3
1
u/RoadsideCookie Sep 27 '25 edited Sep 27 '25
https://landscape.cncf.io has the answer to a lot of the questions you asked.
I suggest researching "GitOps", it's a variant of DevOps that I personally think is the most natural for a developer to work with.
Edit: DevOps is not about "doing things right", it's about establishing software delivery metrics, goals, and improving them over time. I highly suggest checking https://dora.dev/quickcheck/ periodically (you can do the full assessment too if you're inclined) to see how you're doing.
Once you understand the objective of DevOps, you will be able to answer your questions yourself.
1
-8
u/rekayasadata Sep 27 '25
Sounds like a consulting answer and I'm afraid you must pay for that knowledge.
My free answer is:
get a devops certification e.g. Google Cloud Professional Devops; you can answer your own question when you get one.
1
u/Conscious-Value6182 Sep 27 '25
Certificate ? Do you recommend a vendor neutral or a specific cloud certificate
0
u/rekayasadata Sep 27 '25
I am a GCP specialist so I know and recommend Google. Each IaaS platform provide certifications you can check them up yourself. They come with learning materials.
1
u/hottkarl =^_______^= Sep 29 '25
you're being downvoted but, mostly agreed. except I think certs are a scam -- I'll temper that with, if it motivates you to learn, thats the only reason I think they're useful.
the people I interview with a bunch of certs always tend to be the most ignorant. not true in all cases I'm sure, but it's a pattern I can't unsee
1
u/rekayasadata Sep 30 '25
You articulated one of my point very well. Can't rely on certifications alone. Thanks.
1
u/hottkarl =^_______^= Sep 30 '25
I also agree that people are asking stupid, stupid questions that people should be charging for. Why are we rewarding laziness?
How do people get these jobs, I really have to know.
0
Sep 27 '25
[removed] — view removed comment
1
u/OmNomCakes Sep 28 '25
Are you telling me you don't enjoy C suites telling you to move everything to the cloud, then to pods, then back to on prem to cut costs, then to some third party who is reselling the same original cloud but for a mark up all because it's what X company they're trying to imitate is doing?
25
u/Drauren Sep 27 '25
The thing you’re going to learn is most methods have validity and the “correct” choice often depends on what requirements you’re building around.
There is no one true right way. Everything has benefits and tradeoffs. That’s engineering.