@@ -40,7 +40,7 @@ For example, let's consider the following `pod.yaml` file:
40
40
containers :
41
41
- args :
42
42
- dns-suffix
43
- image : gcr.io/kubernetes-e2e-test-images/agnhost:2.8
43
+ image : gcr.io/kubernetes-e2e-test-images/agnhost:2.9
44
44
name : agnhost
45
45
dnsConfig :
46
46
nameservers :
@@ -290,21 +290,52 @@ Examples:
290
290
291
291
``` console
292
292
docker run -i \
293
- gcr.io/kubernetes-e2e-test-images/agnhost:2.8 \
293
+ gcr.io/kubernetes-e2e-test-images/agnhost:2.9 \
294
294
logs-generator --log-lines-total 10 --run-duration 1s
295
295
```
296
296
297
297
``` console
298
298
kubectl run logs-generator \
299
299
--generator=run-pod/v1 \
300
- --image=gcr.io/kubernetes-e2e-test-images/agnhost:2.8 \
300
+ --image=gcr.io/kubernetes-e2e-test-images/agnhost:2.9 \
301
301
--restart=Never \
302
302
-- logs-generator -t 10 -d 1s
303
303
```
304
304
305
305
[ ![ Analytics] ( https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/test/images/logs-generator/README.md?pixel )] ( )
306
306
307
307
308
+ ### mounttest
309
+
310
+ The ` mounttest ` subcommand can be used to create files with various permissions, read files,
311
+ and output file system type, mode, owner, and permissions for any given file.
312
+
313
+ The subcommand can accept the following flags:
314
+
315
+ - ` fs_type ` : Path to print the FS type for.
316
+ - ` file_mode ` : Path to print the mode bits of.
317
+ - ` file_perm ` : Path to print the perms of.
318
+ - ` file_owner ` : Path to print the owning UID and GID of.
319
+ - ` new_file_0644 ` : Path to write to and read from with perm 0644.
320
+ - ` new_file_0666 ` : Path to write to and read from with perm 0666.
321
+ - ` new_file_0660 ` : Path to write to and read from with perm 0660.
322
+ - ` new_file_0777 ` : Path to write to and read from with perm 0777.
323
+ - ` file_content ` : Path to read the file content from.
324
+ - ` file_content_in_loop ` : Path to read the file content in loop from.
325
+ - ` retry_time ` (default: 180): Retry time during the loop.
326
+ - ` break_on_expected_content ` (default: true): Break out of loop on expected content (use with ` --file_content_in_loop ` flag only).
327
+
328
+ Usage:
329
+
330
+ ``` console
331
+ kubectl exec test-agnhost -- /agnhost mounttest \
332
+ [--fs_type <path>] [--file_mode <path>] [--file_perm <path>] [--file_owner <path>] \
333
+ [--new_file_0644 <path>] [--new_file_0666 <path>] [--new_file_0660 <path>] [--new_file_0777 <path>] \
334
+ [--file_content <path>] [--file_content_in_loop <path>] \
335
+ [--retry_time <seconds>] [--break_on_expected_content <true_or_false>]
336
+ ```
337
+
338
+
308
339
### net
309
340
310
341
The goal of this Go project is to consolidate all low-level
@@ -424,7 +455,7 @@ Usage:
424
455
``` console
425
456
kubectl run test-agnhost \
426
457
--generator=run-pod/v1 \
427
- --image=gcr.io/kubernetes-e2e-test-images/agnhost:2.8 \
458
+ --image=gcr.io/kubernetes-e2e-test-images/agnhost:2.9 \
428
459
--restart=Never \
429
460
--env "POD_IP=<POD_IP>" \
430
461
--env "NODE_IP=<NODE_IP>" \
@@ -479,7 +510,7 @@ Usage:
479
510
``` console
480
511
kubectl run test-agnhost \
481
512
--generator=run-pod/v1 \
482
- --image=gcr.io/kubernetes-e2e-test-images/agnhost:2.8 \
513
+ --image=gcr.io/kubernetes-e2e-test-images/agnhost:2.9 \
483
514
--restart=Never \
484
515
--env "BIND_ADDRESS=localhost" \
485
516
--env "BIND_PORT=8080" \
@@ -517,6 +548,25 @@ Usage:
517
548
[ ![ Analytics] ( https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/test/images/porter/README.md?pixel )] ( )
518
549
519
550
551
+ ### resource-consumer-controller
552
+
553
+ This subcommand starts an HTTP server that spreads requests around resource consumers. The HTTP server has the same endpoints and usage as the one spawned by the `` resource-consumer `` subcommand.
554
+
555
+ The subcommand can accept the following flags:
556
+
557
+ - ` port ` (default: 8080): The port number to listen to.
558
+ - ` consumer-port ` (default: 8080): Port number of consumers.
559
+ - ` consumer-service-name ` (default: ` resource-consumer ` ): Name of service containing resource consumers.
560
+ - ` consumer-service-namespace ` (default: ` default ` ): Namespace of service containing resource consumers.
561
+
562
+ Usage:
563
+
564
+ ``` console
565
+ kubectl exec test-agnhost -- /agnhost resource-consumer-controller \
566
+ [--port <port>] [--consumer-port <port>] [--consumer-service-name <service-name>] [--consumer-service-namespace <namespace>]
567
+ ```
568
+
569
+
520
570
### serve-hostname
521
571
522
572
This is a small util app to serve your hostname on TCP and/or UDP. Useful for testing.
@@ -542,6 +592,21 @@ Usage:
542
592
[ ![ Analytics] ( https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/test/images/serve_hostname/README.md?pixel )] ( )
543
593
544
594
595
+ ### test-webserver
596
+
597
+ Starts a simple HTTP fileserver which serves any file specified in the URL path, if it exists.
598
+
599
+ The subcommand can accept the following flags:
600
+
601
+ - ` port ` (default: ` 80 ` ): The port number to listen to.
602
+
603
+ Usage:
604
+
605
+ ``` console
606
+ kubectl exec test-agnhost -- /agnhost test-webserver [--port <port>]
607
+ ```
608
+
609
+
545
610
### webhook (Kubernetes External Admission Webhook)
546
611
547
612
The subcommand tests MutatingAdmissionWebhook and ValidatingAdmissionWebhook. After deploying
@@ -561,11 +626,11 @@ Usage:
561
626
562
627
## Other tools
563
628
564
- The image contains ` iperf ` .
629
+ The image contains ` iperf ` , ` curl ` , ` dns-tools ` (including ` dig ` ), CoreDNS .
565
630
566
631
567
632
## Image
568
633
569
- The image can be found at ` gcr.io/kubernetes-e2e-test-images/agnhost:2.8 ` for Linux
634
+ The image can be found at ` gcr.io/kubernetes-e2e-test-images/agnhost:2.9 ` for Linux
570
635
containers, and ` e2eteam/agnhost:2.8 ` for Windows containers. In the future, the same
571
636
repository can be used for both OSes.
0 commit comments