Example Code to deploy LocalAI, Flowise, and Pulumi 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-flowisePrerequisites#
How to deploy?#
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.
Step 1 - Clone the repository#
git clone https://github.com/pulumi/examples.gitcd examples/aws-ts-localai-flowiseStep 2 - Install the dependencies#
pulumi installStep 3 - Login to AWS#
aws configureStep 4 - Deploy the infrastructure#
pulumi upStep 5 - Port forward the Flowise UI#
To retrieve the kubeconfig file, you can use the following command:
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:
kubectl port-forward svc/flowise-ui 3000:3000