mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Updates agnhost README and Dockerfile files
logs-generator used to be configured through env variables, but with the image centralization, that changed to flags. This commit updates the agnhost README to reflect that.
This commit is contained in:
parent
64c69094d3
commit
bad9e15509
@ -22,10 +22,6 @@ CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||
# - iproute2: includes ss used in NodePort tests
|
||||
RUN apk --update add curl netcat-openbsd iproute2 && rm -rf /var/cache/apk/*
|
||||
|
||||
# from logs-generator
|
||||
ENV LOGS_GENERATOR_LINES_TOTAL 1
|
||||
ENV LOGS_GENERATOR_DURATION 1s
|
||||
|
||||
# PORT 8080 needed by: netexec, nettest
|
||||
# PORT 8081 needed by: netexec
|
||||
EXPOSE 8080 8081
|
||||
|
@ -146,10 +146,9 @@ Tool is parametrized with the total number of number that should be generated an
|
||||
the generation process. For example, if you want to create a throughput of 100 lines per second
|
||||
for a minute, you set total number of lines to 6000 and duration to 1 minute.
|
||||
|
||||
Parameters are passed through environment variables. There are no defaults, you should always
|
||||
set up container parameters. Total number of line is parametrized through env variable
|
||||
`LOGS_GENERATOR_LINES_TOTAL` and duration in go format is parametrized through env variable
|
||||
`LOGS_GENERATOR_DURATION`.
|
||||
Parameters are passed through CLI flags. There are no defaults, you should always pass the flags
|
||||
to the container. Total number of line is parametrized through the flag `--log-lines-total`
|
||||
and duration in go format is parametrized through the flag `--run-duration`.
|
||||
|
||||
Inside the container all log lines are written to the stdout.
|
||||
|
||||
@ -166,16 +165,16 @@ Examples:
|
||||
|
||||
```console
|
||||
docker run -i \
|
||||
gcr.io/kubernetes-e2e-test-images/agnhost:1.1 \
|
||||
logs-generator --log-lines-total 10 --run-duration 1
|
||||
gcr.io/kubernetes-e2e-test-images/agnhost:2.1 \
|
||||
logs-generator --log-lines-total 10 --run-duration 1s
|
||||
```
|
||||
|
||||
```console
|
||||
kubectl run logs-generator \
|
||||
--generator=run-pod/v1 \
|
||||
--image=gcr.io/kubernetes-e2e-test-images/agnhost:1.1 \
|
||||
--image=gcr.io/kubernetes-e2e-test-images/agnhost:2.1 \
|
||||
--restart=Never \
|
||||
-- logs-generator -t 10 -d 1
|
||||
-- logs-generator -t 10 -d 1s
|
||||
```
|
||||
|
||||
[]()
|
||||
@ -300,7 +299,7 @@ Usage:
|
||||
```console
|
||||
kubectl run test-agnhost \
|
||||
--generator=run-pod/v1 \
|
||||
--image=gcr.io/kubernetes-e2e-test-images/agnhost:1.1 \
|
||||
--image=gcr.io/kubernetes-e2e-test-images/agnhost:2.1 \
|
||||
--restart=Never \
|
||||
--env "POD_IP=<POD_IP>" \
|
||||
--env "NODE_IP=<NODE_IP>" \
|
||||
@ -355,7 +354,7 @@ Usage:
|
||||
```console
|
||||
kubectl run test-agnhost \
|
||||
--generator=run-pod/v1 \
|
||||
--image=gcr.io/kubernetes-e2e-test-images/agnhost:1.1 \
|
||||
--image=gcr.io/kubernetes-e2e-test-images/agnhost:2.1 \
|
||||
--restart=Never \
|
||||
--env "BIND_ADDRESS=localhost" \
|
||||
--env "BIND_PORT=8080" \
|
||||
|
Loading…
Reference in New Issue
Block a user