az account set --subscription <subscription-name>
az aks get-credentials --resource-group k8s-resource-group --name dev
Merged "dev" as current context in /Users/mendon.kissling/.kube/config
Connect to your EKS cluster:
aws eks update-kubeconfig --region="us-east-2" --name="langstream-cluster"
Added new context arn:aws:eks:us-east-2:423019603865:cluster/langstream-cluster to /Users/mendon.kissling/.kube/config
Create a minikube cluster:
minikube start cpu="4"
Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Add the LangStream chart repo to your Helm installation and update it to the latest version:
NAME: langstream
LAST DEPLOYED: Tue Nov 7 11:38:05 2023
NAMESPACE: langstream
STATUS: deployed
REVISION: 1
TEST SUITE: None
In your Kubernetes cluster, you should see four new pods deploy in the langstream namespace. For more configuration options, see the Helm charts documentation.
You can instead open the control plane and API gateway ports in your Helm chart.
This example uses traefik for ingress.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: control-plane
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: langstream.yourdomain.local # Replace with your actual domain or host
http:
paths:
backend:
service:
name: langstream-control-plane
port:
number: 8090
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: api-gateway
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: ws.langstream.yourdomain.local # Replace with your actual domain or host
http:
paths:
backend:
service:
name: langstream-api-gateway
port:
number: 8091
Deploy sample application
Run a sample application to test your new environment. For more on building LangStream applications, see Set up your development environment.
langstream apps deploy test -app sample-app/application -s sample-app/secrets.yaml -i sample-app/instance.yaml
packaging app: /Users/mendon.kissling/Documents/GitHub/LS Application/sample-app/application
app packaged
deploying application: test (1 KB)
application test deployed
To monitor deployment from the CLI, use langstream apps get <app-name>.
langstream-app-setup and langstream-runtime-deployer pods will deploy in the langstream-default namespace in your Kubernetes cluster. When these pods reach a Completed state, your application pod(s) will deploy.
For integrating LangStream and your remote cluster into VSCode workflows, Install the VSCode extension and use the provided starter applications & agent snippets.