Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Attach: Tracking issue #8

Closed
2 of 7 tasks
euank opened this issue Sep 9, 2016 · 7 comments
Closed
2 of 7 tasks

Attach: Tracking issue #8

euank opened this issue Sep 9, 2016 · 7 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Milestone

Comments

@euank
Copy link
Contributor

euank commented Sep 9, 2016

Attach is one of the larger unknowns in this integration. The work that needs to be done here is dependent on rkt providing such a feature, and significant work remains Kubernetes side for the final "CRI" integration to happen.

It's a complete unknown on the rkt side, and an "known-ish" on the Kubernetes side currently.

Relevant issues:
rkt/rkt#1799
kubernetes/kubernetes#29579

We should split out an additional implementation issue or turn this into one once the above two issues are resolved.

Based on the current lay of things, I think the work will split up roughly as the following:

  • rkt: Implement the needed features for attach to function at all
  • CRI: Commit to "option 3" from their issue, effectively implementing attach via an exec'd container
  • CRI: Provide an interface for "create an attach-helper container and give me back a url"
  • CRI-runtimes-shared-code: Create a library which all runtimes can share that creates the expected api/endpoint/auth for api-service to connect to, and requires a small number of stub methods to be implemented (namely 'attach', 'exec')
  • rktlet: Provide the implementation for those stubs using rkt
  • rktlet: Package and ship the above implementation as a container
  • rktlet: Implement the CRI method by translating it into running our specific helper container
@lucab
Copy link
Contributor

lucab commented Sep 13, 2016

Regarding the first point (rkt implementation), a tentative plan come up from the discussion at rkt/rkt#1799 (comment). Low-level implementation of a per-container ttymux service in progress.

@lucab
Copy link
Contributor

lucab commented Sep 19, 2016

I have a working ttymux POC but it looks like kubernetes requirements are more complex than that and also require separate stdin/stdout/stderr handling, see rkt/rkt#1799 (comment). For rkt, this means that systemd needs to support exposing each single stream instead of tty content. I just submitted systemd/systemd#4179 to systemd for that and if accepted I can proceed with wiring in support for it.

@euank euank mentioned this issue Oct 28, 2016
5 tasks
@alban
Copy link
Contributor

alban commented Jun 28, 2017

rkt has now an "attach" command, enabled with RKT_EXPERIMENT_ATTACH=true
https://github.com/rkt/rkt/blob/master/Documentation/subcommands/attach.md

@iaguis iaguis added this to the v0.2.0 milestone Nov 15, 2017
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 22, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 22, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

7 participants