Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request is to implement
kperf runner run
sub-command.How to build
How to install
The user can install the binary into
/usr/local/bin
by default.The user can change the path by
PREFIX
.# install binaries into /tmp/bin $ PREFIX=/tmp make install
How to build binary into image
Default image name is
localhost:5000/kperf:latest
.The users can use
IMAGE_REPO
andIMAGE_TAG
to change the image name.For instance,
How to push image
Both
IMAGE_REPO
andIMAGE_TAG
also apply toimage-push
recipe.How to run benchmark test?
The profile is defined at
api/types/load_profile.go
. There is an example.$ cat /tmp/xx.yaml version: 1 description: test spec: rate: 100 total: 10 conns: 10 requests: - staleList: version: v1 resource: pods limit: 500 shares: 100 - quorumList: version: v1 resource: pods limit: 1000 shares: 150
Step 2: Prepare cluster
Step 3: Run that load test with kubeconfig.
The
kperf runner run
will use service account if there is no kubeconfig.If you use it in pod, please ensure that service account has permission to access.