News for hackers. Stuff that matters.
Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by loxias on Monday November 22, 2021 @03:12PM (#29311066)
I understand "bare-metal" to mean without an operating system. More recently, the definition has confusingly expanded to sometimes include an operating system, but without a hypervisor.

This is a tutorial on installing Ubuntu, then k3s, then other software. What exactly is "bare-metal" about this?? :)

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by outworlder on Monday November 22, 2021 @04:56PM (#29312007)
> What exactly is "bare-metal" about this?? :)

In this context, this means running K8s nodes directly on the hardware.

As opposed to running the nodes as virtual machines. Normally VMs are used in the context of cloud providers but it's not uncommon (with beefier hardware) to run k8s as VMs in datacenters. Deployments on top of OpenStack, Azure Stack or Anthos are common. As is ESXi. It's another abstraction layer, but that gives you easier handling of things like storage and, in some cases, networking.

> More recently, the definition has confusingly expanded to sometimes include an operating system, but without a hypervisor.

That's exactly it - the definition has expanded.

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by topdancing on Monday November 22, 2021 @07:13PM (#29313172)
> I understand "bare-metal" to mean without an operating system.

In your mind, how does a computer system function without an operating system?

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by hnlmorg on Tuesday November 23, 2021 @07:07AM (#29316879)
Bare bones software (in the original sense of the term) interfaces directly with the hardware without abstracting it via an operating system. Much like an operating system would need to do in order to provide that abstraction (albeit you might not need to worry about paging, kernel rings etc with bare bones software).

You see this in plenty of domains: firmware, embedded systems, uEFI, bootloaders, etc.

This used to be the norm too. Old 8-bit personal computers like Commodores didn't run an OS, instead they'd have BASIC run as firmware (though you could get CP/M, GEM and others for a lot of the later generations of 8-bit micros).

You can also get modern software that runs bare metal without an OS. eg this game: https://github.com/adventurerok/Bare-metal-Space-Invaders-Cl...

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by jandrese on Monday November 22, 2021 @10:49PM (#29314396)
Like an embedded system? Where at boot it just jumps to some offset in ROM where your program lives and starts executing. If you want I/O you better bring your own library and/or be willing to set registers.
Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by topdancing on Tuesday November 23, 2021 @08:11AM (#29317355)
Even embedded systems run on an OS, wondering of the GP knows that Ubuntu is running Linux (ie, an OS) under the hood.

And that Kubernetes deployments out there primarily run on Linux.

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by loxias on Wednesday November 24, 2021 @05:44PM (#29336065)
(am I the GP?)

No, not all embedded systems run an OS. Linux is not an OS, it's a kernel. Ubuntu is an OS. Kubernetes is application software that runs on several operating systems, primarily ones based on the Linux kernel.

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by topdancing on Thursday November 25, 2021 @09:28AM (#29341599)
Linux is indeed an OS: https://en.m.wikipedia.org/wiki/Linux

Ubuntu is not an OS, it's a Linux distribution.

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by runnerup on Tuesday November 23, 2021 @01:31PM (#29321323)
> Even embedded systems run on an OS

Many do not. I've seen quite a few ARM processors running without any OS.

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by loxias on Wednesday November 24, 2021 @05:42PM (#29336040)
Simple. It only runs one what you think of as a "program".

I've written for bare metal on several platforms. Operating systems exist for a specific use case: when you want to run potentially multiple programs on the same piece of hardware, over time (not nec. concurrently), and you don't want your software to have to think about how to interface with the hardware. That's what operating systems do. There are plenty of cases when you don't need, or want, an OS.

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by op00to on Monday November 22, 2021 @07:17PM (#29313192)
The term has different definitions based on context.
Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by m0zg on Monday November 22, 2021 @03:36PM (#29311302)
Ubuntu is installed on bare metal, isn't it? :-) But on a more serious note, "bare metal" in the context of K8S means merely that K8S is not pre-installed by a cloud provider for you, and there are no external services (such as storage or load balancing) available out of the box.