- Minimum 3-node Kubernetes cluster
- Portworx installed on the Kubernetes cluster
- Torpedo currently requires root username/password to access the physical nodes.
To run torpedo with ssh node driver run the following script:
$ TORPEDO_SSH_PASSWORD=[your_root_password] deployments/deploy-ssh.sh
To run torpedo under AWS environment with aws node driver run the following script:
$ deployments/deploy-aws.sh
Make sure you change image: portworx/torpedo:latest
to your torpedo docker image.
The above command starts Torpedo by deploying a k8s Pod
in your kubernetes cluster. It also specified Portworx (pxd
) as the volume driver and ssh
as the node driver to.
You can look at status of torpedo by viewing logs using: kubectl logs -f torpedo
First expose KUBECONFIG to torpedo can talk to the k8s API.
export KUBECONFIG=<location_of_k8s_cluster_kubeconfig_file>
To run all tests: ginkgo -v bin/*.test -- -spec-dir `pwd`/drivers/scheduler/k8s/specs
To run just the basic tests: ginkgo -v bin/basic.test -- -spec-dir `pwd`/drivers/scheduler/k8s/specs
To run just the reboot tests: ginkgo -v bin/reboot.test -- -spec-dir `pwd`/drivers/scheduler/k8s/specs
To dry-run all tests: ginkgo -dryRun -v bin/*.test -- -spec-dir `pwd`/drivers/scheduler/k8s/specs