Any cluster can be used for the evaluation. However, the benchmark was developed primarily using kind. Thus, kind is recommended for local deployments.
The resources can be deployed and removed manually using kubectl.
However, for more comfort Skaffold is supported to deploy and delete all the benchmark resources.
-
Make sure that all manifests have been generated and placed in the
manifestsfolder -
Create a cluster
-
for kind the following command can be used:
kind create cluster --config=cluster.yaml
-
-
Ensure that kubectl context is set to the target cluster
-
check the current context with:
kubectl config current-context
-
the context can be switched with:
kubectl config use-context <context-name>
-
-
Deploy the benchmark resources by running
skaffold run
To avoid waiting for the resources to stabilize add the
--status-check=falseflag.💡 Note: the resources don't have to be in
runningstate in order for the tools to analyzes them.
-
Delete all deployed benchmark resources by running
skaffold delete
-
Verify that all the generated resources have been removed by viewing all resources with the
kalm-benchmarklabelkubectl get all -A -l app.kubernetes.io/part-of=kalm-benchmark
💡 Note: It may take a while until all resources have been deleted - please by patient.
-
Delete the cluster
-
for kind is following command can be used:
kind delete cluster --name kalm-benchmark
-
Occasionally, it happens that a resource gets stuck in terminating state.
If this happens either forcuflly kill the pod/container/resource or delete and re-create the cluster.
See the following links for more details: