News for hackers. Stuff that matters.
Re:Saving on egress switching from AWS to Hetzner by jupp0r on Monday January 24, 2022 @10:32PM (#30067591)
This is about levels of abstraction.

You can ask the cloud to deploy a container to Kubernetes. You can rent a VM with Hetzner. You can rent rack space in a data center. You can build your own data center. You can build your own server hardware.

Depending on the scale you operate, you'll draw the line somewhere where it makes sense to you (which may change over time).

Dev teams will still operate best when they can deploy containers to Kubernetes and without having to design their own server hardware. You now need to build abstractions in house. Maybe you can sell these to other people? Congratulations you are now a cloud provider.

Re:Saving on egress switching from AWS to Hetzner by kavalg on Tuesday January 25, 2022 @05:43AM (#30070370)
And with hetzner you can rent bare metal servers as well. It is somewhat equivalent to renting rack space, but they bring the servers, not you. The advantage is that if a server fails, they can provision a new one in less than 1 hour. The disadvantage is that you are probably running on somewhat refurbished hardware that has a higher prob of failing (at least these were the rumors in the past). 5-6 years ago, this was (by far) the most cost effective solution for Hadoop/HDFS deployments. IDK what the status quo is now.

As others have pointed out it is relatively easy to deploy small k3s clusters on Hetzner Cloud.

Re:Saving on egress switching from AWS to Hetzner by hdjjhhvvhga on Tuesday January 25, 2022 @06:40AM (#30070724)
> The advantage is that if a server fails, they can provision a new one in less than 1 hour.

I can confirm that. I've been running a few servers with them and my experience is that the older ones had a failure every 2-3 years. Usually it was a disk, sometimes the power supply. Once 2 of 3 disks failed but I managed to rebuild the array (it was the HDD era so it took several hours), no data needed to be restored from backup.

But since 2018 I had no failures at all. And I'm happy to see their ecosystem grow.

Re:Saving on egress switching from AWS to Hetzner by anonymoushn on Monday January 24, 2022 @11:47PM (#30068132)
> Dev teams will still operate best when they can deploy containers to Kubernetes

Jeez really? We have like, binaries deployed to machines over here.

Re:Saving on egress switching from AWS to Hetzner by hughrr on Tuesday January 25, 2022 @03:00AM (#30069365)
Don’t come here speaking sense against a decade of marketing!

Realistically I wish someone would just write an orchestrator that runs Go processes and nginx and glues it all together.

Re:Saving on egress switching from AWS to Hetzner by kcartlidge on Tuesday January 25, 2022 @02:18PM (#30076614)
> Realistically I wish someone would just write an orchestrator that runs Go processes and nginx and glues it all together.

Not quite what you're asking for but you can get close, on bare metal, with:

- ssh to set up a systemd service, scp to deploy your binary, then ssh again to restart your service

- dokku (containers are optional) with its cli

For the first option, once you've set up nginx on the server you can easily automate the addition of a new systemd service for a new app with a simple shell script. That done, it is a matter of less than a minute to add a new app and even quicker to update and restart an existing one.

For the second option, it is installed with a single bash command and supports Heroku build packs which means for many systems there's virtually (or exactly) no config needed. Just run the cli from within your app folder. If you do want containers they are automatically found and deployed too.

I've done most deployment methods from the simplest (above) through to complete Terraform builds, and once they are automated all that matters is that the method you choose supports your needs. Go for the simplest option that does that.

Re:Saving on egress switching from AWS to Hetzner by forty on Tuesday January 25, 2022 @03:42AM (#30069642)
Can't a container mostly be a Go process?

"Marketing" as you said, made this concept of "container", but I think using the words "process" and "namespaces" is still ok.

Re:Saving on egress switching from AWS to Hetzner by hdjjhhvvhga on Tuesday January 25, 2022 @06:49AM (#30070779)
I don't agree "container" is marketing-speak; you could say it was appropriated, but I was using linux-containers in early 2000s when it was still a kernel patch. We all knew that bare metal offers a lot and our servers are underutilized most of the time, and VMs were considered a heavier option.
Re:Saving on egress switching from AWS to Hetzner by forty on Tuesday January 25, 2022 @12:55PM (#30075258)
I still think using "container" lose the fact that it's just a process with some tweaks :)

I'm not saying "marketing" as to say it was coined by non technical people, but rather that it's a way to "sell" the feature. Like you go see your manager and say "I'm going to containerize the application" vs saying "I'm going to add some isolation settings to the process"

Re:Saving on egress switching from AWS to Hetzner by cyberge99 on Tuesday January 25, 2022 @08:29AM (#30071527)
Consul and nomad would like a word with you.
Re:Saving on egress switching from AWS to Hetzner by hughrr on Tuesday January 25, 2022 @10:05AM (#30072550)
See my post history. No thanks :)

https://news.ycombinator.com/item?id=30020427

Re:Saving on egress switching from AWS to Hetzner by bigbluedots on Tuesday January 25, 2022 @02:14AM (#30069078)
Binaries are so last-century, now everyone's shipping the entire OS!
Re:Saving on egress switching from AWS to Hetzner by jupp0r on Tuesday January 25, 2022 @05:07AM (#30070176)
Containers can contain just a single statically linked binary. Infrastructure doesn’t care.
Re:Saving on egress switching from AWS to Hetzner by krageon on Tuesday January 25, 2022 @06:15AM (#30070562)
They practically never do, nothing that you use or would read about it assumes that you do. That makes this response a little pedantic, even though it is strictly true.
Re:Saving on egress switching from AWS to Hetzner by jupp0r on Tuesday January 25, 2022 @01:36PM (#30075957)
It's actually quite common in the Golang world.
Re:Saving on egress switching from AWS to Hetzner by jupp0r on Tuesday January 25, 2022 @05:11AM (#30070196)
I still remember spending money for an FTP client that could “live edit” Perl CGI scripts on the server.
Re:Saving on egress switching from AWS to Hetzner by bpodgursky on Monday January 24, 2022 @11:55PM (#30068212)
Nobody said you can't operate with old-style VMs and ansible or puppet or whatever, but tbqh yes, you're going to move slower.

It may not be fatal to your business; it's not going to be a top 3 reason you succeed or fail! But it does make a difference.

Re:Saving on egress switching from AWS to Hetzner by funcDropShadow on Tuesday January 25, 2022 @02:54AM (#30069329)
> Nobody said you can't operate with old-style VMs and ansible or puppet or whatever, but tbqh yes, you're going to move slower.

To stay in your metaphor, moving faster is not a guarantee to arrive at your target earlier. As long as everything works fine, using k8s is great. When you have to dig deep to solve a problem, a stack with less layers might be a huge advantage.

Re:Saving on egress switching from AWS to Hetzner by guiriduro on Tuesday January 25, 2022 @03:52AM (#30069710)
Sounds like you moved your complexity from machine virtualization to container orchestration. Doesn't sound like you won anything, least of all agility.
Re:Saving on egress switching from AWS to Hetzner by robrorcroptrer on Tuesday January 25, 2022 @03:20AM (#30069498)
Is everything about to move fast? When you read a book, is it a race to get to the last page? When you sing a song, is the goal to get to the last word as soon as possible?
Re:Saving on egress switching from AWS to Hetzner by krageon on Tuesday January 25, 2022 @06:17AM (#30070568)
If you'd do it for an employer, the answer to all these questions is yes.
Re:Saving on egress switching from AWS to Hetzner by killingtime74 on Tuesday January 25, 2022 @12:24AM (#30068439)
I deploy Kubernetes to Hetzner with https://github.com/vitobotta/hetzner-k3s