Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Runtime Core (Spawn, Pods, Containers, Instances, VMs, and Cells) #73

Merged
merged 17 commits into from Oct 23, 2022

Conversation

krisnova
Copy link
Contributor

@krisnova krisnova commented Oct 22, 2022

Introduce the concept of Pods, Instances, Cells, Virtual Machines, Executables, and Containers to Aurae.

This calls out the Core service in the Runtime subsystem.

  rpc RunExecutable(Executable) returns (ExecutableStatus) {}
  rpc RunPod(Pod) returns (PodStatus) {}
  rpc Spawn(SpawnRequest) returns (SpawnResponse) {}
  rpc RunVirtualMachine(VirtualMachine) returns (VirtualMachineStatus) {}
  rpc RunCell(Cell) returns (CellStatus) {}

What is an "Aurae Pod"?

In order to play as nicely as possible with Kubernetes and the community we make the assumption that most users of Aurae will try to "run pods".

In order to introduce an added layer of security, and make the secure path the easy path we make Aurae pods behave like normal Kubernetes pods, but create a more secure and elaborate runtime isolation zone.

An Aurae pod is a set of containers (called a Cell in Aurae) running in a unique cgroup. This cell runs inside of a nested Aurae virtual instance that is created using the Spawn() RPC.

First Aurae spawns a new virtual instance of itself, and inherits properties from the parent. Then a cell of containers is established in the newly created nested Aurae instance.

What about the Kubelet? Will it be a drop in replacement?

In short, no. Aurae will not be a drop-in replacement for the kubelet. However we can build and support adapter patterns, shims, and translation services later if necessary.

The rational to keep the pod nomenclature is as follows:

If we intend to support the Kubernetes control plane (which I believe we should) we will need to play as nice as possible with the API server. While I don't believe Aurae itself should be a drop in replacement for the Kubelet. There is nothing wrong with building a lightweight service in the future to spoof the Kubelet the same way the virtual kubelet has.

Kubelet Documentation To Consider while developing.

In an effort to bring light to the Kubelet documentation here are some notes from my years of hacking on Kube.

Signed-off-by: Kris Nóva kris@nivenly.com

Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
@krisnova krisnova changed the title Introduce the concept of a Pod Introduce Runtime.RunP() for Pods (Youki) Oct 22, 2022
@krisnova krisnova changed the title Introduce Runtime.RunP() for Pods (Youki) WIP Introduce Runtime.RunP() for Pods (Youki) Oct 22, 2022
@krisnova krisnova changed the title WIP Introduce Runtime.RunP() for Pods (Youki) WIP "The Pod PR" Oct 22, 2022
@krisnova krisnova changed the title WIP "The Pod PR" WIP The Pod PR Oct 22, 2022
@krisnova krisnova changed the title WIP The Pod PR WIP "The Pod" PR Oct 22, 2022
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
@krisnova krisnova changed the title WIP "The Pod" PR Introduce Runtime Core (Spawn, Pods, Containers, Instances, VMs, and Cells) Oct 23, 2022
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Kris Nóva <kris@nivenly.com>
@krisnova krisnova merged commit 4ecdebc into main Oct 23, 2022
@krisnova krisnova deleted the pods branch October 24, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants