Add ui/nginx support in K8S manifest for ChatQnA/CodeGen/CodeTrans/Docsum (#773)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
This commit is contained in:
Lianhao Lu
2024-09-10 16:30:14 +08:00
committed by GitHub
parent aebc23f5ae
commit ba94e0130d
16 changed files with 2076 additions and 368 deletions

View File

@@ -1,4 +1,31 @@
--- ---
# Source: chatqna/charts/chatqna-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: chatqna-chatqna-ui-config
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/chatqna"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/chatqna"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/chatqna"
DOC_BASE_URL: "/v1/chatqna"
BASIC_URL: "/v1/chatqna"
VITE_CODE_GEN_URL: "/v1/chatqna"
VITE_DOC_SUM_URL: "/v1/chatqna"
---
# Source: chatqna/charts/data-prep/templates/configmap.yaml # Source: chatqna/charts/data-prep/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -246,6 +273,92 @@ data:
MAX_INPUT_LENGTH: "1024" MAX_INPUT_LENGTH: "1024"
MAX_TOTAL_TOKENS: "2048" MAX_TOTAL_TOKENS: "2048"
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://chatqna-chatqna-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/chatqna {
proxy_pass http://chatqna:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/get_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/delete_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: chatqna-nginx-config
---
# Source: chatqna/charts/chatqna-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
---
# Source: chatqna/charts/data-prep/templates/service.yaml # Source: chatqna/charts/data-prep/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -525,6 +638,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: chatqna-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
type: NodePort
---
# Source: chatqna/templates/service.yaml # Source: chatqna/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -549,6 +678,60 @@ spec:
selector: selector:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
---
# Source: chatqna/charts/chatqna-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
template:
metadata:
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: chatqna-ui
envFrom:
- configMapRef:
name: chatqna-chatqna-ui-config
securityContext:
{}
image: "opea/chatqna-conversation-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 80
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: chatqna/charts/data-prep/templates/deployment.yaml # Source: chatqna/charts/data-prep/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -1449,17 +1632,20 @@ metadata:
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: chatqna
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
spec: spec:
securityContext: securityContext:
null null
@@ -1495,24 +1681,47 @@ spec:
- name: chatqna - name: chatqna
containerPort: 8888 containerPort: 8888
protocol: TCP protocol: TCP
# startupProbe:
# httpGet:
# host: chatqna-llm-uservice
# port: 9000
# path: /
# initialDelaySeconds: 5
# periodSeconds: 5
# failureThreshold: 120
# livenessProbe:
# httpGet:
# path: /
# port: 8888
# readinessProbe:
# httpGet:
# path: /
# port: 8888
resources: resources:
null null
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-nginx
labels:
helm.sh/chart: chatqna-1.0.0
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: chatqna-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
template:
metadata:
labels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: chatqna-nginx-config
name: nginx-config-volume

View File

@@ -1,4 +1,31 @@
--- ---
# Source: chatqna/charts/chatqna-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: chatqna-chatqna-ui-config
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/chatqna"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/chatqna"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/chatqna"
DOC_BASE_URL: "/v1/chatqna"
BASIC_URL: "/v1/chatqna"
VITE_CODE_GEN_URL: "/v1/chatqna"
VITE_DOC_SUM_URL: "/v1/chatqna"
---
# Source: chatqna/charts/data-prep/templates/configmap.yaml # Source: chatqna/charts/data-prep/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -195,6 +222,92 @@ data:
MAX_INPUT_LENGTH: "1024" MAX_INPUT_LENGTH: "1024"
MAX_TOTAL_TOKENS: "2048" MAX_TOTAL_TOKENS: "2048"
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://chatqna-chatqna-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/chatqna {
proxy_pass http://chatqna:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/get_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/delete_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: chatqna-nginx-config
---
# Source: chatqna/charts/chatqna-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
---
# Source: chatqna/charts/data-prep/templates/service.yaml # Source: chatqna/charts/data-prep/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -424,6 +537,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: chatqna-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
type: NodePort
---
# Source: chatqna/templates/service.yaml # Source: chatqna/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -448,6 +577,60 @@ spec:
selector: selector:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
---
# Source: chatqna/charts/chatqna-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
template:
metadata:
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: chatqna-ui
envFrom:
- configMapRef:
name: chatqna-chatqna-ui-config
securityContext:
{}
image: "opea/chatqna-conversation-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 80
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: chatqna/charts/data-prep/templates/deployment.yaml # Source: chatqna/charts/data-prep/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -1189,17 +1372,20 @@ metadata:
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: chatqna
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
spec: spec:
securityContext: securityContext:
null null
@@ -1235,24 +1421,80 @@ spec:
- name: chatqna - name: chatqna
containerPort: 8888 containerPort: 8888
protocol: TCP protocol: TCP
# startupProbe:
# httpGet:
# host: chatqna-llm-uservice
# port: 9000
# path: /
# initialDelaySeconds: 5
# periodSeconds: 5
# failureThreshold: 120
# livenessProbe:
# httpGet:
# path: /
# port: 8888
# readinessProbe:
# httpGet:
# path: /
# port: 8888
resources: resources:
null null
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-nginx
labels:
helm.sh/chart: chatqna-1.0.0
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: chatqna-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
template:
metadata:
labels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: chatqna-nginx-config
name: nginx-config-volume
---
# Source: chatqna/charts/tei/templates/horizontalPodAutoscaler.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
# Source: chatqna/charts/tei/templates/servicemonitor.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
# Source: chatqna/charts/teirerank/templates/horizontalPodAutoscaler.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
# Source: chatqna/charts/teirerank/templates/servicemonitor.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
# Source: chatqna/charts/tgi/templates/horizontalPorAutoscaler.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
# Source: chatqna/charts/tgi/templates/servicemonitor.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Dashboard for the exposed TGI metrics:
# - https://grafana.com/grafana/dashboards/19831-text-generation-inference-dashboard/
# Metric descriptions:
# - https://github.com/huggingface/text-generation-inference/discussions/1127#discussioncomment-7240527
---
# Source: chatqna/templates/customMetrics.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

View File

@@ -1,4 +1,31 @@
--- ---
# Source: chatqna/charts/chatqna-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: chatqna-chatqna-ui-config
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/chatqna"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/chatqna"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/chatqna"
DOC_BASE_URL: "/v1/chatqna"
BASIC_URL: "/v1/chatqna"
VITE_CODE_GEN_URL: "/v1/chatqna"
VITE_DOC_SUM_URL: "/v1/chatqna"
---
# Source: chatqna/charts/data-prep/templates/configmap.yaml # Source: chatqna/charts/data-prep/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -244,6 +271,92 @@ data:
HF_HOME: "/tmp/.cache/huggingface" HF_HOME: "/tmp/.cache/huggingface"
CUDA_GRAPHS: "0" CUDA_GRAPHS: "0"
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://chatqna-chatqna-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/chatqna {
proxy_pass http://chatqna:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/get_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/delete_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: chatqna-nginx-config
---
# Source: chatqna/charts/chatqna-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
---
# Source: chatqna/charts/data-prep/templates/service.yaml # Source: chatqna/charts/data-prep/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -523,6 +636,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: chatqna-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
type: NodePort
---
# Source: chatqna/templates/service.yaml # Source: chatqna/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -547,6 +676,60 @@ spec:
selector: selector:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
---
# Source: chatqna/charts/chatqna-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
template:
metadata:
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: chatqna-ui
envFrom:
- configMapRef:
name: chatqna-chatqna-ui-config
securityContext:
{}
image: "opea/chatqna-conversation-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 80
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: chatqna/charts/data-prep/templates/deployment.yaml # Source: chatqna/charts/data-prep/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -1444,17 +1627,20 @@ metadata:
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: chatqna
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
spec: spec:
securityContext: securityContext:
null null
@@ -1490,24 +1676,47 @@ spec:
- name: chatqna - name: chatqna
containerPort: 8888 containerPort: 8888
protocol: TCP protocol: TCP
# startupProbe:
# httpGet:
# host: chatqna-llm-uservice
# port: 9000
# path: /
# initialDelaySeconds: 5
# periodSeconds: 5
# failureThreshold: 120
# livenessProbe:
# httpGet:
# path: /
# port: 8888
# readinessProbe:
# httpGet:
# path: /
# port: 8888
resources: resources:
null null
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-nginx
labels:
helm.sh/chart: chatqna-1.0.0
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: chatqna-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
template:
metadata:
labels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: chatqna-nginx-config
name: nginx-config-volume

View File

@@ -1,69 +1,30 @@
--- ---
# Source: chatqna/charts/data-prep/templates/configmap.yaml # Source: chatqna/charts/chatqna-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: chatqna-nginx-config name: chatqna-chatqna-ui-config
labels: labels:
helm.sh/chart: chatqna-nginx-0.8.0 helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-nginx app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna-nginx app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v0.8" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
data: data:
default.conf: | APP_BACKEND_SERVICE_ENDPOINT: "/v1/chatqna"
server { APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
listen 80; CHAT_BASE_URL: "/v1/chatqna"
listen [::]:80; UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
location /home { DELETE_FILE: "/v1/dataprep/delete_file"
root /usr/share/nginx/html; BASE_URL: "/v1/chatqna"
index index.html index.htm; DOC_BASE_URL: "/v1/chatqna"
} BASIC_URL: "/v1/chatqna"
VITE_CODE_GEN_URL: "/v1/chatqna"
location / { VITE_DOC_SUM_URL: "/v1/chatqna"
proxy_pass http://chatqna-ui:5173;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/chatqna {
proxy_pass http://chatqna:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/get_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/delete_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
--- ---
# Source: chatqna/charts/data-prep/templates/configmap.yaml # Source: chatqna/charts/data-prep/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -260,6 +221,92 @@ data:
HF_HOME: "/tmp/.cache/huggingface" HF_HOME: "/tmp/.cache/huggingface"
CUDA_GRAPHS: "0" CUDA_GRAPHS: "0"
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://chatqna-chatqna-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/chatqna {
proxy_pass http://chatqna:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/get_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/dataprep/delete_file {
proxy_pass http://chatqna-data-prep:6007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: chatqna-nginx-config
---
# Source: chatqna/charts/chatqna-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: chatqna-chatqna-ui
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
---
# Source: chatqna/charts/data-prep/templates/service.yaml # Source: chatqna/charts/data-prep/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -489,6 +536,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
--- ---
# Source: chatqna/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: chatqna-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx
type: NodePort
---
# Source: chatqna/templates/service.yaml # Source: chatqna/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -513,31 +576,60 @@ spec:
selector: selector:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
--- ---
# Source: chatqna/templates/service.yaml # Source: chatqna/charts/chatqna-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
apiVersion: v1 apiVersion: apps/v1
kind: Service kind: Deployment
metadata: metadata:
name: chatqna-ui name: chatqna-chatqna-ui
labels: labels:
helm.sh/chart: chatqna-ui-0.8.0 helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna-ui app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v0.8" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
spec: spec:
type: ClusterIP replicas: 1
ports:
- port: 5173
targetPort: 5173
protocol: TCP
name: chatqna-ui
selector: selector:
app.kubernetes.io/name: chatqna-ui matchLabels:
app.kubernetes.io/instance: chatqna-ui app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
template:
metadata:
labels:
helm.sh/chart: chatqna-ui-1.0.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: chatqna-ui
envFrom:
- configMapRef:
name: chatqna-chatqna-ui-config
securityContext:
{}
image: "opea/chatqna-conversation-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 80
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: chatqna/charts/data-prep/templates/deployment.yaml # Source: chatqna/charts/data-prep/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -1005,49 +1097,6 @@ spec:
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-ui
labels:
helm.sh/chart: chatqna-ui-0.8.0
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna-ui
app.kubernetes.io/version: "v0.8"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna-ui
template:
metadata:
annotations:
sidecar.istio.io/rewriteAppHTTPProbers: 'true'
labels:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna-ui
spec:
securityContext:
{}
hostIPC: true
containers:
- name: chatqna-ui
securityContext:
{}
image: "opea/chatqna-ui:latest"
imagePullPolicy: IfNotPresent
args: null
ports:
- name: http
containerPort: 5173
protocol: TCP
---
# Source: chatqna/charts/tei/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@@ -1320,17 +1369,20 @@ metadata:
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: chatqna
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: chatqna app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna app.kubernetes.io/instance: chatqna
app: chatqna
spec: spec:
securityContext: securityContext:
null null
@@ -1366,81 +1418,47 @@ spec:
- name: chatqna - name: chatqna
containerPort: 8888 containerPort: 8888
protocol: TCP protocol: TCP
# startupProbe:
# httpGet:
# host: chatqna-llm-uservice
# port: 9000
# path: /
# initialDelaySeconds: 5
# periodSeconds: 5
# failureThreshold: 120
# livenessProbe:
# httpGet:
# path: /
# port: 8888
# readinessProbe:
# httpGet:
# path: /
# port: 8888
resources: resources:
null null
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
--- ---
# Copyright (C) 2024 Intel Corporation # Source: chatqna/templates/nginx-deployment.yaml
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: chatqna-nginx-deployment name: chatqna-nginx
labels: labels:
helm.sh/chart: chatqna-nginx-0.8.0 helm.sh/chart: chatqna-1.0.0
app.kubernetes.io/name: chatqna-nginx app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna-nginx app.kubernetes.io/instance: chatqna
app.kubernetes.io/version: "v0.8" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: chatqna-nginx
spec: spec:
replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx app: chatqna-nginx
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
app: chatqna-nginx app: chatqna-nginx
spec: spec:
containers: containers:
- name: chatqna-nginx - image: nginx:1.27.1
image: nginx:latest imagePullPolicy: IfNotPresent
ports: name: nginx
- containerPort: 80
volumeMounts: volumeMounts:
- name: nginx-config-volume - mountPath: /etc/nginx/conf.d
mountPath: /etc/nginx/conf.d/default.conf name: nginx-config-volume
subPath: default.conf securityContext: {}
volumes: volumes:
- name: nginx-config-volume - configMap:
configMap: defaultMode: 420
name: chatqna-nginx-config name: chatqna-nginx-config
--- name: nginx-config-volume
kind: Service
apiVersion: v1
metadata:
name: chatqna-nginx-svc
labels:
helm.sh/chart: chatqna-nginx-0.8.0
app.kubernetes.io/name: chatqna-nginx
app.kubernetes.io/instance: chatqna-nginx
app.kubernetes.io/version: "v0.8"
app.kubernetes.io/managed-by: Helm
spec:
selector:
app: chatqna-nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30789
type: NodePort

View File

@@ -1,4 +1,31 @@
--- ---
# Source: codegen/charts/codegen-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: codegen-codegen-ui-config
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/codegen"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/codegen"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/codegen"
DOC_BASE_URL: "/v1/codegen"
BASIC_URL: "/v1/codegen"
VITE_CODE_GEN_URL: "/v1/codegen"
VITE_DOC_SUM_URL: "/v1/codegen"
---
# Source: codegen/charts/llm-uservice/templates/configmap.yaml # Source: codegen/charts/llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -49,6 +76,68 @@ data:
MAX_INPUT_LENGTH: "1024" MAX_INPUT_LENGTH: "1024"
MAX_TOTAL_TOKENS: "2048" MAX_TOTAL_TOKENS: "2048"
--- ---
# Source: codegen/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://codegen-codegen-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/codegen {
proxy_pass http://codegen:7778;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: codegen-nginx-config
---
# Source: codegen/charts/codegen-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: codegen-codegen-ui
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
---
# Source: codegen/charts/llm-uservice/templates/service.yaml # Source: codegen/charts/llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -99,6 +188,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
--- ---
# Source: codegen/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: codegen-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app: codegen-nginx
type: NodePort
---
# Source: codegen/templates/service.yaml # Source: codegen/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -123,6 +228,60 @@ spec:
selector: selector:
app.kubernetes.io/name: codegen app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app: codegen
---
# Source: codegen/charts/codegen-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: codegen-codegen-ui
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
template:
metadata:
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: codegen-ui
envFrom:
- configMapRef:
name: codegen-codegen-ui-config
securityContext:
{}
image: "opea/codegen-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 5173
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: codegen/charts/llm-uservice/templates/deployment.yaml # Source: codegen/charts/llm-uservice/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -299,17 +458,20 @@ metadata:
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: codegen
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: codegen app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app: codegen
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: codegen app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app: codegen
spec: spec:
securityContext: securityContext:
null null
@@ -339,24 +501,47 @@ spec:
- name: codegen - name: codegen
containerPort: 7778 containerPort: 7778
protocol: TCP protocol: TCP
# startupProbe:
# httpGet:
# host: codegen-llm-uservice
# port: 9000
# path: /
# initialDelaySeconds: 5
# periodSeconds: 5
# failureThreshold: 120
# livenessProbe:
# httpGet:
# path: /
# port: 7778
# readinessProbe:
# httpGet:
# path: /
# port: 7778
resources: resources:
null null
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: codegen/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: codegen-nginx
labels:
helm.sh/chart: codegen-1.0.0
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: codegen-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app: codegen-nginx
template:
metadata:
labels:
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app: codegen-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: codegen-nginx-config
name: nginx-config-volume

View File

@@ -1,4 +1,31 @@
--- ---
# Source: codegen/charts/codegen-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: codegen-codegen-ui-config
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/codegen"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/codegen"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/codegen"
DOC_BASE_URL: "/v1/codegen"
BASIC_URL: "/v1/codegen"
VITE_CODE_GEN_URL: "/v1/codegen"
VITE_DOC_SUM_URL: "/v1/codegen"
---
# Source: codegen/charts/llm-uservice/templates/configmap.yaml # Source: codegen/charts/llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -48,6 +75,68 @@ data:
HF_HOME: "/tmp/.cache/huggingface" HF_HOME: "/tmp/.cache/huggingface"
CUDA_GRAPHS: "0" CUDA_GRAPHS: "0"
--- ---
# Source: codegen/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://codegen-codegen-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/codegen {
proxy_pass http://codegen:7778;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: codegen-nginx-config
---
# Source: codegen/charts/codegen-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: codegen-codegen-ui
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
---
# Source: codegen/charts/llm-uservice/templates/service.yaml # Source: codegen/charts/llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -98,6 +187,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
--- ---
# Source: codegen/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: codegen-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app: codegen-nginx
type: NodePort
---
# Source: codegen/templates/service.yaml # Source: codegen/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -122,6 +227,60 @@ spec:
selector: selector:
app.kubernetes.io/name: codegen app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app: codegen
---
# Source: codegen/charts/codegen-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: codegen-codegen-ui
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
template:
metadata:
labels:
helm.sh/chart: codegen-ui-1.0.0
app.kubernetes.io/name: codegen-ui
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: codegen-ui
envFrom:
- configMapRef:
name: codegen-codegen-ui-config
securityContext:
{}
image: "opea/codegen-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 5173
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: codegen/charts/llm-uservice/templates/deployment.yaml # Source: codegen/charts/llm-uservice/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -295,17 +454,20 @@ metadata:
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: codegen
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: codegen app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app: codegen
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: codegen app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen app.kubernetes.io/instance: codegen
app: codegen
spec: spec:
securityContext: securityContext:
null null
@@ -335,24 +497,47 @@ spec:
- name: codegen - name: codegen
containerPort: 7778 containerPort: 7778
protocol: TCP protocol: TCP
# startupProbe:
# httpGet:
# host: codegen-llm-uservice
# port: 9000
# path: /
# initialDelaySeconds: 5
# periodSeconds: 5
# failureThreshold: 120
# livenessProbe:
# httpGet:
# path: /
# port: 7778
# readinessProbe:
# httpGet:
# path: /
# port: 7778
resources: resources:
null null
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: codegen/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: codegen-nginx
labels:
helm.sh/chart: codegen-1.0.0
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: codegen-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app: codegen-nginx
template:
metadata:
labels:
app.kubernetes.io/name: codegen
app.kubernetes.io/instance: codegen
app: codegen-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: codegen-nginx-config
name: nginx-config-volume

View File

@@ -28,7 +28,7 @@ function init_codegen() {
function install_codegen { function install_codegen {
echo "namespace is $NAMESPACE" echo "namespace is $NAMESPACE"
kubectl apply -f . -n $NAMESPACE kubectl apply -f codegen.yaml -n $NAMESPACE
} }
function validate_codegen() { function validate_codegen() {

View File

@@ -28,7 +28,7 @@ function init_codegen() {
function install_codegen { function install_codegen {
echo "namespace is $NAMESPACE" echo "namespace is $NAMESPACE"
kubectl apply -f . -n $NAMESPACE kubectl apply -f codegen.yaml -n $NAMESPACE
} }
function validate_codegen() { function validate_codegen() {

View File

@@ -1,4 +1,31 @@
--- ---
# Source: codetrans/charts/codetrans-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: codetrans-codetrans-ui-config
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/codetrans"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/codetrans"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/codetrans"
DOC_BASE_URL: "/v1/codetrans"
BASIC_URL: "/v1/codetrans"
VITE_CODE_GEN_URL: "/v1/codetrans"
VITE_DOC_SUM_URL: "/v1/codetrans"
---
# Source: codetrans/charts/llm-uservice/templates/configmap.yaml # Source: codetrans/charts/llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -49,6 +76,68 @@ data:
MAX_INPUT_LENGTH: "1024" MAX_INPUT_LENGTH: "1024"
MAX_TOTAL_TOKENS: "2048" MAX_TOTAL_TOKENS: "2048"
--- ---
# Source: codetrans/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://codetrans-codetrans-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/codetrans {
proxy_pass http://codetrans:7777;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: codetrans-nginx-config
---
# Source: codetrans/charts/codetrans-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: codetrans-codetrans-ui
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
---
# Source: codetrans/charts/llm-uservice/templates/service.yaml # Source: codetrans/charts/llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -99,6 +188,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
--- ---
# Source: codetrans/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: codetrans-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app: codetrans-nginx
type: NodePort
---
# Source: codetrans/templates/service.yaml # Source: codetrans/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -123,6 +228,60 @@ spec:
selector: selector:
app.kubernetes.io/name: codetrans app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app: codetrans
---
# Source: codetrans/charts/codetrans-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: codetrans-codetrans-ui
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
template:
metadata:
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: codetrans-ui
envFrom:
- configMapRef:
name: codetrans-codetrans-ui-config
securityContext:
{}
image: "opea/codetrans-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 5173
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: codetrans/charts/llm-uservice/templates/deployment.yaml # Source: codetrans/charts/llm-uservice/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -297,17 +456,20 @@ metadata:
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: codetrans
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: codetrans app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app: codetrans
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: codetrans app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app: codetrans
spec: spec:
securityContext: securityContext:
null null
@@ -343,74 +505,41 @@ spec:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
--- ---
# Copyright (C) 2024 Intel Corporation # Source: codetrans/templates/nginx-deployment.yaml
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: codetrans-nginx-config
data:
default.conf: |
server {
listen 80;
listen [::]:80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /v1/codetrans {
proxy_pass http://codetrans:7777;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
---
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: codetrans-nginx-deployment name: codetrans-nginx
labels:
helm.sh/chart: codetrans-1.0.0
app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: codetrans-nginx
spec: spec:
replicas: 1
selector: selector:
matchLabels: matchLabels:
app: nginx app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app: codetrans-nginx
template: template:
metadata: metadata:
labels: labels:
app: nginx app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app: codetrans-nginx
spec: spec:
containers: containers:
- name: nginx - image: nginx:1.27.1
image: nginx:latest imagePullPolicy: IfNotPresent
ports: name: nginx
- containerPort: 80
volumeMounts: volumeMounts:
- name: nginx-config-volume - mountPath: /etc/nginx/conf.d
mountPath: /etc/nginx/conf.d/default.conf name: nginx-config-volume
subPath: default.conf securityContext: {}
volumes: volumes:
- name: nginx-config-volume - configMap:
configMap: defaultMode: 420
name: codetrans-nginx-config name: codetrans-nginx-config
--- name: nginx-config-volume
kind: Service
apiVersion: v1
metadata:
name: nginx-svc
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30789
type: NodePort

View File

@@ -1,4 +1,31 @@
--- ---
# Source: codetrans/charts/codetrans-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: codetrans-codetrans-ui-config
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/codetrans"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/codetrans"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/codetrans"
DOC_BASE_URL: "/v1/codetrans"
BASIC_URL: "/v1/codetrans"
VITE_CODE_GEN_URL: "/v1/codetrans"
VITE_DOC_SUM_URL: "/v1/codetrans"
---
# Source: codetrans/charts/llm-uservice/templates/configmap.yaml # Source: codetrans/charts/llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -48,6 +75,68 @@ data:
HF_HOME: "/tmp/.cache/huggingface" HF_HOME: "/tmp/.cache/huggingface"
CUDA_GRAPHS: "0" CUDA_GRAPHS: "0"
--- ---
# Source: codetrans/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://codetrans-codetrans-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/codetrans {
proxy_pass http://codetrans:7777;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: codetrans-nginx-config
---
# Source: codetrans/charts/codetrans-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: codetrans-codetrans-ui
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
---
# Source: codetrans/charts/llm-uservice/templates/service.yaml # Source: codetrans/charts/llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -98,6 +187,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
--- ---
# Source: codetrans/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: codetrans-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app: codetrans-nginx
type: NodePort
---
# Source: codetrans/templates/service.yaml # Source: codetrans/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -122,6 +227,60 @@ spec:
selector: selector:
app.kubernetes.io/name: codetrans app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app: codetrans
---
# Source: codetrans/charts/codetrans-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: codetrans-codetrans-ui
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
template:
metadata:
labels:
helm.sh/chart: codetrans-ui-1.0.0
app.kubernetes.io/name: codetrans-ui
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: codetrans-ui
envFrom:
- configMapRef:
name: codetrans-codetrans-ui-config
securityContext:
{}
image: "opea/codetrans-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 5173
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: codetrans/charts/llm-uservice/templates/deployment.yaml # Source: codetrans/charts/llm-uservice/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -295,17 +454,20 @@ metadata:
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: codetrans
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: codetrans app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app: codetrans
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: codetrans app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans app.kubernetes.io/instance: codetrans
app: codetrans
spec: spec:
securityContext: securityContext:
null null
@@ -341,74 +503,41 @@ spec:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
--- ---
# Copyright (C) 2024 Intel Corporation # Source: codetrans/templates/nginx-deployment.yaml
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: codetrans-nginx-config
data:
default.conf: |
server {
listen 80;
listen [::]:80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /v1/codetrans {
proxy_pass http://codetrans:7777;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
---
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: codetrans-nginx-deployment name: codetrans-nginx
labels:
helm.sh/chart: codetrans-1.0.0
app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: codetrans-nginx
spec: spec:
replicas: 1
selector: selector:
matchLabels: matchLabels:
app: nginx app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app: codetrans-nginx
template: template:
metadata: metadata:
labels: labels:
app: nginx app.kubernetes.io/name: codetrans
app.kubernetes.io/instance: codetrans
app: codetrans-nginx
spec: spec:
containers: containers:
- name: nginx - image: nginx:1.27.1
image: nginx:latest imagePullPolicy: IfNotPresent
ports: name: nginx
- containerPort: 80
volumeMounts: volumeMounts:
- name: nginx-config-volume - mountPath: /etc/nginx/conf.d
mountPath: /etc/nginx/conf.d/default.conf name: nginx-config-volume
subPath: default.conf securityContext: {}
volumes: volumes:
- name: nginx-config-volume - configMap:
configMap: defaultMode: 420
name: codetrans-nginx-config name: codetrans-nginx-config
--- name: nginx-config-volume
kind: Service
apiVersion: v1
metadata:
name: nginx-svc
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30789
type: NodePort

View File

@@ -28,7 +28,7 @@ function init_codetrans() {
function install_codetrans { function install_codetrans {
echo "namespace is $NAMESPACE" echo "namespace is $NAMESPACE"
kubectl apply -f . -n $NAMESPACE kubectl apply -f codetrans.yaml -n $NAMESPACE
} }
function validate_codetrans() { function validate_codetrans() {

View File

@@ -28,7 +28,7 @@ function init_codetrans() {
function install_codetrans { function install_codetrans {
echo "namespace is $NAMESPACE" echo "namespace is $NAMESPACE"
kubectl apply -f . -n $NAMESPACE kubectl apply -f codetrans.yaml -n $NAMESPACE
} }
function validate_codetrans() { function validate_codetrans() {

View File

@@ -1,4 +1,31 @@
--- ---
# Source: docsum/charts/docsum-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: docsum-docsum-ui-config
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/docsum"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/docsum"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/docsum"
DOC_BASE_URL: "/v1/docsum"
BASIC_URL: "/v1/docsum"
VITE_CODE_GEN_URL: "/v1/docsum"
VITE_DOC_SUM_URL: "/v1/docsum"
---
# Source: docsum/charts/llm-uservice/templates/configmap.yaml # Source: docsum/charts/llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -49,6 +76,68 @@ data:
MAX_INPUT_LENGTH: "1024" MAX_INPUT_LENGTH: "1024"
MAX_TOTAL_TOKENS: "2048" MAX_TOTAL_TOKENS: "2048"
--- ---
# Source: docsum/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://docsum-docsum-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/docsum {
proxy_pass http://docsum:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: docsum-nginx-config
---
# Source: docsum/charts/docsum-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: docsum-docsum-ui
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
---
# Source: docsum/charts/llm-uservice/templates/service.yaml # Source: docsum/charts/llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -99,6 +188,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
--- ---
# Source: docsum/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: docsum-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app: docsum-nginx
type: NodePort
---
# Source: docsum/templates/service.yaml # Source: docsum/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -123,6 +228,60 @@ spec:
selector: selector:
app.kubernetes.io/name: docsum app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app: docsum
---
# Source: docsum/charts/docsum-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: docsum-docsum-ui
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
template:
metadata:
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: docsum-ui
envFrom:
- configMapRef:
name: docsum-docsum-ui-config
securityContext:
{}
image: "opea/docsum-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 5173
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: docsum/charts/llm-uservice/templates/deployment.yaml # Source: docsum/charts/llm-uservice/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -297,17 +456,20 @@ metadata:
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: docsum
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: docsum app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app: docsum
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: docsum app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app: docsum
spec: spec:
securityContext: securityContext:
null null
@@ -342,3 +504,42 @@ spec:
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: docsum/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: docsum-nginx
labels:
helm.sh/chart: docsum-1.0.0
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: docsum-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app: docsum-nginx
template:
metadata:
labels:
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app: docsum-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: docsum-nginx-config
name: nginx-config-volume

View File

@@ -1,4 +1,31 @@
--- ---
# Source: docsum/charts/docsum-ui/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: docsum-docsum-ui-config
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
APP_BACKEND_SERVICE_ENDPOINT: "/v1/docsum"
APP_DATA_PREP_SERVICE_URL: "/v1/dataprep"
CHAT_BASE_URL: "/v1/docsum"
UPLOAD_FILE_BASE_URL: "/v1/dataprep"
GET_FILE: "/v1/dataprep/get_file"
DELETE_FILE: "/v1/dataprep/delete_file"
BASE_URL: "/v1/docsum"
DOC_BASE_URL: "/v1/docsum"
BASIC_URL: "/v1/docsum"
VITE_CODE_GEN_URL: "/v1/docsum"
VITE_DOC_SUM_URL: "/v1/docsum"
---
# Source: docsum/charts/llm-uservice/templates/configmap.yaml # Source: docsum/charts/llm-uservice/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -48,6 +75,68 @@ data:
HF_HOME: "/tmp/.cache/huggingface" HF_HOME: "/tmp/.cache/huggingface"
CUDA_GRAPHS: "0" CUDA_GRAPHS: "0"
--- ---
# Source: docsum/templates/nginx-deployment.yaml
apiVersion: v1
data:
default.conf: |+
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
server {
listen 80;
listen [::]:80;
location /home {
alias /usr/share/nginx/html/index.html;
}
location / {
proxy_pass http://docsum-docsum-ui:5174;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /v1/docsum {
proxy_pass http://docsum:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
kind: ConfigMap
metadata:
name: docsum-nginx-config
---
# Source: docsum/charts/docsum-ui/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: docsum-docsum-ui
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 5174
targetPort: ui
protocol: TCP
name: ui
selector:
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
---
# Source: docsum/charts/llm-uservice/templates/service.yaml # Source: docsum/charts/llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -98,6 +187,22 @@ spec:
app.kubernetes.io/name: tgi app.kubernetes.io/name: tgi
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
--- ---
# Source: docsum/templates/nginx-deployment.yaml
apiVersion: v1
kind: Service
metadata:
name: docsum-nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app: docsum-nginx
type: NodePort
---
# Source: docsum/templates/service.yaml # Source: docsum/templates/service.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@@ -122,6 +227,60 @@ spec:
selector: selector:
app.kubernetes.io/name: docsum app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app: docsum
---
# Source: docsum/charts/docsum-ui/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: docsum-docsum-ui
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
template:
metadata:
labels:
helm.sh/chart: docsum-ui-1.0.0
app.kubernetes.io/name: docsum-ui
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
securityContext:
{}
containers:
- name: docsum-ui
envFrom:
- configMapRef:
name: docsum-docsum-ui-config
securityContext:
{}
image: "opea/docsum-ui:latest"
imagePullPolicy: IfNotPresent
ports:
- name: ui
containerPort: 5173
protocol: TCP
resources:
{}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
emptyDir: {}
--- ---
# Source: docsum/charts/llm-uservice/templates/deployment.yaml # Source: docsum/charts/llm-uservice/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation # Copyright (C) 2024 Intel Corporation
@@ -295,17 +454,20 @@ metadata:
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0" app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app: docsum
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: docsum app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app: docsum
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: docsum app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum app.kubernetes.io/instance: docsum
app: docsum
spec: spec:
securityContext: securityContext:
null null
@@ -340,3 +502,42 @@ spec:
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
---
# Source: docsum/templates/nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: docsum-nginx
labels:
helm.sh/chart: docsum-1.0.0
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
app: docsum-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app: docsum-nginx
template:
metadata:
labels:
app.kubernetes.io/name: docsum
app.kubernetes.io/instance: docsum
app: docsum-nginx
spec:
containers:
- image: nginx:1.27.1
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config-volume
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: docsum-nginx-config
name: nginx-config-volume

View File

@@ -28,7 +28,7 @@ function init_docsum() {
function install_docsum { function install_docsum {
echo "namespace is $NAMESPACE" echo "namespace is $NAMESPACE"
kubectl apply -f . -n $NAMESPACE kubectl apply -f docsum.yaml -n $NAMESPACE
} }
function validate_docsum() { function validate_docsum() {

View File

@@ -28,7 +28,7 @@ function init_docsum() {
function install_docsum { function install_docsum {
echo "namespace is $NAMESPACE" echo "namespace is $NAMESPACE"
kubectl apply -f . -n $NAMESPACE kubectl apply -f docsum.yaml -n $NAMESPACE
} }
function validate_docsum() { function validate_docsum() {