Sign inSign up

squizzi/testkit-dtr-replicas

By squizzi

Updated over 6 years ago

Image
0

959

squizzi/testkit-dtr-replicas repository overview

Usage

Ensure the $TESTKIT_ROOT and $TESTKIT_SSH_KEYPATH variables are set in your shell rc file.

  1. Fill in the SHELLRC variable with the location of your shell's rc file or file where you keep TESTKIT_* vars, for example:
SHELLRC=/home/squizzi/.zshrc
TESTKIT_BIN=$(which testkit)
  1. Run the container with the following bind mounts:
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \
    -v $TESTKIT_BIN:/usr/local/bin/testkit \
    -v $SHELLRC:/shell.rc \
    -v $HOME/.aws:/root/.aws \
    -v $TESTKIT_SSH_KEYPATH:/root/key.pem \
    -v $TESTKIT_ROOT:/root/.testkit \
    squizzi/testkit-dtr-replicas -e ENV_NAME -r REPLICA_COUNT

usage: docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \
            squizzi/testkit-dtr-replicas -e <environment name> -r <DTR replica count> [-w, --dtr-org]

Replica count should be the number of replicas you wish your cluster to
contain.

Configure DTR replicas on an existing testkit environment

optional arguments:
  -h, --help          show this help message and exit
  --debug             Enable debug logging
  -e ENV_NAME         The name of the testkit environment that has already been deployed, in which to add replicas.
  --dtr-org DTR_ORG   Specify the namespace to use for the DTR image that will be used to join the replicas.
  -r REPLICA_COUNT    The number of replicas the DTR cluster should contain.
  -w, --workers-only  Install DTR replicas on worker nodes only.

Tag summary

Content type

Image

Digest

Size

95.4 MB

Last updated

over 6 years ago

docker pull squizzi/testkit-dtr-replicas