milvus部署文档

milvus部署文档

提前装好k8s基础环境

导入所有依赖镜像

Ctr -n=k8s.io images import 以下包

 

配置默认nfs(生成sc

安装nfs(略)

下载好对应的程序nfs-subdir-external-provisioner-4.0.18.tgz解压

修改配置

 

 

 

注释:该服务为设置默认的存储空间scpod会去调用相关的sc空间组成pvc(该处设置应为yaml内设置)

registry.k8s.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2

 

安装证书管理器(三个依赖包)

Kubect apply -f cert-manager.yaml

 

注释:该处不做过多介绍需要下载好相关的依赖包

quay.io/jetstack/cert-manager-cainjector:v1.5.3

quay.io/jetstack/cert-manager-controller:v1.5.3

quay.io/jetstack/cert-manager-webhook:v1.5.3

 

 

安装 Milvus Operator(两个依赖包)

Kubect apply -f deployment.yaml

 

注释:安装部署工具主要关注镜像是否下载成功

 

docker.io/milvusdb/milvus-operator:v1.1.2

docker.io/milvusdb/milvus:v2.4.15

 

 

执行安装(三个依赖包)

Kubect apply -f milvus_manifest.yaml

注释:执行安装该处的yaml文件为官网离线版本安装下载需要魔法

该文件主要设置相关的依赖包如minio,etcd,pulser

docker.io/apachepulsar/pulsar:2.9.5

docker.io/minio/minio:RELEASE.2023-03-20T20-16-18Z

docker.io/milvusdb/etcd:3.5.14-r1

 

 

验证是否成功

kubectl get milvus my-release -o yaml

kubectl get pods

#查看sc

 

 

#查看pod

 

 

 

 

#查看生成的pv(根据pvc自动生成)

#查看生成pvc(该处一定要成功,报错最多的地方)

 

 

生成service端口

#查看服务端口

kubectl get pod my-release-milvus-proxy-84f67cdb7f-pg6wf --template

='{{(index (index .spec.containers 0).ports 0).containerPort}}{{"\n"}}'

19530

#生成服务端口

kubectl port-forward service/my-release-milvus 27017:19530

#生成服务端口

Nohup kubectl port-forward --address 123.13.8.210 service/my-release-milvus 19530:19530 &

错误日志

报错1

  Warning  FailedScheduling  8m59s  default-scheduler  0/3 nodes are available: pod has unbound immediate PersistentVolumeClaims.

  preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling..

报错2

  Warning  BackOff    4m22s (x21 over 9m8s)  kubelet           

  Back-off restarting failed container datanode in pod my-release-milvus-datanode-6fc74944cb-b22zt_default(7c669de3-fe29-47f0-978f-b45a88a0b6d7)

报错3

  Warning  FailedScheduling  17s (x2 over 5m17s)  default-scheduler  0/3 nodes are available:

  pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 Preemption is not helpf

  

报错4

   an error occurred forwarding 9527 -> 19530: error forwarding port 19530 to pod f1bfe2ac14f38d9a5074bfcfdbd3383c5dd83ecd7493a61b5e52f591f6b88354,

   uid : failed to execute portforward in network namespace "/var/run/netns/cni-6c390ea4-878d-13ee-698c-1aa6ff386e4a": failed to connect to localhost:19530

   inside namespace "f1bfe2ac14f38d9a5074bfcfdbd3383c5dd83ecd7493a61b5e52f591f6b88354", IPv4: dial tcp4 127.0.0.1:19530: connect:

   connection refused IPv6 dial tcp6: address localhost: no suitable address found

error: lost connection to pod

 

posted @   升级打怪之路  阅读(10)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
点击右上角即可分享
微信分享提示