dimeslime

u/dimeslime@lemmy.ca
1 posts · 58 comments

Recent posts

Recent comments

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!🌈

on Laos · c/inhabitedbeauty · 1 pts · 224d

Laos was so different to what I imagined when I visited. I just expected more landscapes like northern Thailand, instead these impressively steep mountains lined the roads I travelled.

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.

on xkcd-2347* · c/memes · 3 pts · 260d

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.

Are you running coredns in your cluster? This sounds like a Corefile change but maybe it's just missing a service?

Pods won't have any entries in DNS aside from the pod IP addresses you've found. A Service will be in DNS and should have several entries depending on the namespace you're calling from, eg:

service-a
service-a.namespace
service-a.namespace.svc.cluster.local

I'm on mobile so haven't looked above to see if you've created a service for the pod. A service will have endpoints which are the pod ips and ports (and you can ignore endpoint slices for now)

Edit: I see coredns in there now. I'd check Corefile or the kubelet configs, seems like it can contact DNS because you're getting an NXDOMAIN response at least.

on *Permanently Deleted* · c/news · 45 pts · 1y

Not surprising. There's a part of the Shopify careers site that has a letter you have to acknowledge that says (paraphrased): Care more about the ability to sell than what people sell, and if feel you might disagree with what people sell then this isn't the workplace for you. They really drill that point home on the site and in interviews, not surprising their stance is 'no comment'.

(I didn't get the job)

Absolutely ran into fake CVs and people farming off the interview to 3rd party interview factories. Not at all surprised this was happening. Can't say I ran into North Koreans but a lot of recruitment agencies were passing people on with little to no vetting. You'd interview someone on camera and they'd be a different person once everything was signed. Given how hard it was to correct that they'd still walk away with a few weeks salary, even in your states with at will contracts it's super difficult to let anyone go.

It's a shortcut for experience, but you lose a lot of the tools you get with experience. If I were early in my career I'd be very hesitant relying on it as its a fragile ecosystem right now that might disappear, in the same way that you want to avoid tying your skills to a single companies product. In my workflow it slows me down because the answers I get are often average or wrong, it's never "I'd never thought of doing it that way!" levels of amazing.