Created
April 24, 2018 17:36
-
-
Save egernst/7c6bd3bbf5a0619bc575de8fb92852e9 to your computer and use it in GitHub Desktop.
Kata sequence diagram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Title: Kata Flow | |
| participant CRI | |
| participant CRIO | |
| participant Kata Runtime | |
| participant virtcontainers | |
| participant hypervisor | |
| participant agent | |
| participant shim | |
| participant proxy | |
| # | |
| CRI->CRIO: pod run | |
| CRIO->Kata Runtime: create | |
| Kata Runtime->virtcontainers: CreateSandbox() | |
| virtcontainers->hypervisor: start the VM | |
| virtcontainers->proxy: create proxy | |
| Note left of virtcontainers: sandbox\n ready | |
| #at this point I'd like to make sure we add activate | |
| virtcontainers->agent: create container | |
| CRIO->Kata Runtime: start | |
| Kata Runtime->virtcontainers: StartSandbox() | |
| Note left of virtcontainers: sandbox\n running | |
| # | |
| CRI->CRIO: ctr create | |
| CRIO->Kata Runtime: create | |
| Kata Runtime->virtcontainers: ContainerCreate() | |
| virtcontainers->agent: CreateContainer() | |
| shim->agent: who knows | |
| Note left of virtcontainers: container\n ready | |
| CRI->CRIO: ctr run | |
| CRIO->Kata Runtime: start | |
| Kata Runtime->virtcontainers: StartContainer() | |
| virtcontainers->agent: StartContainer() | |
| Note left of virtcontainers: container\n running | |
| Note over Kata Runtime, virtcontainers, hypervisor, agent, shim, proxy: todo... | |
| # | |
| CRI->CRIO: ctr stop | |
| CRIO->Kata Runtime: kill | |
| Kata Runtime->virtcontainers: KillContainer() | |
| virtcontainers->agent: Kill\n (process terminates) | |
| Note over Kata Runtime, virtcontainers, hypervisor, agent: container no longer running, but what state\n exists on the host system still for the container\n compared to what is in the remove function? | |
| # | |
| CRI->CRIO: ctr remove | |
| # | |
| CRI->CRIO: pod stop | |
| # | |
| CRI->CRIO: pod remove |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment