AWS Deployment

Prerequisites

  1. On a workstation with access to your AWS cloud, install the following tools if you don’t already have them available:

  2. Create a new EKS cluster:

    1. Select Custom Configuration and disable EKS Auto Mode:

    2. Create a new Cluster IAM role with the default settings and select it.

    3. On the next screen, make sure to select the VPC and subnets where you want to install the app

    4. On the add-ons screen (Step 4), add the EBS CSI Driver addon:

    5. Create the cluster, wait for it to finish initializing. Once it is ready, go to the Compute Tab and click Add a Node Group.

    6. Create a new IAM Role for the node group. In addition to the default policies, attach the AmazonEBSCSIDriverPolicy

    7. Choose Amazon Linux 2 as the AMI Type

    8. Select an instance type with at least 16GB of RAM. m6i.xlarge or bigger is a good choice.

    9. Set the Disk Size to 100GiB

    10. Set the Desired Size and Maximum Size to at least 3 nodes

  3. Connect your workstation kubectl to the new EKS cluster. Substitute <eks-cluster-name> with your new EKS cluster in the following:

Violet Helm Chart Installation

  1. Add a new profile containing the Violet AWS Credentials to your workstation. These values are provided by Violet Labs and are specific to your installation:

  1. Create a new file, violet-values.yml containing your AWS credentials and specific application configuration:

Deploying or Updating Version-Locked Violet [OPTIONAL]

If you would like to lock the version of Violet that you are using and not automatically pull the latest version, add the following entry to your violet-values.yml file:

image:
  versionTag: # use correct version tag to lock a version and not always pull latest. Provided by Violet for initial deployment.

Violet changelog (& version tags) can be found here VioletLabs changelog | Productlane

If you are deploying Violet in this environment for the first time, continue to step 3.

If you have already deployed Violet and are just locking the version or updating to a specific version of Violet, enter that versionTag in the violet-values.yml file and then skip to step 8.

  1. Create a new kubernetes namespace for the Violet installation:

  1. Install the nginx ingress controller chart which allows EKS to set up a load balancer to route traffic from the internet to the new Violet deployment:

  1. Install the mezmo logging agent. This streams logs from your cluster to the violet team for troubleshooting and monitoring assistance.

  1. Install the external-secrets chart. This is used to load some customer-specific secrets from AWS into the Violet deployment:

  1. Create a secret that allows Kubernetes to access the Violet Helm Chart repository:

  1. Login to the Helm repository:

  1. Install the Violet Helm Chart:

Note that it may take up to 5 minutes to run the database provisioning scripts. You can check the status of the deployment by looking at the pods:

After installation is complete the helm chart will print our some information and commands including the URL to access your new deployment, how to get the DNS Name of the ingress load balancer that the deployment is served at (for setting up DNS rules) and how to obtain the auto-generated password for the [email protected] account.

Last updated

Was this helpful?