Skip to content

Run busybox pod as a privileged container#2

Merged
mpfefferle-weka merged 3 commits into
mainfrom
privileged-container
Nov 9, 2023
Merged

Run busybox pod as a privileged container#2
mpfefferle-weka merged 3 commits into
mainfrom
privileged-container

Conversation

@mpfefferle-weka
Copy link
Copy Markdown
Contributor

@mpfefferle-weka mpfefferle-weka commented Nov 9, 2023

This demonstrates two ways to run busybox as a privileged container: a deployment and a daemonset.

The deployment is managed directly by the Operator. It creates a single pod/container and schedules it wherever.

The daemonset is just k8s yaml. I could do this in the Operator, but I haven't yet. Being a daemonset, it should be tied to an underlying workload node. It also mounts the workload node's / path at /mnt/root. Combined with a chroot, this lets us execute host vm commands. Not everything works, but this may be due to VM configuration. I can run ps aux and see host VM processes though (ie containerd, kube*, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant