nodepath

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package nodepath holds the node-level paths more than one component needs: the host directory atelet and the ateoms both mount, the sockets and netns they find each other by, the per-actor parent directory, and where atelet stages runtime binaries.

Index

Constants

View Source
const BasePath = "/var/lib/ate"

BasePath is the root shared folder on the host filesystem, mounted at the same path into the atelet and ateom containers.

Variables

View Source
var ActorsDir = filepath.Join(BasePath, "actors")

ActorsDir is the parent of the per-actor directories atelet prepares.

View Source
var AteomSupportSocket = filepath.Join(BasePath, "ateom-support.sock")

AteomSupportSocket is the node-local atelet socket used by atunnel to request credentials for the worker's current actor assignment.

View Source
var StaticFilesDir = filepath.Join(BasePath, "static-files")

StaticFilesDir holds things like runsc binaries.

Functions

func ActorNetNSName

func ActorNetNSName(actorUID string) string

ActorNetNSName names an actor's sandbox network namespace.

func ActorNetNSPath

func ActorNetNSPath(actorUID string) string

ActorNetNSPath is the mount path of the actor's named namespace.

func AteletOTLPSocketPath

func AteletOTLPSocketPath() string

AteletOTLPSocketPath is the node-scoped unix socket atelet serves the OTLP relay on (see internal/otlprelay). It is node-scoped rather than per-pod because every ateom on the node pushes into the same relay: atelet is a DaemonSet, so one socket collapses N per-pod collector connections into one per-node connection.

It sits directly under BasePath, which is the host directory already mounted at the same path into atelet and into every ateom pod, so no new volume is needed for ateom to reach it. Note that BasePath is mounted writable (workerpool_apply.go) and shared with AteomSupportSocket and the image cache, so a worker pod can unlink or replace this socket. Confining atelet-owned sockets to a subdirectory mounted read-only would be an improvement, but it is a property of the whole BasePath mount rather than of this socket — a read-only subdir needs its own volume and mount, and the pod keeps CAP_SYS_ADMIN. Tracked separately rather than solved here.

func AteomPath

func AteomPath(podUID string) string

func AteomSocketPath

func AteomSocketPath(podUID string) string

func AteomsDir

func AteomsDir() string

AteomsDir is the parent of every per-ateom directory. Each ateom creates AteomPath(podUID) under it when it boots, so listing this directory is how a scraper with no prior knowledge discovers the node's ateoms.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL