Skip to content

Commit

Permalink
Add component k8s manifest files
Browse files Browse the repository at this point in the history
Signed-off-by: Lianhao Lu <[email protected]>
  • Loading branch information
lianhao authored and yongfengdu committed Jul 17, 2024
1 parent 6151ac7 commit 68483c5
Show file tree
Hide file tree
Showing 19 changed files with 2,119 additions and 0 deletions.
106 changes: 106 additions & 0 deletions manifests/common/asr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
# Source: asr/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: asr-config
labels:
helm.sh/chart: asr-0.8.0
app.kubernetes.io/name: asr
app.kubernetes.io/instance: asr
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/managed-by: Helm
data:
ASR_ENDPOINT: "http://asr-whisper:7066"
http_proxy: ""
https_proxy: ""
no_proxy: ""
---
# Source: asr/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

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

apiVersion: apps/v1
kind: Deployment
metadata:
name: asr
labels:
helm.sh/chart: asr-0.8.0
app.kubernetes.io/name: asr
app.kubernetes.io/instance: asr
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: asr
app.kubernetes.io/instance: asr
template:
metadata:
labels:
app.kubernetes.io/name: asr
app.kubernetes.io/instance: asr
spec:
securityContext:
{}
containers:
- name: asr
envFrom:
- configMapRef:
name: asr-config
- configMapRef:
name: extra-env-config
optional: true
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
image: "opea/asr:latest"
imagePullPolicy: IfNotPresent
ports:
- name: asr
containerPort: 9099
protocol: TCP
volumeMounts:
- mountPath: /tmp
name: tmp
resources:
{}
volumes:
- name: tmp
emptyDir: {}
113 changes: 113 additions & 0 deletions manifests/common/data-prep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
# Source: data-prep/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: data-prep-config
labels:
helm.sh/chart: data-prep-0.8.0
app.kubernetes.io/name: data-prep
app.kubernetes.io/instance: data-prep
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/managed-by: Helm
data:
TEI_ENDPOINT: "http://data-prep-tei"
REDIS_URL: "redis://data-prep-redis-vector-db:6379"
INDEX_NAME: "rag-redis"
HUGGINGFACEHUB_API_TOKEN: "insert-your-huggingface-token-here"
HF_HOME: "/tmp/.cache/huggingface"
http_proxy: ""
https_proxy: ""
no_proxy: ""
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: "insert-your-langchain-key-here"
LANGCHAIN_PROJECT: "opea-dataprep-service"
---
# Source: data-prep/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

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

apiVersion: apps/v1
kind: Deployment
metadata:
name: data-prep
labels:
helm.sh/chart: data-prep-0.8.0
app.kubernetes.io/name: data-prep
app.kubernetes.io/instance: data-prep
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: data-prep
app.kubernetes.io/instance: data-prep
template:
metadata:
labels:
app.kubernetes.io/name: data-prep
app.kubernetes.io/instance: data-prep
spec:
securityContext:
{}
containers:
- name: data-prep
envFrom:
- configMapRef:
name: data-prep-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/dataprep-redis:latest"
imagePullPolicy: IfNotPresent
ports:
- name: data-prep
containerPort: 6007
protocol: TCP
volumeMounts:
- mountPath: /tmp
name: tmp
resources:
{}
volumes:
- name: tmp
emptyDir: {}
111 changes: 111 additions & 0 deletions manifests/common/docsum-llm-uservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
# Source: llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: docsum-llm-uservice-config
labels:
helm.sh/chart: llm-uservice-0.8.0
app.kubernetes.io/name: llm-uservice
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/managed-by: Helm
data:
TGI_LLM_ENDPOINT: "http://docsum-tgi"
HUGGINGFACEHUB_API_TOKEN: "insert-your-huggingface-token-here"
HF_HOME: "/tmp/.cache/huggingface"
http_proxy: ""
https_proxy: ""
no_proxy: ""
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: insert-your-langchain-key-here
LANGCHAIN_PROJECT: "opea-llm-uservice"
---
# Source: llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

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

apiVersion: apps/v1
kind: Deployment
metadata:
name: docsum-llm-uservice
labels:
helm.sh/chart: llm-uservice-0.8.0
app.kubernetes.io/name: llm-uservice
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: llm-uservice
app.kubernetes.io/instance: docsum
template:
metadata:
labels:
app.kubernetes.io/name: llm-uservice
app.kubernetes.io/instance: docsum
spec:
securityContext:
{}
containers:
- name: docsum
envFrom:
- configMapRef:
name: docsum-llm-uservice-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/llm-docsum-tgi:latest"
imagePullPolicy: IfNotPresent
ports:
- name: llm-uservice
containerPort: 9000
protocol: TCP
volumeMounts:
- mountPath: /tmp
name: tmp
resources:
{}
volumes:
- name: tmp
emptyDir: {}
Loading

0 comments on commit 68483c5

Please sign in to comment.