Skip to content

Commit

Permalink
Add chatQnA UI manifest (opea-project#669)
Browse files Browse the repository at this point in the history
* Add chatQnA UI manifest

Signed-off-by: Yue, Wenjiao <[email protected]>

* update port

Signed-off-by: Yue, Wenjiao <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add nginx config

Signed-off-by: Yue, Wenjiao <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update code

* update nginx config

Signed-off-by: Yue, Wenjiao <[email protected]>

* update nginx config

Signed-off-by: Yue, Wenjiao <[email protected]>

* update ui IP

Signed-off-by: Yue, Wenjiao <[email protected]>

* update yaml

Signed-off-by: Yue, Wenjiao <[email protected]>

* update api

Signed-off-by: Yue, Wenjiao <[email protected]>

* update env config

Signed-off-by: Yue, Wenjiao <[email protected]>

* update env

Signed-off-by: Yue, Wenjiao <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update specify node

Signed-off-by: Yue, Wenjiao <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update node-type

Signed-off-by: Yue, Wenjiao <[email protected]>

* update yaml

Signed-off-by: Yue, Wenjiao <[email protected]>

* update yaml

Signed-off-by: Yue, Wenjiao <[email protected]>

* delete nodeSelector

Signed-off-by: Yue, Wenjiao <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update dataprep api

Signed-off-by: Yue, Wenjiao <[email protected]>

* add node-type

Signed-off-by: Yue, Wenjiao <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* delete specify nodeSelector

Signed-off-by: Yue, Wenjiao <[email protected]>

* delete useless space

Signed-off-by: Yue, Wenjiao <[email protected]>

---------

Signed-off-by: Yue, Wenjiao <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Chun Tao <[email protected]>
  • Loading branch information
2 people authored and ctao456 committed Sep 6, 2024
1 parent 8813aee commit 4f7c2a9
Showing 1 changed file with 191 additions and 0 deletions.
191 changes: 191 additions & 0 deletions ChatQnA/kubernetes/manifests/xeon/chatqna.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,72 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: chatqna-nginx-config
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
data:
default.conf: |
server {
listen 80;
listen [::]:80;
location /home {
root /usr/share/nginx/html;
index index.html index.htm;
}
location / {
proxy_pass http://chatqna-ui.default.svc.cluster.local: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.default.svc.cluster.local: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.default.svc.cluster.local: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.default.svc.cluster.local: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.default.svc.cluster.local: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
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -457,6 +523,31 @@ spec:
app.kubernetes.io/name: chatqna
app.kubernetes.io/instance: chatqna
---
# Source: chatqna/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Service
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:
type: ClusterIP
ports:
- port: 5173
targetPort: 5173
protocol: TCP
name: chatqna-ui
selector:
app.kubernetes.io/name: chatqna-ui
app.kubernetes.io/instance: chatqna-ui
---
# Source: chatqna/charts/data-prep/templates/deployment.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
Expand Down Expand Up @@ -923,6 +1014,49 @@ spec:
# Copyright (C) 2024 Intel Corporation
# 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
kind: Deployment
metadata:
Expand Down Expand Up @@ -1239,3 +1373,60 @@ spec:
volumes:
- name: tmp
emptyDir: {}
---
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: apps/v1
kind: Deployment
metadata:
name: chatqna-nginx-deployment
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:
replicas: 1
selector:
matchLabels:
app: chatqna-nginx
template:
metadata:
labels:
app: chatqna-nginx
spec:
containers:
- name: chatqna-nginx
image: nginx:latest
ports:
- containerPort: 80
volumeMounts:
- name: nginx-config-volume
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
volumes:
- name: nginx-config-volume
configMap:
name: chatqna-nginx-config
---
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

0 comments on commit 4f7c2a9

Please sign in to comment.