Skip to content

Commit 06e01e1

Browse files
committed
Add nodeGroupSelector option to LLM UI
1 parent 462da46 commit 06e01e1

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

charts/azimuth-chat/azimuth-ui.schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ controls:
2121
sortOrder:
2222
- /azimuth-llm/huggingface/model
2323
- /azimuth-llm/huggingface/token
24+
- /azimuth-llm/api/nodeGroupSelector
2425
- /azimuth-llm/ui/appSettings/model_instruction
2526
- /azimuth-llm/ui/appSettings/page_title
2627
- /azimuth-llm/api/image/version

charts/azimuth-llm/azimuth-ui.schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ controls:
2121
sortOrder:
2222
- /huggingface/model
2323
- /huggingface/token
24+
- /api/nodeGroupSelector
2425
- /ui/appSettings/model_instruction
2526
- /ui/appSettings/page_title
2627
- /api/image/version

charts/azimuth-llm/templates/api/deployment.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@ spec:
8282
emptyDir:
8383
medium: Memory
8484
sizeLimit: 1Gi
85-
{{- with $.Values.api.nodeSelector }}
8685
nodeSelector:
86+
{{- if .Values.api.nodeGroupSelector }}
87+
azimuth.stackhpc.com/node-group: {{ .Values.api.nodeGroupSelector | quote }}
88+
{{- end }}
89+
{{- with .Values.api.nodeSelector }}
8790
{{- toYaml . | nindent 8 }}
88-
{{- end }}
91+
{{- end }}
8992
{{- with $.Values.api.affinity }}
9093
affinity:
9194
{{- toYaml . | nindent 8 }}

charts/azimuth-llm/values.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
"default": "v0.11.0"
4141
}
4242
}
43+
},
44+
"nodeGroupSelector": {
45+
"type": "string",
46+
"title": "Node group to deploy to",
47+
"description": "The node group to deploy the API backend to. Must match a node group label in the cluster.",
48+
"default": ""
49+
}
4350
}
4451
}
4552
},

charts/azimuth-llm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ api:
104104
# - name: FOO
105105
# value: "bar"
106106
extraEnv: []
107+
# Pod node group selector label lelvalue
108+
nodeGroupSelector: ""
107109
# Pod node selector labels
108110
nodeSelector: {}
109111
# Pod tolerations

0 commit comments

Comments
 (0)