@@ -148,7 +148,7 @@ For example:
148
148
149
149
1 . List all of the pods in a given namespace.
150
150
151
- ``` console
151
+ ```
152
152
GET /api/v1/namespaces/test/pods
153
153
---
154
154
200 OK
@@ -204,7 +204,7 @@ to a given `resourceVersion` the client is requesting have already been sent. Th
204
204
document representing the ` BOOKMARK ` event is of the type requested by the request,
205
205
but only includes a ` .metadata.resourceVersion ` field. For example:
206
206
207
- ``` console
207
+ ```
208
208
GET /api/v1/namespaces/test/pods?watch=1&resourceVersion=10245&allowWatchBookmarks=true
209
209
---
210
210
200 OK
@@ -262,7 +262,7 @@ is 10245 and there are two pods: `foo` and `bar`. Then sending the following req
262
262
_ consistent read_ by setting empty resource version using ` resourceVersion= ` ) could result
263
263
in the following sequence of events:
264
264
265
- ``` console
265
+ ```
266
266
GET /api/v1/namespaces/test/pods?watch=1&sendInitialEvents=true&allowWatchBookmarks=true&resourceVersion=&resourceVersionMatch=NotOlderThan
267
267
---
268
268
200 OK
@@ -303,7 +303,7 @@ can be saved and the latency can be reduced.
303
303
To verify if ` APIResponseCompression ` is working, you can send a ** get** or ** list** request to the
304
304
API server with an ` Accept-Encoding ` header, and check the response size and headers. For example:
305
305
306
- ``` console
306
+ ```
307
307
GET /api/v1/pods
308
308
Accept-Encoding: gzip
309
309
---
@@ -356,7 +356,7 @@ of 500 pods at a time, request those chunks as follows:
356
356
357
357
1 . List all of the pods on a cluster, retrieving up to 500 pods each time.
358
358
359
- ``` console
359
+ ```
360
360
GET /api/v1/pods?limit=500
361
361
---
362
362
200 OK
@@ -377,7 +377,7 @@ of 500 pods at a time, request those chunks as follows:
377
377
378
378
2 . Continue the previous call, retrieving the next set of 500 pods.
379
379
380
- ``` console
380
+ ```
381
381
GET /api/v1/pods?limit=500&continue=ENCODED_CONTINUE_TOKEN
382
382
---
383
383
200 OK
@@ -398,7 +398,7 @@ of 500 pods at a time, request those chunks as follows:
398
398
399
399
3 . Continue the previous call, retrieving the last 253 pods.
400
400
401
- ``` console
401
+ ```
402
402
GET /api/v1/pods?limit=500&continue=ENCODED_CONTINUE_TOKEN_2
403
403
---
404
404
200 OK
@@ -542,7 +542,7 @@ type.
542
542
543
543
For example, list all of the pods on a cluster in the Table format.
544
544
545
- ` ` ` console
545
+ ```
546
546
GET /api/v1/pods
547
547
Accept: application/json;as=Table;g=meta.k8s.io;v=v1
548
548
---
@@ -563,7 +563,7 @@ For API resource types that do not have a custom Table definition known to the c
563
563
plane, the API server returns a default Table response that consists of the resource's
564
564
`name` and `creationTimestamp` fields.
565
565
566
- ` ` ` console
566
+ ```
567
567
GET /apis/crd.example.com/v1alpha1/namespaces/default/resources
568
568
---
569
569
200 OK
@@ -598,7 +598,7 @@ uses the Table information and must work against all resource types, including
598
598
extensions, you should make requests that specify multiple content types in the
599
599
`Accept` header. For example:
600
600
601
- ` ` ` console
601
+ ```
602
602
Accept: application/json;as=Table;g=meta.k8s.io;v=v1, application/json
603
603
```
604
604
@@ -626,7 +626,7 @@ For example:
626
626
627
627
1. List all of the pods on a cluster in Protobuf format.
628
628
629
- ` ` ` console
629
+ ```
630
630
GET /api/v1/pods
631
631
Accept: application/vnd.kubernetes.protobuf
632
632
---
@@ -639,7 +639,7 @@ For example:
639
639
1. Create a pod by sending Protobuf encoded data to the server, but request a response
640
640
in JSON.
641
641
642
- ` ` ` console
642
+ ```
643
643
POST /api/v1/namespaces/test/pods
644
644
Content-Type: application/vnd.kubernetes.protobuf
645
645
Accept: application/json
@@ -664,7 +664,7 @@ As a client, if you might need to work with extension types you should specify m
664
664
content types in the request `Accept` header to support fallback to JSON.
665
665
For example:
666
666
667
- ` ` ` console
667
+ ```
668
668
Accept: application/vnd.kubernetes.protobuf, application/json
669
669
```
670
670
@@ -677,7 +677,7 @@ describes the encoding and type of the underlying object and then contains the o
677
677
678
678
The wrapper format is:
679
679
680
- ` ` ` console
680
+ ```
681
681
A four byte magic number prefix:
682
682
Bytes 0-3: "k8s\x00" [ 0x6b, 0x38, 0x73, 0x00]
683
683
@@ -895,7 +895,7 @@ effects on any request marked as dry runs.
895
895
896
896
Here is an example dry-run request that uses ` ?dryRun=All ` :
897
897
898
- ` ` ` console
898
+ ```
899
899
POST /api/v1/namespaces/test/pods?dryRun=All
900
900
Content-Type: application/json
901
901
Accept: application/json
0 commit comments