Skip to content

Commit 5b6b038

Browse files
committed
Document KEP-5116
1 parent e20b18f commit 5b6b038

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/en/docs/reference/using-api/api-concepts.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ virtual resource type would be used if that becomes necessary.
127127

128128
## HTTP media types {#alternate-representations-of-resources}
129129

130-
Over HTTP, Kubernetes supports JSON and Protobuf wire encodings.
130+
Over HTTP, Kubernetes supports JSON, YAML, CBOR and Protobuf wire encodings.
131131

132132
By default, Kubernetes returns objects in [JSON serialization](#json-encoding), using the
133133
`application/json` media type. Although JSON is the default, clients may request a response in
@@ -144,6 +144,12 @@ If you request an available media type, the API server returns a response with a
144144
a `406 Not acceptable` error message.
145145
All built-in resource types support the `application/json` media type.
146146

147+
#### Streamed response writing
148+
149+
For JSON and Protobuf encoding Kubernetes supports streaming while writing response.
150+
The feature doesn't impact the output of the response,
151+
but has a huge performance impact on API server performance by avoiding loading whole large responses into memory.
152+
147153
### JSON resource encoding {#json-encoding}
148154

149155
The Kubernetes API defaults to using [JSON](https://www.json.org/json-en.html) for encoding

0 commit comments

Comments
 (0)