Code, instructions and results for scalability and performance tests on the Rancher product family
Go to file
Silvio Moioli bee86a3100
Adapt main.tf
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2023-03-13 12:47:14 +01:00
config initial version of modules 2022-09-23 13:07:21 +02:00
cypress Upgrade to 2.6.9 2022-11-22 09:27:40 +01:00
docs Docu: add 20221215_kine_locality_test 2022-12-16 09:39:11 +01:00
k6 k6: avoid JSON-decoding whole body 2023-01-27 11:49:43 +01:00
terraform Adapt main.tf 2023-03-13 12:47:14 +01:00
util benchmark: take URL from kubeconfig 2023-01-25 11:34:35 +01:00
.gitignore Move all provider definitions into main.tf 2022-12-06 11:29:40 +01:00
LICENSE LICENSE year update 2022-09-23 13:29:14 +02:00
README.md README: add troubleshooting note 2022-12-14 10:51:13 +01:00

README.md

Scalability tests

This repo collects code, instructions and results for scalability tests on the Rancher product family.

Usage

cd terraform
terraform init
terraform apply -auto-approve

npx cypress open --config watchForFileChanges=false

Troubleshooting

Kubernetes cluster unreachable

If you get this error from terraform apply:

│ Error: Kubernetes cluster unreachable: Get "https://upstream.local.gd:6443/version": dial tcp 127.0.0.1:6443: connect: connection refused

SSH tunnels might be broken. Reopen them via:

./config/open-tunnels-to-upstream-*.sh

k3d: hard destroy and recreate

  • Hard destroy everything (if Terraform fails): rm terraform.tfstate ; k3d cluster delete --all ; docker network rm k3d
  • Hard recreate everything from scratch:
rm terraform.tfstate ; k3d cluster delete --all ; docker container ls --format '{{.Names}}' | grep kine | xargs -n1 docker kill ; docker container ls --all --format '{{.Names}}' | grep kine | xargs -n1 docker rm ; docker network ls --format '{{.ID}} {{.Name}}' | grep k3d | awk '{print $1}' | xargs -n1 docker network rm ; terraform init; terraform apply -auto-approve