mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
753c2ff906
* [skip ci](shards): update kubernetes related Signed-off-by: peng.xu <peng.xu@zilliz.com> * [skip ci](shards): add pending buff in kubernetes provider Signed-off-by: peng.xu <peng.xu@zilliz.com> * [skip ci](shards): some bug fix in k8s provider Signed-off-by: peng.xu <peng.xu@zilliz.com> * [skip ci](shards): update log Signed-off-by: peng.xu <peng.xu@zilliz.com> * [skip ci](shards): update k8s config Signed-off-by: peng.xu <peng.xu@zilliz.com> * [skip ci](shards): update Makefile Signed-off-by: peng.xu <peng.xu@zilliz.com>
89 lines
2.0 KiB
YAML
89 lines
2.0 KiB
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: mishards-proxy-servers
|
|
namespace: mishards
|
|
spec:
|
|
type: LoadBalancer
|
|
selector:
|
|
app: mishards
|
|
tier: proxy
|
|
ports:
|
|
- name: tcp
|
|
protocol: TCP
|
|
port: 19530
|
|
targetPort: 19530
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mishards-proxy
|
|
namespace: mishards
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: mishards
|
|
tier: proxy
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mishards
|
|
tier: proxy
|
|
spec:
|
|
containers:
|
|
- name: mishards-proxy
|
|
image: milvusdb/mishards
|
|
imagePullPolicy: Always
|
|
command: ["python", "mishards/main.py"]
|
|
resources:
|
|
limits:
|
|
memory: "2Gi"
|
|
cpu: "2"
|
|
requests:
|
|
memory: "2Gi"
|
|
ports:
|
|
- name: tcp
|
|
containerPort: 5000
|
|
env:
|
|
# - name: SQL_ECHO
|
|
# value: "True"
|
|
- name: DEBUG
|
|
value: "False"
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: MILVUS_CLIENT
|
|
value: "False"
|
|
- name: LOG_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: LOG_PATH
|
|
value: /var/log/milvus
|
|
- name: SD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: SD_ROSERVER_POD_PATT
|
|
value: ".*-ro-servers-.*"
|
|
volumeMounts:
|
|
- name: mishards-proxy-configmap
|
|
mountPath: /source/mishards/.env
|
|
subPath: mishards_proxy_config.yml
|
|
- name: mishards-log-disk
|
|
mountPath: /var/log/milvus
|
|
subPath: proxylog
|
|
# imagePullSecrets:
|
|
# - name: regcred
|
|
volumes:
|
|
- name: mishards-proxy-configmap
|
|
configMap:
|
|
name: mishards-proxy-configmap
|
|
- name: mishards-log-disk
|
|
persistentVolumeClaim:
|
|
claimName: mishards-log-disk
|