Skip to content

Commit

Permalink
Add manifests for new components
Browse files Browse the repository at this point in the history
Add manifests for vllm/chathistory/prompt/mongodb
Skip ci-*values.yaml in update script.

Signed-off-by: Dolpher Du <dolpher.du@intel.com>
  • Loading branch information
yongfengdu authored and jfding committed Oct 18, 2024
1 parent d289b4e commit 1811551
Show file tree
Hide file tree
Showing 6 changed files with 649 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm-charts/update_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ function generate_yaml {
for f in `ls ./common/$chart/*-values.yaml 2>/dev/null `; do
filename=$(basename $f)
releasename=$chart
if [[ $filename == ci-* ]]; then
continue
fi
if [[ "$filename" =~ ^variant_.*-values.yaml ]]; then
ext=$(echo $filename | sed 's/^variant_//' | sed 's/-values.yaml$//')
outputfile="$ext-${chart}.yaml"
Expand Down
130 changes: 130 additions & 0 deletions microservices-connector/config/manifests/chathistory-usvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
---
# Source: chathistory-usvc/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: chathistory-usvc-config
labels:
helm.sh/chart: chathistory-usvc-1.0.0
app.kubernetes.io/name: chathistory-usvc
app.kubernetes.io/instance: chathistory-usvc
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
MONGO_HOST: "chathistory-usvc-mongodb"
MONGO_PORT: "27017"
DB_NAME: "OPEA"
COLLECTION_NAME: "ChatHistory"
http_proxy: ""
https_proxy: ""
no_proxy: ""
LOGFLAG: ""
---
# Source: chathistory-usvc/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

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

apiVersion: apps/v1
kind: Deployment
metadata:
name: chathistory-usvc
labels:
helm.sh/chart: chathistory-usvc-1.0.0
app.kubernetes.io/name: chathistory-usvc
app.kubernetes.io/instance: chathistory-usvc
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: chathistory-usvc
app.kubernetes.io/instance: chathistory-usvc
template:
metadata:
labels:
app.kubernetes.io/name: chathistory-usvc
app.kubernetes.io/instance: chathistory-usvc
spec:
securityContext:
{}
containers:
- name: chathistory-usvc
envFrom:
- configMapRef:
name: chathistory-usvc-config
- configMapRef:
name: extra-env-config
optional: true
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
image: "opea/chathistory-mongo-server:latest"
imagePullPolicy: IfNotPresent
ports:
- name: port
containerPort: 6012
protocol: TCP
volumeMounts:
- mountPath: /tmp
name: tmp
livenessProbe:
failureThreshold: 24
httpGet:
path: v1/health_check
port: port
initialDelaySeconds: 5
periodSeconds: 5
readinessProbe:
httpGet:
path: v1/health_check
port: port
initialDelaySeconds: 5
periodSeconds: 5
startupProbe:
failureThreshold: 120
httpGet:
path: v1/health_check
port: port
initialDelaySeconds: 5
periodSeconds: 5
resources:
{}
volumes:
- name: tmp
emptyDir: {}
90 changes: 90 additions & 0 deletions microservices-connector/config/manifests/mongodb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
# Source: mongodb/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

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

apiVersion: apps/v1
kind: Deployment
metadata:
name: mongodb
labels:
helm.sh/chart: mongodb-1.0.0
app.kubernetes.io/name: mongodb
app.kubernetes.io/instance: mongodb
app.kubernetes.io/version: "7.0.11"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: mongodb
app.kubernetes.io/instance: mongodb
template:
metadata:
labels:
app.kubernetes.io/name: mongodb
app.kubernetes.io/instance: mongodb
spec:
securityContext:
{}
containers:
- name: mongodb
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: false
runAsUser: 999
seccompProfile:
type: RuntimeDefault
image: "mongo:7.0.11"
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /data
name: data-volume
- mountPath: /tmp
name: tmp
ports:
- name: port
containerPort: 27017
protocol: TCP
startupProbe:
failureThreshold: 120
initialDelaySeconds: 5
periodSeconds: 5
tcpSocket:
port: port
resources:
{}
volumes:
- name: data-volume
emptyDir: {}
- name: tmp
emptyDir: {}
130 changes: 130 additions & 0 deletions microservices-connector/config/manifests/prompt-usvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
---
# Source: prompt-usvc/templates/configmap.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: ConfigMap
metadata:
name: prompt-usvc-config
labels:
helm.sh/chart: prompt-usvc-1.0.0
app.kubernetes.io/name: prompt-usvc
app.kubernetes.io/instance: prompt-usvc
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
data:
MONGO_HOST: "prompt-usvc-mongodb"
MONGO_PORT: "27017"
DB_NAME: "OPEA"
COLLECTION_NAME: "Prompt"
http_proxy: ""
https_proxy: ""
no_proxy: ""
LOGFLAG: ""
---
# Source: prompt-usvc/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

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

apiVersion: apps/v1
kind: Deployment
metadata:
name: prompt-usvc
labels:
helm.sh/chart: prompt-usvc-1.0.0
app.kubernetes.io/name: prompt-usvc
app.kubernetes.io/instance: prompt-usvc
app.kubernetes.io/version: "v1.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: prompt-usvc
app.kubernetes.io/instance: prompt-usvc
template:
metadata:
labels:
app.kubernetes.io/name: prompt-usvc
app.kubernetes.io/instance: prompt-usvc
spec:
securityContext:
{}
containers:
- name: prompt-usvc
envFrom:
- configMapRef:
name: prompt-usvc-config
- configMapRef:
name: extra-env-config
optional: true
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
image: "opea/promptregistry-mongo-server:latest"
imagePullPolicy: IfNotPresent
ports:
- name: port
containerPort: 6018
protocol: TCP
volumeMounts:
- mountPath: /tmp
name: tmp
livenessProbe:
failureThreshold: 24
httpGet:
path: v1/health_check
port: port
initialDelaySeconds: 5
periodSeconds: 5
readinessProbe:
httpGet:
path: v1/health_check
port: port
initialDelaySeconds: 5
periodSeconds: 5
startupProbe:
failureThreshold: 120
httpGet:
path: v1/health_check
port: port
initialDelaySeconds: 5
periodSeconds: 5
resources:
{}
volumes:
- name: tmp
emptyDir: {}
Loading

0 comments on commit 1811551

Please sign in to comment.