lablup / lablup/backend.ai

Add attach API for kubectl attach support

Open
#7,989 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Motivation

- Enable attaching to the main process of a running container via `kubectl attach`. Depends on the SSH proxy infrastructure.

## Required Features

1. **Attach semantics**
- Connect to main container process stdin/stdout/stderr
- No command specified - attaches to PID 1 or entrypoint
1. **Stream handling**
- Support stdin forwarding (`-i` flag)
- PTY allocation for interactive use (`-t` flag)

## Impact

- **Agent**: Low - Attach stream handling
- **Manager**: Low - Attach endpoint wrapper

## Testing Scenarios

- Attach to running container process
- stdin forwarding to attached process
- Detach without terminating process
- Behavior when main process exits

JIRA Issue: BA-3868

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.