Deploy Trellis Enterprise on Kubernetes Cluster
Deploying Trellis Enterprise using Kubernetes
System Requirements
Software and Hardware
- Minimum Kubernetes v1.29+
- Minimum Machine Requirements
- Hard Disk: At least 256 GB
- Master Node:
- Count: 1; RAM: At least 16 GB; vCores: 2
- Worker Node:
- Count: 4; RAM: At least 16 GB, vCore: 1
- Operating System: Linux (Ubuntu, RedHat, Fedora, Debian or OpenSuse), MacOS 13.x+ or Windows 10.x+
- Software Installed
- Python 3.9.x+
- If Windows, then Docker Desktop with Kubernetes running in Cluster Mode.
- If Linux or MacOS, then native
Docker
andKubernetes
libraries.- ZSH or BASH enabled
- Homebrew (optional)
- Minimum Pods Required: 4
- Internet Connectivity
Package Verifications
Kubernetes
Verify the Kubernetes installation by running the below command
The output should be something like below:
Python
Verify the Python installation by running the below command
The output should be like below:
Installing pip
locally
Alternatively, you can also run the below command to install pip
NOTE
If any of the above steps fail, please do not proceed to the next steps. Contact your Trellis account representative for assistance with verifying your environment.
Deployment
Connect to your Cloud Provider
If you would like us to also connect to your private cloud such as AWS, Azure, or GCP, then add the below in the root directory and save the file as .trellis_env
in your user’s root directory.
If you are using Azure or GCP, then the value of cloud
will be azure
or gcp
respectively.
Connect to your Kubernetes Cluster
If you have already connected to your remote Kubernetes cluster, please skip this section and proceed to the next steps.
Run the below command to establish context with your remote cluster.
Installation
You’ll need your enterprise license key, which your Trellis Account representative will share separately.
Download the Trellis Enterprise Python package and run the commands below individually.
Trellis Logs
All the application logs are saved to the directory where the installer was run. In the above, it will be trellis-enterprise
- If you wish to transfer the logs to another storage, such as AWS - S3, please set up the file
.trellis_env
in your user’s root directory with below. TheAWS_ACCESS_KEY
andAWS_SECRET_ACCESS_KEY
will be the access keys with the permission to push the logs to theS3
directory. The logs will be sent directly from the worker nodes within the cluster.
Windows Only Deployment
If you use Windows, open your preferred editor and copy/paste the script below.
Save the above script as download_trellis.py
and then run the below command to execute it
The above command will download the packages and install Trellis on your Kubernetes cluster. If you are not running as an administrator, you will be prompted to enter the admin password to approve the package access.
Non-Windows Only Deployment
The steps below are only for non-Windows operating systems. If you have a Windows environment, use the preceding section for Windows-only deployment.
Save the above script as download_trellis.py
and then run the below command to execute it
The above command will download the packages and install Trellis on your Kubernetes cluster. If you are not running as an administrator, you will be prompted to enter the admin password to approve the package access.
Verify Deployment
If the installation works, you will receive a Success pop-up message. At the command prompt, you can run the below command to verify your Trellis environment.
The output should confirm the status and display the expiration date based on your enterprise contract.
NOTE
If any of the above steps fail, please do not proceed to the next steps. Contact your Trellis account representative for assistance with verifying your environment.