Skip to content

Commit

Permalink
Introduce support-ai chart
Browse files Browse the repository at this point in the history
  • Loading branch information
yukariatlas committed Sep 11, 2024
1 parent 97226a1 commit be942e7
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 0 deletions.
23 changes: 23 additions & 0 deletions chart/support-ai/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
24 changes: 24 additions & 0 deletions chart/support-ai/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: support-ai
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
7 changes: 7 additions & 0 deletions chart/support-ai/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: support-ai-config
data:
config.yaml: |
{{- toYaml .Values.configMap | nindent 4 }}
45 changes: 45 additions & 0 deletions chart/support-ai/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: support-ai
spec:
selector:
matchLabels:
app: support-ai
replicas: {{ .Values.replicaCount }}
template:
metadata:
labels:
app: support-ai
spec:
containers:
- name: support-ai-container
image: {{ .Values.container.image }}
{{- if .Values.container.proxy }}
env:
- name: HTTP_PROXY
value: {{ .Values.container.proxy }}
- name: http_proxy
value: {{ .Values.container.proxy }}
- name: HTTPS_PROXY
value: {{ .Values.container.proxy }}
- name: https_proxy
value: {{ .Values.container.proxy }}
- name: NO_PROXY
value: 127.0.0.1
- name: no_proxy
value: 127.0.0.1
{{- end }}
command: ["{{ .Values.container.command }}"]
args: ["--config", "/support-ai-config/config.yaml"]
{{- if .Values.container.port }}
ports:
- containerPort: {{ .Values.container.port }}
{{- end }}
volumeMounts:
- name: config-vol
mountPath: /support-ai-config
volumes:
- name: config-vol
configMap:
name: support-ai-config
14 changes: 14 additions & 0 deletions chart/support-ai/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: support-ai
spec:
type: {{ .Values.service.type }}
selector:
app: support-ai
{{- if .Values.service.port }}
ports:
- protocol: TCP
port: {{ .Values.service.port }}
targetPort: {{ .Values.container.port }}
{{- end }}
31 changes: 31 additions & 0 deletions chart/support-ai/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Default values for support-ai.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

container:
image: chengendu/support-ai:latest
proxy: http://squid.internal:3128
command: api-server
port: 8080

service:
type: NodePort
port: 30300

configMap:
llms:
- name: default_llm
type: remote
url: test
basic_model:
llm: default_llm
datasources:
- type: salesforce
authentication:
username: ""
password: ""
token: ""
llm: default_llm
embeddings: default_llm

0 comments on commit be942e7

Please sign in to comment.