Setting Up Evaluators for a Kubernetes Environment

When deploying the Autoscaling Service to Kubernetes, you must create an image with the rep-evaluator executable and solver application executables. This image should be used when configuring the autoscaler's available applications.

  1. On the Ansys Customer Portal site, go to the Downloads: Platform Components page.

    (To navigate to this page on the Ansys Customer Portal site, select Downloads > Current Release, then select Platform Components in the navigation pane.)

  2. Download the applicable file:

    OSSelect ProductFile Downloaded
    Rocky Linux 8.10 for Ansys by CIQ, CentOS 7hps-evaluator (Centos7)rep-evaluator-centos7.tgz
    CentOS 8 or later, Ubuntu (versions other than 20.04)hps-evaluator (default)rep-evaluator-default.tgz
    Ubuntu 20.04hps-evaluator (unbuntu20_04)rep-evaluator-ubuntu20_04.tgz
  3. Use the gunzip command to unpack the tgz file.

    gunzip <filename>.tgz
  4. Use tar -xvf to extract the contents of the tar file.

    tar -xvf <filename>.tar
  5. Change (cd) to the extracted folder. This folder contains the rep-evaluator executable.

  6. Go the Ansys Customer Portal and download the executable file of the solver application.

  7. Create an image and copy the rep-evaluator executable and solver application executable.

  8. Ensure that the image entrypoint.sh file contains the following instructions:

    ANSYS_EVAL_LOGIN=${ANSYS_EVAL_LOGIN:-1}
    ANSYS_EVAL_BASE_OPTS="--plugin-path=<< plugin path >>"
    ANSYS_EVAL_LOGIN_OPTS=""
    
    if [[ $ANSYS_EVAL_LOGIN -ge 1 ]]; then
        echo "Logging in ..."
        << path to rep-evaluator executable >> $ANSYS_EVAL_BASE_OPTS login $ANSYS_EVAL_LOGIN_OPTS
    fi
    
    echo "Starting evaluator ..."
    echo "Options: $ANSYS_EVAL_BASE_OPTS $*"
     << path to rep-evaluator executable >> $ANSYS_EVAL_BASE_OPTS $*