Deploy LocalAI and Flowise on AWS EKS
A TypeScript program to deploy a Kubernetes cluster on AWS
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-ts-localai-flowisecd pulumi-examples/aws-ts-localai-flowiseThis example deploys LocalAI and Flowise on an Amazon EKS cluster using Pulumi in TypeScript.
Prerequisites#
If you run Pulumi for the first time, you will be asked to log in. Follow the instructions on the screen to login. You may need to create an account first, don’t worry it is free.
Deploying the example#
-
Create a new stack:
Terminal window pulumi stack init dev -
Set the AWS region to deploy into:
Terminal window pulumi config set aws:region eu-central-1 -
Install dependencies:
Terminal window npm install -
Deploy the infrastructure:
Terminal window pulumi up -
Port forward the Flowise UI. First, retrieve the kubeconfig file:
Terminal window pulumi stack output kubeconfig --show-secrets > kubeconfig.yamlAs the program does not deploy a LoadBalancer, you need to port forward the UI to your local machine:
Terminal window kubectl port-forward svc/flowise-ui 3000:3000
Cleaning up#
Once you’re finished, destroy the resources and remove the stack:
pulumi destroypulumi stack rm