Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
# Copyright (C) 2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dataprep-deploy
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: dataprep-deploy
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
sidecar.istio.io/rewriteAppHTTPProbers: 'true'
|
|
labels:
|
|
app: dataprep-deploy
|
|
spec:
|
|
nodeSelector:
|
|
node-type: chatqna-opea
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: ScheduleAnyway
|
|
labelSelector:
|
|
matchLabels:
|
|
app: dataprep-deploy
|
|
hostIPC: true
|
|
containers:
|
|
- env:
|
|
- name: REDIS_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: qna-config
|
|
key: REDIS_URL
|
|
- name: INDEX_NAME
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: qna-config
|
|
key: INDEX_NAME
|
|
image: opea/dataprep-redis:latest
|
|
imagePullPolicy: IfNotPresent
|
|
name: dataprep-deploy
|
|
args: null
|
|
ports:
|
|
- containerPort: 6007
|
|
- containerPort: 6008
|
|
- containerPort: 6009
|
|
serviceAccountName: default
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: dataprep-svc
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: dataprep-deploy
|
|
ports:
|
|
- name: port1
|
|
port: 6007
|
|
targetPort: 6007
|
|
- name: port2
|
|
port: 6008
|
|
targetPort: 6008
|
|
- name: port3
|
|
port: 6009
|
|
targetPort: 6009
|