-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lianhao Lu <[email protected]>
- Loading branch information
Showing
35 changed files
with
4,315 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,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 |
Oops, something went wrong.