Discover Packages
github.com/wlynch/levias
module
Version:
v0.0.0-...-8568c7b
Opens a new window with list of versions in this module.
Published: Dec 30, 2024
License: Apache-2.0
Opens a new window with license information.
README
README
¶
levias
Proof-of-concept running docker-in-docker without priviledge in Kubernetes.
Currently Pods use privilege: true
in order to talk to the host to attach
containers to the current pod.
Ephemeral containers (stable as of k8s 1.25)
gives us a mechanism to have a similar behavior using k8s API primatives.
Levias provides an alternative
[moby(https://github.com/moby/moby/blob/master/api/README.md)] implementation
that:
Wraps the the buildkit TCP API implementation with OIDC credentials
Implements a server that transforms buildkit API requests to ephemeral
containers.
sequenceDiagram
participant Pod
participant Client as Levias Client
Pod->>Client: docker run
Client->>Client: Add OIDC creds
Client->>Controller: docker run
participant Controller as Levias Controller
Controller->>Controller: Verify OIDC
Controller->>Pod: Attach ephemeral container
Expand ▾
Collapse ▴
Directories
¶
pkg
Click to show internal directories.
Click to hide internal directories.