我想将Milvus部署到我的kubernetes本地集群,我遵循此指南
第1步:我用nfs-kernel-server在我的服务器上安装nfs服务器(我可以挂载到pod上,也可以挂载到同一网络中的其他机器上)
步骤2:我安装helm chart charts/stable/nfs-client-provisioner
(我在模板文件夹中的部署末尾添加了节点选择器,以选择可以使用的服务器)
$ helm install nfs-client . -n milvus
WARNING: This chart is deprecated
NAME: nfs-client
LAST DEPLOYED: Tue Mar 1 10:12:12 2022
NAMESPACE: milvus
STATUS: deployed
REVISION: 1
TEST SUITE: None
$ helm list -n milvus
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
nfs-client milvus 1 2022-03-01 10:12:12.969901256 +0700 +07 deployed nfs-client-provisioner-1.2.11 3.1.0
$ kubectl get pod -n milvus
NAME READY STATUS RESTARTS AGE
nfs-client-nfs-client-provisioner-7685d96cbc-wxfkb 1/1 Running 0 6m18s
第3步:克隆https://github.com/milvus-io/milvus-helm.git的分支0.11.0
$ cd milvus-helm/charts/milvus
$ helm install --set cluster.enabled=true --set persistence.enabled=true --set mysql.enabled=true my-release . -n milvus
NAME: my-release
LAST DEPLOYED: Tue Mar 1 10:33:17 2022
NAMESPACE: milvus
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
The Milvus server can be accessed via port 19530 on the following DNS name from within your cluster:
my-release-milvus.milvus.svc.cluster.local
Get the Milvus server URL by running these commands in the same shell:
export POD_NAME=$(kubectl get pods --namespace milvus -l "app.kubernetes.io/name=milvus,app.kubernetes.io/instance=my-release,component=mishards" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace milvus port-forward $POD_NAME 19530 19121
For more information on running Milvus, visit:
https://milvus.io/
$ kubectl get pod -n milvus
NAME READY STATUS RESTARTS AGE
my-release-milvus-mishards-7cb6574bb5-jrcf4 0/1 Init:0/1 0 6m23s
my-release-milvus-readonly-8588bdd49-7wtwt 0/1 Pending 0 6m23s
my-release-milvus-writable-6db7bfc647-qrd69 0/1 Pending 0 6m23s
my-release-mysql-5f69d5bd87-99zd5 0/1 Pending 0 6m23s
nfs-client-nfs-client-provisioner-7685d96cbc-wxfkb 1/1 Running 0 21m
如你所见,pod卡住了,无法运行。有人在kubernetes集群上部署了Milvus吗?请帮助我!!!
1条答案
按热度按时间hiz5n14c1#
需要检查的是你是否有一个自定义的kubernetes集群域。Milvus是用默认的kubernetes集群域
cluster.local
硬编码的。这样做的问题是,它会破坏服务发现,因为etcd节点无法找到彼此。