Skip to content

Commit

Permalink
Update GMC manifest changes
Browse files Browse the repository at this point in the history
Signed-off-by: Lianhao Lu <[email protected]>
  • Loading branch information
lianhao committed Nov 15, 2024
1 parent 823ce22 commit 298b24a
Show file tree
Hide file tree
Showing 35 changed files with 4,315 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
files: (.*\.(py|rst|cmake|yaml|yml|json|ts|js|html|svelte|sh))$
exclude: (microservices-connector/config/manifests/.*\.yaml)$

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: (.*\.(py|yaml|yml|sh))$
exclude: (microservices-connector/config/manifests/.*\.yaml)$
args:
[
--license-filepath=.github/license_template.txt,
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/common/gpt-sovits/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ tolerations: []
affinity: {}

global:
gpt-sovits_proxy: ""
gpt-sovitss_proxy: ""
http_proxy: ""
https_proxy: ""
no_proxy: ""
2 changes: 1 addition & 1 deletion helm-charts/update_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function generate_yaml {
if [[ "$filename" =~ ^variant_.*-values.yaml ]]; then
ext=$(echo $filename | sed 's/^variant_//' | sed 's/-values.yaml$//')
outputfile="$ext-${chart}.yaml"
releasename=$ext-$chart
releasename=$(echo "${ext}-${chart}" | sed 's/_/-/g')
else
ext=$(echo $filename | sed 's/-values.yaml$//')
outputfile="${chart}_${ext}.yaml"
Expand Down
143 changes: 143 additions & 0 deletions microservices-connector/config/manifests/agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
---
# Source: agent/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: agent-config
labels:
helm.sh/chart: agent-1.0.0
app.kubernetes.io/name: agent
app.kubernetes.io/instance: agent
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
llm_endpoint_url: "http://agent-tgi"
#
model: "meta-llama/Meta-Llama-3.1-70B-Instruct"
RETRIEVAL_TOOL_URL: "http://agent-docretriever:8889/v1/retrievaltool"
CRAG_SERVER: "http://agent-crag:8080"
WORKER_AGENT_URL: "http://agent-worker:9095/v1/chat/completions"
require_human_feedback: "false"
recursion_limit: "15"
llm_engine: "tgi"
strategy: "react_langchain"
max_new_tokens: "4096"
HUGGINGFACEHUB_API_TOKEN: "insert-your-huggingface-token-here"
HF_HOME: "/tmp/.cache/huggingface"
http_proxy: ""
https_proxy: ""
no_proxy: ""
LOGFLAG: "True"
---
# Source: agent/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Service
metadata:
name: agent
labels:
helm.sh/chart: agent-1.0.0
app.kubernetes.io/name: agent
app.kubernetes.io/instance: agent
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 9090
targetPort: 9090
protocol: TCP
name: agent
selector:
app.kubernetes.io/name: agent
app.kubernetes.io/instance: agent
---
# Source: agent/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: apps/v1
kind: Deployment
metadata:
name: agent
labels:
helm.sh/chart: agent-1.0.0
app.kubernetes.io/name: agent
app.kubernetes.io/instance: agent
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: agent
app.kubernetes.io/instance: agent
template:
metadata:
labels:
app.kubernetes.io/name: agent
app.kubernetes.io/instance: agent
spec:
securityContext:
{}
containers:
- name: agent
envFrom:
- configMapRef:
name: agent-config
- configMapRef:
name: extra-env-config
optional: true
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
image: "opea/agent-langchain:latest"
imagePullPolicy: IfNotPresent
ports:
- name: agent
containerPort: 9090
protocol: TCP
volumeMounts:
- mountPath: /tmp
name: tmp
livenessProbe:
failureThreshold: 24
httpGet:
path: v1/health_check
port: agent
initialDelaySeconds: 5
periodSeconds: 5
readinessProbe:
httpGet:
path: v1/health_check
port: agent
initialDelaySeconds: 5
periodSeconds: 5
startupProbe:
failureThreshold: 120
httpGet:
path: v1/health_check
port: agent
initialDelaySeconds: 5
periodSeconds: 5
resources:
{}
volumes:
- name: tmp
emptyDir: {}
---
# Source: agent/templates/servicemonitor.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
Loading

0 comments on commit 298b24a

Please sign in to comment.