r/devops • u/Lightn1ng101 • Sep 07 '26
Troubleshooting Advice on deploying a 5-microservice stack on a tight student budget
So I've been working on this microservices project ( repo ) for a few months. I have it fully running locally using kind, now I want to learn how to deploy it on AWS or GCP following best practices to get hands on experience and record demo videos for my resume.
Here's the stack:
- Microservices: 5 Node.js services (built and pushed to GHCR )
- Stateful Services: 5 Postgres databases (one per service), Redis, and Kafka.
- Observability: Prometheus, Grafana, Loki, and ( Alloy deployed using Helm charts).
- K8s & Networking: I wrote custom manifests using StatefulSets and Headless Services for the stateful components. I am using the Gateway API for ingress, backed by
cloud-provider-kindlocally.
Being a college student my budget is pretty tight. My plan is to write Terraform scripts so I can spin the whole infrastructure up, record a few demos for my resume, and immediately tear it down to keep costs minimal.
The questions I have:
- Which cloud provider to choose and how to deploy? Should I use managed K8s like EKS, or just run Kubernetes (or lightweight K8s like k3s) myself on a single EC2/VM instance? What's actually standard practice that I'd use on a real job?
- How to handle routing in the cloud cheap? Locally I use Gateway API with
cloud-provider-kind. What’s the most cost-effective way to handle this on AWS/GCP without getting hit with expensive cloud load balancer fees? - Is running DBs/Kafka in the cluster okay? Is keeping Postgres, Kafka, and monitoring inside K8s fine for a portfolio project, or do recruiters/hiring managers specifically look for managed cloud services ?
Any direction, best practices, or potential pitfalls to avoid would be greatly appreciated!
7
u/DigitalThrift Sep 07 '26
If you are looking for free resources try to pool together free tier from AWS, GCP and oracle.
I think oracle will be apt for you to deploy all of this.
3
u/Redcxx Sep 07 '26
AWS free tier should work
3
u/forever-butlerian Solaris 8 Enjoyer Sep 07 '26
Amazon's MSK, last I checked (this was last spring), had a cost floor of about $600/mo for a three-broker cluster. I don't think trying to use a managed cloud service is a reasonable expectation.
As a purely objective matter of skill, setting things like PostgreSQL and Kafka up without using RDS or MSK exposes you to more of what-it-is-actually-like-to-run-these-things. It gives you a better base on which to infer what jankery AWS is doing behind the scenes to present its managed offering to you. I don't know what proportion of hiring managers would agree with me, but I would select someone who has direct experience running actual services over someone who only knows how to pick letters from the bowl of AWS alphabet soup.
2
u/corgtastic Sep 07 '26
I would see if you can get away with either Cloud Run on GCP or Lambda on AWS. You don’t want to spend a lot of time thinking about turning on your interview environment, just talk about how you would migrate it into k8s if you needed to.
Also look at creative ways to decrease the cost of your persistence layer. You only need one postgresql server to host those DBs, so that’s an easy place to start, but maybe you don’t need a DB at all? See what you can do to drive down the runtime costs.
2
u/Historical_Ad4384 Sep 07 '26
If you can do without kubernetes:
Deploy all Node.js services to AWS Lambda at zero cost provided you optimized for cold start charges.
Use aiven free tier for postgres, kafka, redis, grafana.
If you absolutely have to do Kubernetes then spin up a VM on Oracle always free tier.
2
u/roombutter Sep 08 '26
Go for oracle they give a 2vCPU and 8 GB RAM instance in their free tier, if you have a domain then AWS gives you 1000$ of credit via it's founders programs.
For micro services it's worth learning k3s, and build something kubernetes native so one box itself can handle most of it.
2
u/SeaworthinessHour233 DevOps Engineer & Educator Sep 21 '26
Since this is a temporary lab setup that you're spinning up with Terraform and tearing down immediately, you should actually try both approaches - managed K8s and self-managed K8s.
First, deploy it to a managed service like EKS or GKE. The standard control plane fee is $0.10 per hour, but GKE actually provides a $74.40 monthly free tier credit that completely covers the management fee for one zonal cluster. If you run your Terraform, record your demo, and destroy the cluster within an hour or two, your total bill will literally be a few pennies for the compute nodes.
Then, for your second attempt, provision several EC2 or GCP compute instance and deploy a multinode k8s cluster on them yourself.
Doing it this way gives you a massive advantage for your resume: you can speak directly to the tradeoffs between the operational simplicity of managed K8s versus the cost-efficiency of self-hosting. Hiring managers love when engineers can articulate why they would choose one over the other, rather than just showing that they followed a tutorial.
Keeping Postgres and Kafka inside the cluster is perfectly fine for this, as long as you explain that you did it to optimize costs for the demo.
For the routing, you can use ALB. If you tear down within 1-2 hours, that cost will also be negligible ($ ~0.02 per hour)
2
u/t0c Sep 07 '26
As cheaply as possible… spot nodes. Use karpenter to manage them. AWS only, though I did hear of azure also getting support. But I don’t know that cloud.
You could also scale it up only when you want it to run. This way it’s only EKS and nodes when they’re up that you’re paying for.
3
u/[deleted] Sep 07 '26
[removed] — view removed comment