Readit News logoReadit News
timhaak commented on Docker, Kubernetes, Terraform, and AWS crash course series   blog.gruntwork.io/the-doc... · Posted by u/kiyanwang
rawoke083600 · 3 years ago
Cool thanks will have a look.

Id be more interesting on where kubernetes (redundancy) fits into traditional redundancy ?

Examples:

1. Do i still need gluster/ceph or do i use the longhorn thing ?

2. Db replication? Do i use the usual solutions of master-slaves and clusters or does multiple k-nodes take that over ?

3. Webserver LB with failover ? Do i use LB from hosting vendor, haproxy or does kubernetes have its own thing ??

From what I can tell as a kubernetes-noob the value is: 1) Reproducibility 2) Reliability via redundancy 3) AutoScaling.

All of the abkve has to some degree a previous/current solution , so which do i give up/replace with kubernetes-tool ?

Sorry yes Im a k-noob

timhaak · 3 years ago
1 It depends. For larger scale gluster or ceph. But quiet a bit more work.

Longhorn you can get up and working quickly.

Though if you are on a cloud provider just use their storage system.

2 K8 doesn't magically solve replication unfortunately.

Though there are helm charts that will automatically set up a replicated setup for you.

I still need to solve backups.

Once again if you are on a cloud provide. Just use their Db offering.

3 K8 doesn't have a default out of the box.

The repo shows you how to setup traefik to handle this.

On cloud providers they have normally integrated it with their lb already.

For me the large advantages are reproducibility and no vendor lock in.

Also give redundancy and quiet a bit of automation once set up.

Auto scaling is always tricky.

Lastly if you have the skills it can be far cheaper to run your own in metal.

If you don't the the time most likely would be better spent actually coding.

Depending where you are in the world and the relevant pay scales.

timhaak commented on Docker, Kubernetes, Terraform, and AWS crash course series   blog.gruntwork.io/the-doc... · Posted by u/kiyanwang
vbezhenar · 3 years ago
All you need exists on kubernetes.io.

Start with https://kubernetes.io/docs/tutorials/hello-minikube/ and proceed.

Read reference documentation on the same site whenever you need to dig somewhere.

It's awesome. You don't need any other websites. I was able to build a kubernetes cluster and right now deploying multi-service application and I have had enough technical information on this website alone.

As to answer your questions:

You can start with DB as an ordinary container in a statefulset deployment. It's similar to docker. You configure it with environment variables. Advanced approach is operators, but you don't need those for simple start.

Connection to DB is the same like docker. You use Kubernetes secrets instead of docker secrets and that's about it.

My message assumes that you're proficient with docker. If you're not, I suggest to first learning docker. May be you don't need Kubernetes for your scale at all. And if you do, most docker concepts make sense in Kubernetes anyway.

timhaak · 3 years ago
I found a similar problem.

Most examples failed when then trying to use them together.

Also, jumping into directly K8 can be quite a jump.

I put this together to help SA Php group.

Starts off with just deploying directly on a server.

Then takes you to a full application deployed on K8 with auto SSL and DNS generation.

It needs a bit of a refresh :(

But finally coming out of being a bit over-committed, so should be updating in the next week or two.

Still some bits missing but it should cover all your basics

https://github.com/haakco/deploying-laravel-app

timhaak commented on Ask HN: How to get back hacker's mentality and joy of coding    · Posted by u/epimetheus2
timhaak · 4 years ago
From reading quiet a bit on this the biggest problem is quiet often is only doing things you feel you should be doing.

Our brains need rewards to to be able to motivate us to do hard things.

When you only do the things you feel you should with nothing fun. You effectively are doing the same as punishing yourself every-time you are doing the thing you want to be motivated about.

Eventually your brain will start to fight to not do it.

The trick to get it back is apparently to start finding small things that are fun and easy and to do some unrelated external things to also just give your brain some time off.

Basically you want to follow similar patterns as if you are training an animal

By doing the small things that give you a treat. You are training your brain to want to do more of it.

You also need to spend some time on external things to work. That way the times when you have to work on things that are not rewarding you have something else to counter balance this.

This should not be something computer related if possible.

Also if it can be something where you get more human contact it’s recommended.

I’m talking as someone who is slowly recovering from this as well.

Still lots of work to go

But it definitely does improve. Just takes time.

timhaak commented on Keeping Netflix Reliable Using Prioritized Load Shedding   netflixtechblog.com/keepi... · Posted by u/jakejarvis
bklyn11201 · 5 years ago
Totally anecdotal evidence, but I was in a rural NY house served by DSL for the past 6 months. The DSL has consistent packet loss between 4 and 6%. The only video service that could handle this level of packet loss well was Amazon Prime. Netflix couldn't even load its browse screen until the past two weeks, where something changed, and suddenly Netflix could handle the high packet loss as well as Amazon Prime.

Thank you to the engineers and developers!

timhaak · 5 years ago
Slightly unrelated but does the packet loss happen all the time or when close to maximum of the line.

Used to have similar problems with an ADSL line but found if I limited the line (Both up and down) I could find a magic number where the packet loss went away. (Well most of the time :))

Though it did need to be tuned for different times of they . ie high congestion times need it to be lower.

Though technically it shouldn't be your problem :(

timhaak commented on The Battle over Dyslexia   theguardian.com/news/2020... · Posted by u/oska
bsder · 5 years ago
> I'm a dyslexic, and I was given extra attention is school that significantly helped me.

And I suspect that is probably true for most "dyslexics".

I have a pet suspicion that there is an actual dyslexia but that most diagnoses are simply a manifestation of 2 standard deviations of "everybody's brain is wired slightly differently and some things require more effort."

One of my relatives is really good at mathematical theoretical physics (probably better than I am, and I am no slouch), but doesn't read or write very well. I find it very difficult that someone who manipulates symbols that well has "dyslexia". More probably, he needed to devote more energy to reading but never did because he found it difficult.

Unfortunately, our current education system is not set up to handle any student who is outside one standard deviation of "normal" on any dimension.

timhaak · 5 years ago
Sorry I’m going to disagree with you here.

I was diagnosed with Dyslexia as child but was also always very good with maths.

I remember actually really wanting to be able to read but just not being able to get it.

After being moved to a class which catered for this and with extra help I managed to eventually be able to start reading.

I generally read quiet a bit averaging at least a book a week. From your statement that should mean that the symptoms of dyslexia should be fixed but they aren’t.

I still struggle with writing and spelling. Yes, I have put effort in, but I still struggle.

The best way I can describe it that I'm blind to the errors. With the sentence structures once it's pointed out I can see them sometimes but not before.

My intelligence is on the higher end and I got through an engineer degree, which you don't do if you don't put the effort in.

Thankfully tools like Grammarly are helping. If not for my sake then at least for people who have to read what I write

timhaak commented on Show HN: Open Logos – Free logos for open source projects   openlogos.org/... · Posted by u/arasatasaygin
timhaak · 7 years ago
Really like as well. Have also added to your patreon :) as think we should try and help reward things like this.

u/timhaak

KarmaCake day32June 28, 2015
About
Fullstack developer based in South Africa.

One of the organizers of Johannesburg PHP meetup.

[ my public key: https://keybase.io/timhaakza; my proof: https://keybase.io/timhaakza/sigs/BjBmwmqyAbEpyk_rDG0rrgPYn-Pdx0w-gbiiPrDe8q8 ]

View Original