Code, instructions and results for scalability and performance tests on the Rancher product family
Go to file
Silvio Moioli 4441a29c56
Adapt terraform main files
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2023-05-05 13:48:30 +02:00
bin Bugfix: use correct paths 2023-05-05 13:46:15 +02:00
config initial version of modules 2022-09-23 13:07:21 +02:00
docs add docs/20230503 2023-05-03 12:39:00 +02:00
k6 Add README on how to use k6 recorder 2023-04-26 16:23:58 +02:00
terraform Adapt terraform main files 2023-05-05 13:48:30 +02:00
.gitignore ignore outputs 2023-05-05 13:46:22 +02:00
LICENSE LICENSE year update 2022-09-23 13:29:14 +02:00
README.md README: add tips and troubleshooting instructions 2023-04-26 16:18:31 +02: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

Terraform extended logging

In case Terraform returns an error with little context about what happened, use the following to get more complete debugging output:

export TF_LOG=debug

Tips

Use k3d targeting a remote machine running the Docker daemon

Use the following command to point to a remote Docker host:

export DOCKER_HOST=tcp://remotehost:remoteport

Note that the host has to have TCP socket enabled, in addition or replacing the default Unix socket.

Eg. on SUSE OSs edit the /etc/sysconfig/docker file as root and add or edit the following line:

DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:2375"