I hate that you hate to write this, but good work doing it. I never understood why people perceive k3s as hard and then write pages of docker compose yaml instead. Admittedly my day job got me a CKA, but running k3s at home is barely a step up from docker compose.
dimeslime
Curious what you would use instead? I can only think of one wrong answer and that's Jsonnet.
Isn't this also something that happens in the rift war books by Raymond E. Feist?
Correct, and since there are multiple instances I'm using a plural form, and fighting autocorrect at the same time.
My current favorite is in ruby with the unless keyword:
tax = 0.00
unless not_taxed(billing)
tax = billing.zipcode.blank? ? estimated_tax_from_ip(account) : billing.tax
tax = (tax.nil? ? 0.00 : tax)
end
To me, anything payments related you want to be really super clear as to what you're doing because the consequences of getting it wrong are your income. Instead we have this abomination of a double negative, several turnaries, and no comments.
But there are alternatives to both CloudFlare and android, and CloudFlare has competitors with free tiers that I think are easier to use (I'm one data point)? The problem is people deciding to use CloudFlare or CloudFlare itself?
I need to show people I work with how little hardware you can use to serve this much traffic. We do around 500/second but our monthly EC2 spend is horrendous for the scale of traffic we get. But rails is what it is...
I think you have it all covered, but are there ways people can contribute with time? I'm mostly k8s focused these days though.
I just see a log? Is it like a captains log?
Used to work in garden/hardware supply company. The best selling product cost $16 for manufacturing and delivery to our warehouse from China. They would sell in [national hardware chain] for $699. It was about a 40% markup in store, the rest of that $699 was eaten up by warehousing, shipping and staffing costs. If you couldn't move that product in a reasonable timeframe then you'd start losing money on warehouse costs.
I figure most items I've purchased are 40% profit, 50% warehouse/shipping/staffing, 10% manufacturing/import.
Yeah for reference I'd probably never run the full open source Kubernetes distribution unless I had to, and that would mean having access to millions of dollars of hardware in a datacenter.
K3s is a lightweight Kuberbetes distribution that implements the full Kuberbetes API (full-ish? Maybe?). It's super easy to run on Linux, I run a 3 node cluster with GPUs at home. Its only real downside is the backend is a single point of failure, but that's ok for me cause it's run from my storage node with all the disks, so if that disappears I have bigger problems.
There are others like microk8s which can handle control plane failures, but it's for that reason that I also dislike it - they wrote their own distributed sqlite instance and it failed on me, a story for another time.
Minikube can run on your desktop, it's also an option.
But if you have docker desktop, you also have a built in Kuberbetes API server too, just have to enable it with one checkbox (not a full API server, but good enough for installing helm charts).
Kind is a docker based Kubernetes server but I think that's in the realm of testing not running. I believe K0s is in this camp too but could be wrong.
At work the daily driver will be one of EKS, GKE, AKS, or whichever cloud providers implementation. They're effectively free and a loss leader because you'll pay for instances anyway (at least on EKS, I'm most familiar with that one).
But if you're interested in learning, start with docker desktops k8s API, or minikube, or k3s if you have a Linux host or raspberry Pi lying around.
πThe more you know!π