Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chatQnA UI manifest #669

Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
aa9d17e
Add chatQnA UI manifest
WenjiaoYue Aug 27, 2024
15ed830
update port
WenjiaoYue Aug 27, 2024
f966195
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 27, 2024
93987d1
add nginx config
WenjiaoYue Aug 28, 2024
dd0f65b
Merge branch 'wenjiao/chatQnA_add_manifest' of https://github.com/Wen…
WenjiaoYue Aug 28, 2024
68b570a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2024
0e07bdb
update code
WenjiaoYue Aug 28, 2024
053d5af
Merge branch 'wenjiao/chatQnA_add_manifest' of https://github.com/Wen…
WenjiaoYue Aug 28, 2024
c5133c7
update nginx config
WenjiaoYue Aug 28, 2024
b470cc1
update nginx config
WenjiaoYue Aug 28, 2024
8bd7222
update ui IP
WenjiaoYue Aug 28, 2024
cc21e7e
update yaml
WenjiaoYue Aug 28, 2024
87b244f
update api
WenjiaoYue Aug 28, 2024
167a3f0
update env config
WenjiaoYue Aug 28, 2024
83e60b3
update env
WenjiaoYue Aug 28, 2024
046b114
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2024
6bde698
update specify node
WenjiaoYue Aug 29, 2024
aacc6bd
Merge branch 'wenjiao/chatQnA_add_manifest' of https://github.com/Wen…
WenjiaoYue Aug 29, 2024
4247d4f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 29, 2024
48d6be8
update node-type
WenjiaoYue Aug 29, 2024
b01fd08
Merge branch 'wenjiao/chatQnA_add_manifest' of https://github.com/Wen…
WenjiaoYue Aug 29, 2024
40b90ba
update yaml
WenjiaoYue Aug 29, 2024
a8b6520
update yaml
WenjiaoYue Aug 29, 2024
09375d3
delete nodeSelector
WenjiaoYue Aug 29, 2024
458fb3c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 29, 2024
63bf8c1
update dataprep api
WenjiaoYue Aug 29, 2024
2a15b1d
Merge branch 'wenjiao/chatQnA_add_manifest' of https://github.com/Wen…
WenjiaoYue Aug 29, 2024
e74d5aa
add node-type
WenjiaoYue Aug 30, 2024
1ad7cfb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 30, 2024
5a08295
Merge branch 'main' into wenjiao/chatQnA_add_manifest
WenjiaoYue Sep 5, 2024
f33c94f
Merge branch 'main' into wenjiao/chatQnA_add_manifest
WenjiaoYue Sep 5, 2024
f0809d5
delete specify nodeSelector
WenjiaoYue Sep 5, 2024
b3852d3
delete useless space
WenjiaoYue Sep 5, 2024
b56cc4e
Merge branch 'wenjiao/chatQnA_add_manifest' of https://github.com/Wen…
WenjiaoYue Sep 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading