Deploy the TrueFoundry control plane and AI Gateway. See the overview for compute requirements and prerequisites.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation Instructions
Create GCP Storage Bucket
We will need a GCS bucket to store the LLM request logs.
Create GCS bucket
Create GCS bucket
To setup GCP Storage for control plane, follow the steps below:
-
Create a GCP bucket.
- Make sure to add the lifecycle configurations on the bucket to delete multipart upload after 7 days.
- For this go to GCP bucket -> Lifecycle -> Add a rule
- Select
Delete multi-part uploadfor 7 days
-
We also need to add the CORS policy to the GCP bucket. Right now adding the CORS policy to the GCP bucket is not possible through the console so for this, we will use gsutil
- Create a file called
cors.jsonusing the below command
- Create a file called
-
Attach the above CORS policy to the service account by running the following command using gsutils
-
Create a custom IAM role with the following permissions and add to the
serviceaccountcreated above: -
Add the following IAM condition -
resource.name.startsWith('projects/\_/buckets/<bucket name>}')to the above IAM role.
Create Google Cloud SQL for PostgreSQL database
Create a Google Cloud SQL for PostgreSQL database of size
db-custom-1-3840 with storage size of 30GB.In case you want to setup PostgreSQL on Kubernetes in the dev mode, skip this step and set
devMode to true in the values file in the steps below.Create Kubernetes Secrets
We will create two secrets in this step:
- Store the License Key and DB Credentials
- Store the Image Pull Secret
Create Kubernetes Secret for License Key and DB Credentials
Create Kubernetes Secret for License Key and DB Credentials
We need to create a Kubernetes secret containing the licence key and db credentials.Apply the secret to the Kubernetes cluster (Assuming you are installing the control plane in the
If you are using PostgreSQL on Kubernetes in the dev mode, the values will be as follows:DB_HOST: <HELM_RELEASE_NAME>-postgresql.<NAMESPACE>.svc.cluster.local // eg. truefoundry-postgresql.truefoundry.svc.cluster.localDB_NAME: truefoundryDB_USERNAME: postgres # In order to use custom username, please update the same at
postgresql.auth.usernameDB_PASSWORD: randompassword # You can change this to any value here.truefoundry-creds.yaml
truefoundry namespace)Create Kubernetes Secret for Image Pull Secret
Create Kubernetes Secret for Image Pull Secret
We need to create a Image Pull Secret to enable pulling the truefoundry images from the private registry.Apply the secret to the Kubernetes cluster (Assuming you are installing the control plane in the
truefoundry-image-pull-secret.yaml
truefoundry namespace)Create Helm chart Values file
Create a values file as given below and replace the following values:
- Control Plane URL: URL that you will map to the control plane dashboard.
- Tenant Name: Tenant name provided by TrueFoundry team.
- GCP Project ID: GCP project ID provided by TrueFoundry team.
- GCP Storage Bucket Name: Name of the GCS bucket you created in the previous step.
- GCP Service Account Name: Name of the GCP service account you created in the previous step.
truefoundry-values.yaml