Skip to content

Commit

Permalink
feat: update helm values templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Oct 22, 2024
1 parent 3df0fda commit 25f2d6d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ locals {
platform_domain = var.platform_domain
image_pull_secret_name = var.k8s_image_pull_secret_name

openai_endpoint = var.openai_endpoint
openai_frustration_deployment = var.openai_gpt4_deployment_name
openai_endpoint = var.openai_endpoint
openai_gpt4o_deployment = var.openai_gpt4_deployment_name

secret_provider_class_name = local.secret_provider_class_name
secret_provider_class_secret_name = local.secret_provider_class_secret_name
Expand Down
45 changes: 21 additions & 24 deletions templates/helm-values.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,7 @@ ingestionWorker:
volumeAttributes:
secretProviderClass: ${secret_provider_class_name}

topicsClustering:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nebuly.com/accelerator
operator: In
values:
- nvidia-tesla-t4

suggestionsGeneration:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nebuly.com/accelerator
operator: In
values:
- nvidia-tesla-t4

actionsProcessing:
primaryProcessing:
schedule: "0 23 * * *" # Every day at 11:00 PM, cluster's timezone
resources:
requests:
Expand All @@ -186,6 +164,25 @@ actionsProcessing:
key: nvidia.com/gpu
operator: Exists

secondaryProcessing:
schedule: "0 2 * * *" # Every day at 2:00 AM, cluster's timezone

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nebuly.com/accelerator
operator: In
values:
- nvidia-l4

tolerations:
- effect: NoSchedule
key: nvidia.com/gpu
operator: Exists


kafka:
external: false
zookeeper:
Expand Down Expand Up @@ -291,7 +288,7 @@ frontend:

openAi:
enabled: true
frustrationDetectionDeployment: ${openai_frustration_deployment}
gpt4oDeployment: ${openai_gpt4o_deployment}
endpoint: ${openai_endpoint}

existingSecret:
Expand Down

0 comments on commit 25f2d6d

Please sign in to comment.