-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add manifests for new components (#478)
Add manifests for vllm/chathistory/prompt/mongodb Skip ci-*values.yaml in update script. Signed-off-by: Dolpher Du <[email protected]>
- Loading branch information
1 parent
d289b4e
commit e51fd62
Showing
6 changed files
with
649 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
microservices-connector/config/manifests/chathistory-usvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
130
microservices-connector/config/manifests/prompt-usvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
Oops, something went wrong.