[kata-dev] agent <-> proxy protocol

Tao Peng bergwolf at hyper.sh
Mon Apr 30 15:57:33 UTC 2018

On Mon, Apr 30, 2018 at 4:19 AM, Larrew, Jesse <Jesse.Larrew at amd.com> wrote:
> Hi all,
> Does kata-agent still send a READY message to the proxy like cc-agent does?
> Or is the protocol different?
If you need to actively know if agent is up running, there is
health.Check() API to do it.

> Also, would the agent protocol messages be seen on kata.sock in the host, or
> do they use some other channel? (To clarify, I’m not talking about the agent
> logs, but rather the protocol buffer messages between the agent and the
> proxy.)
There are two cases:
1. if vsock is supported, the messages are present on kata.sock
directly. This requires host/guest vsock support and it is still WiP
in kata.
2. if vsock is not supported, kata-proxy is spawned to act like a
broker for agent calls. The messages going through kata.sock is
wrapped over with the yamux protocol
(https://github.com/hashicorp/yamux). If you test kata right now, it
is always the case at the moment. I think this is the "some other
channel" you were asking ;)


bergwolf at hyper.sh

More information about the kata-dev mailing list