by mkrishnan · 4y ago · 0 comments
1. Use GKS/EKS/LKE/DKS. dont try to setup kubernetes cluster in your server by yourself.
2. It's very simple to setup deployment, database etc. it will take a week of a decent engineer to setup your application in kubernetes cluster - end to end.
3. LKE/DKS is super cheap compared to Heroku.
4. Use github actions (free) and docher hub ($5 month to build your container images) and its very easy, all you need is a weekend.
5. IMPORTANT: It's foolish to architecture your application to fit into serverless container.
That said, not unreasonable to take advantage of it while it lasts.
(On the other side, Docker Hub is I think a lot more if not completely free if the underlying repo is public? I know I have a few low use ones and don't pay a penny, anyway.)
I suppose my point really is just why suggest paying for image storage intially/before CI, they can both be free.
Now we use quay.io and a self hosted harbor docker registry.
Also why do I need k8s? Beanstalk plus RDS works perfect for my website needs most of the time.
Obviously, the details will vary somewhat based on the web app. A simple static site with occasional HTTP POST/PUT to server will have somewhat different requirements than a streaming media site (like say, Twitch).
In the case of the former, if building in AWS, I’d choose: * Route53 * CloudFront + S3 * API Gateway + Lambda * DynamoDB (or RDS, if necessary) * Terraform + [Terraform Cloud | GitLab | GitHub Actions] * Cognito (if necessary)
A website probably wants the CDN distribution, routing, and caching that Kubernetes doesn’t provide. I mean I think there are some Kubernetes @ Edge services, maybe?, but in general, Kubernetes for a website is somewhat overkill/like bringing a bazooka to a knife fight.
Sounds like an overkill for “a simple static site with occasional HTTP POST/PUT to server”. I’d say, get a VPS for $5/month, run your python server there with local SQLite DB. Maybe put it behind free Cloudflare if you expect HN-frontpage-level traffic.