-
Notifications
You must be signed in to change notification settings - Fork 5
Add Helm examples for EKS #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JPurcell-Braintrust
wants to merge
3
commits into
main
Choose a base branch
from
james/eks-examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+205
−1
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| # Sample values for AWS EKS deployment with a quarantine VPC | ||
|
|
||
| global: | ||
| orgName: "<your Braintrust org name>" | ||
| namespace: "braintrust" | ||
|
|
||
| cloud: "aws" | ||
|
|
||
| objectStorage: | ||
| aws: | ||
| brainstoreBucket: "<your brainstore bucket name>" | ||
| responseBucket: "<your response bucket name>" | ||
| codeBundleBucket: "<your code bundle bucket name>" | ||
|
|
||
| api: | ||
| name: "braintrust-api" | ||
| replicas: 4 | ||
| # Disable in-pod code execution so user-defined functions run in the quarantine VPC. | ||
| allowCodeFunctionExecution: false | ||
| annotations: | ||
| service: | ||
| # Internal NLB via the AWS Load Balancer Controller. | ||
| # If you are using the terraform-aws-braintrust-data-plane EKS CloudFront path, | ||
| # set these so the controller adopts the pre-created internal NLB. | ||
| service.beta.kubernetes.io/aws-load-balancer-scheme: "internal" | ||
| service.beta.kubernetes.io/aws-load-balancer-type: "external" | ||
| service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "instance" | ||
| service.beta.kubernetes.io/aws-load-balancer-security-groups: "<your pre-created NLB security group ID>" | ||
| service.beta.kubernetes.io/aws-load-balancer-name: "<your pre-created NLB name>" | ||
| service: | ||
| type: LoadBalancer | ||
| port: 8000 | ||
| portName: http | ||
| serviceAccount: | ||
| name: "braintrust-api" | ||
| awsRoleArn: "<your Braintrust API IAM role ARN>" | ||
| resources: | ||
| requests: | ||
| cpu: "4" | ||
| memory: "16Gi" | ||
| limits: | ||
| cpu: "8" | ||
| memory: "16Gi" | ||
| extraEnvVars: | ||
| - name: QUARANTINE_INVOKE_ROLE | ||
| value: "<your quarantine invoke role ARN>" | ||
| - name: QUARANTINE_FUNCTION_ROLE | ||
| value: "<your quarantine function role ARN>" | ||
| - name: QUARANTINE_REGION | ||
| value: "<your AWS region>" | ||
| - name: QUARANTINE_PRIVATE_SUBNET_1_ID | ||
| value: "<your quarantine private subnet 1 ID>" | ||
| - name: QUARANTINE_PRIVATE_SUBNET_2_ID | ||
| value: "<your quarantine private subnet 2 ID>" | ||
| - name: QUARANTINE_PRIVATE_SUBNET_3_ID | ||
| value: "<your quarantine private subnet 3 ID>" | ||
| - name: QUARANTINE_PUB_PRIVATE_VPC_DEFAULT_SECURITY_GROUP | ||
| value: "<your quarantine Lambda security group ID>" | ||
| - name: QUARANTINE_PUB_PRIVATE_VPC_ID | ||
| value: "<your quarantine VPC ID>" | ||
| # nodeSelector: | ||
| # topology.kubernetes.io/zone: us-east-1a | ||
|
|
||
| brainstore: | ||
| serviceAccount: | ||
| name: "brainstore" | ||
| awsRoleArn: "<your Brainstore IAM role ARN>" | ||
| reader: | ||
| name: "brainstore-reader" | ||
| replicas: 2 | ||
| service: | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| limits: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| fastreader: | ||
| name: "brainstore-fastreader" | ||
| replicas: 2 | ||
| service: | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| limits: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| writer: | ||
| name: "brainstore-writer" | ||
| replicas: 1 | ||
| service: | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "32" | ||
| memory: "64Gi" | ||
| limits: | ||
| cpu: "32" | ||
| memory: "64Gi" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| # Sample values for AWS EKS deployment without a quarantine VPC | ||
|
|
||
| global: | ||
| orgName: "<your Braintrust org name>" | ||
| namespace: "braintrust" | ||
|
|
||
| cloud: "aws" | ||
|
|
||
| objectStorage: | ||
| aws: | ||
| brainstoreBucket: "<your brainstore bucket name>" | ||
| responseBucket: "<your response bucket name>" | ||
| codeBundleBucket: "<your code bundle bucket name>" | ||
|
|
||
| api: | ||
| name: "braintrust-api" | ||
| annotations: | ||
| service: | ||
| # Internal NLB via the AWS Load Balancer Controller. | ||
| # If you are using the terraform-aws-braintrust-data-plane EKS CloudFront path, | ||
| # set these so the controller adopts the pre-created internal NLB. | ||
| service.beta.kubernetes.io/aws-load-balancer-scheme: "internal" | ||
| service.beta.kubernetes.io/aws-load-balancer-type: "external" | ||
| service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "instance" | ||
| service.beta.kubernetes.io/aws-load-balancer-security-groups: "<your pre-created NLB security group ID>" | ||
| service.beta.kubernetes.io/aws-load-balancer-name: "<your pre-created NLB name>" | ||
| replicas: 4 | ||
| service: | ||
| type: LoadBalancer | ||
| port: 8000 | ||
| portName: http | ||
| serviceAccount: | ||
| name: "braintrust-api" | ||
| awsRoleArn: "<your Braintrust API IAM role ARN>" | ||
| # Keep code execution enabled when not using a quarantine VPC. | ||
| allowCodeFunctionExecution: true | ||
| resources: | ||
| requests: | ||
| cpu: "4" | ||
| memory: "16Gi" | ||
| limits: | ||
| cpu: "8" | ||
| memory: "16Gi" | ||
|
|
||
| brainstore: | ||
| serviceAccount: | ||
| name: "brainstore" | ||
| awsRoleArn: "<your Brainstore IAM role ARN>" | ||
| reader: | ||
| name: "brainstore-reader" | ||
| replicas: 2 | ||
| service: | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| limits: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| fastreader: | ||
| name: "brainstore-fastreader" | ||
| replicas: 2 | ||
| service: | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| limits: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| writer: | ||
| name: "brainstore-writer" | ||
| replicas: 1 | ||
| service: | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "32" | ||
| memory: "64Gi" | ||
| limits: | ||
| cpu: "32" | ||
| memory: "64Gi" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.