You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/blog/_posts/2024-05-01-cri-streaming-explained.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ going to become deprecated.
17
17
18
18
In this blog post, I'd like to dive into the functionality and history of three
19
19
extraordinary Remote Procedure Calls (RPCs), which are truly outstanding in
20
-
terms of how they work: **Exec**, **Attach** and **PortForward**.
20
+
terms of how they work: `Exec`, `Attach` and `PortForward`.
21
21
22
22
**Exec** can be used to run dedicated commands within the container and stream
23
23
the output to a client like [kubectl](/docs/reference/kubectl) or
@@ -41,7 +41,7 @@ All RPCs of the CRI either use the [gRPC unary calls](https://grpc.io/docs/what-
41
41
for communication or the [server side streaming](https://grpc.io/docs/what-is-grpc/core-concepts/#server-streaming-rpc)
42
42
feature (only `GetContainerEvents` right now). This means that mainly all RPCs
43
43
retrieve a single client request and have to return a single server response.
44
-
The same applies to **Exec**, **Attach**, and **PortForward**, where [their protocol definition](https://github.com/kubernetes/cri-api/blob/63929b3/pkg/apis/runtime/v1/api.proto#L94-L99)
44
+
The same applies to `Exec`, `Attach`, and `PortForward`, where their [protocol definition](https://github.com/kubernetes/cri-api/blob/63929b3/pkg/apis/runtime/v1/api.proto#L94-L99)
45
45
looks like this:
46
46
47
47
```protobuf
@@ -87,7 +87,7 @@ message PortForwardResponse {
87
87
Why is it implemented like that? Well, [the original design document](https://docs.google.com/document/d/1MreuHzNvkBW6q7o_zehm1CBOBof3shbtMTGtUpjpRmY)
88
88
for those RPCs even predates [Kubernetes Enhancements Proposals (KEPs)](https://github.com/kubernetes/enhancements)
89
89
and was originally outlined back in 2016. The kubelet had a native
90
-
implementation for **Exec**, **Attach**, and **PortForward** before the
90
+
implementation for `Exec`, `Attach`, and `PortForward` before the
91
91
initiative to bring the functionality to the CRI started. Before that,
92
92
everything was bound to [Docker](https://www.docker.com) or the later abandoned
0 commit comments