{"id":1807,"date":"2026-09-04T15:46:28","date_gmt":"2026-09-04T07:46:28","guid":{"rendered":"https:\/\/www.izhuhn.cn\/?p=1807"},"modified":"2026-09-04T15:53:51","modified_gmt":"2026-09-04T07:53:51","slug":"k3s-mindcluster-jianji","status":"publish","type":"post","link":"https:\/\/www.izhuhn.cn\/index.php\/2026\/09\/04\/k3s-mindcluster-jianji\/","title":{"rendered":"K3s \u79bb\u7ebf\u90e8\u7f72\u6607\u817e MindCluster \u7b80\u8bb0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5185\u7f51\u9e92\u9e9f V10\uff08ARM64\uff09+ \u6607\u817e 910 \u73af\u5883\uff0c\u6ca1\u6709\u5916\u7f51\uff0c\u8981\u628a K3s \u548c MindCluster 26.0.0 \u5168\u5957\uff08Volcano\u3001ClusterD\u3001Ascend Operator\u3001Device Plugin \u7b49\uff09\u62c9\u8d77\u6765\u3002\u6574\u5957\u6d41\u7a0b\u6211\u62c6\u6210\u4e86 11 \u4e2a\u811a\u672c\uff0c\u4ece\u8054\u7f51\u4fa7\u4e0b\u8f7d\u5230\u96c6\u7fa4\u9a8c\u8bc1\u5168\u8986\u76d6\uff0c\u8dd1\u901a\u540e\u96c6\u7fa4\u5df2\u7a33\u5b9a\u8fd0\u884c\u3002\u672c\u6587\u6309\u6267\u884c\u987a\u5e8f\u8fc7\u4e00\u904d\uff0c\u987a\u5e26\u8bb0\u5f55\u8e29\u8fc7\u7684\u5751\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u6574\u4f53\u601d\u8def<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6574\u4e2a\u90e8\u7f72\u5206\u4e24\u4e2a\u9636\u6bb5\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u8054\u7f51\u673a\u5668<\/strong>\uff08x86_64 \u6216 ARM64 \u7684 Linux\/Mac \u90fd\u884c\uff09\uff1a\u4e0b\u8f7d K3s \u79bb\u7ebf\u5305\u3001MindCluster \u7ec4\u4ef6\u5305\u3001\u5bfc\u51fa\u5bb9\u5668\u955c\u50cf\u3001\u4e0b\u8f7d\u9e92\u9e9f RPM \u4f9d\u8d56\uff0c\u6253\u6210\u4e00\u4e2a\u5c0f\u76ee\u5f55\u6574\u4f53\u62f7\u8fdb\u5185\u7f51\uff1b<\/li>\n<li><strong>\u5185\u7f51\u76ee\u6807\u673a<\/strong>\uff08\u9e92\u9e9f V10 SP2 ARM64 + \u6607\u817e 910\uff09\uff1a\u7cfb\u7edf\u51c6\u5907 \u2192 \u88c5 K3s \u2192 \u914d containerd \u2192 \u5bfc\u955c\u50cf \u2192 \u5efa\u7528\u6237\u76ee\u5f55 \u2192 \u90e8\u7f72\u7ec4\u4ef6 \u2192 \u6253\u6807\u7b7e \u2192 \u9a8c\u8bc1\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u62f7\u8fdb\u5185\u7f51\u7684\u79bb\u7ebf\u5305\u5c31\u4e00\u4e2a\u76ee\u5f55\uff0c\u7ed3\u6784\u5982\u4e0b\uff08\u811a\u672c\u90fd\u6309\u76f8\u5bf9\u8def\u5f84\u627e\u5144\u5f1f\u76ee\u5f55\uff0c\u522b\u6253\u6563\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>offline-k3s-mindcluster\/\n\u251c\u2500\u2500 k3s\/                # k3s \u4e8c\u8fdb\u5236 + airgap \u955c\u50cf + install.sh\n\u251c\u2500\u2500 mindcluster\/        # 7 \u4e2a\u7ec4\u4ef6 zip\uff08volcano\/clusterd\/...\uff09\n\u251c\u2500\u2500 images\/             # master-*.tar \/ worker-*.tar\n\u251c\u2500\u2500 rpms\/               # \u9e92\u9e9f V10 aarch64 RPM \u4f9d\u8d56\n\u2514\u2500\u2500 scripts\/            # 00 ~ 08 + worker-join-guide<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7248\u672c\u7ec4\u5408\uff1aK3s <code>v1.35.5+k3s1<\/code>\u3001MindCluster <code>v26.0.0<\/code>\uff08\u7ec4\u4ef6\u5185 Volcano \u4e3a <code>v1.9.0<\/code>\uff09\u3001\u9e92\u9e9f V10 SP2\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u7f6e\u6761\u4ef6\uff08\u4e0d\u5728\u811a\u672c\u8303\u56f4\u5185\uff0c\u4f46\u5fc5\u987b\u5148\u6709\uff09\uff1aNPU \u8282\u70b9\u5df2\u88c5\u597d\u6607\u817e\u9a71\u52a8\/\u56fa\u4ef6\uff0c<code>npu-smi info<\/code> \u80fd\u770b\u5230\u5361\uff1bAscend-Docker-Runtime \u5df2\u5b89\u88c5\u4e14 <code>\/usr\/local\/Ascend\/Ascend-Docker-Runtime\/ascend-docker-runtime<\/code> \u5b58\u5728\uff0c<code>HwHiAiUser<\/code> \u7ec4\u5df2\u521b\u5efa\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u8054\u7f51\u4fa7\uff1a\u4e00\u952e\u4e0b\u8f7d K3s \u4e0e MindCluster \u7ec4\u4ef6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>00-download-all.sh<\/code> \u5e72\u4e09\u4ef6\u4e8b\uff1a\u4e0b\u8f7d K3s \u79bb\u7ebf\u8d44\u6e90\u3001\u4e0b\u8f7d MindCluster \u7ec4\u4ef6 zip\u3001\u62c9\u53d6\u5e76\u5bfc\u51fa\u5bb9\u5668\u955c\u50cf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">K3s \u8d70 gh-proxy \u52a0\u901f\uff0cMindCluster \u7ec4\u4ef6\u4ece gitcode \u7684 mind-cluster \u4ed3\u5e93\u62ff\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>K3S_VERSION=\"v1.35.5+k3s1\"\nK3S_URL=\"https:\/\/gh-proxy.org\/https:\/\/github.com\/k3s-io\/k3s\/releases\/download\/${K3S_VERSION}\"\n\nGITCODE_BASE=\"https:\/\/gitcode.com\/Ascend\/mind-cluster\/releases\/download\/v26.0.0\"\n\ndeclare -A PACKAGES=(\n  [\"volcano\"]=\"Ascend-mindxdl-volcano_26.0.0_linux-aarch64.zip\"\n  [\"clusterd\"]=\"Ascend-mindxdl-clusterd_26.0.0_linux-aarch64.zip\"\n  [\"ascend-operator\"]=\"Ascend-mindxdl-ascend-operator_26.0.0_linux-aarch64.zip\"\n  [\"infer-operator\"]=\"Ascend-mindxdl-infer-operator_26.0.0_linux-aarch64.zip\"\n  [\"noded\"]=\"Ascend-mindxdl-noded_26.0.0_linux-aarch64.zip\"\n  [\"npu-exporter\"]=\"Ascend-mindxdl-npu-exporter_26.0.0_linux-aarch64.zip\"\n  [\"device-plugin\"]=\"Ascend-mindxdl-device-plugin_26.0.0_linux-aarch64.zip\"\n)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bb9\u5668\u955c\u50cf\u4e00\u5171 8 \u4e2a\uff0c\u6309\u8282\u70b9\u89d2\u8272\u5206\u4e24\u7ec4\uff0c<code>docker pull<\/code> \u540e\u7acb\u523b <code>docker save<\/code> \u6210 tar\u3002\u6ce8\u610f volcano \u955c\u50cf\u7684 tag \u662f\u53cc\u7248\u672c\u53f7 <code>v1.9.0-v26.0.0<\/code>\u2014\u2014\u524d\u9762\u662f Volcano \u5185\u6838\u7248\u672c\uff0c\u540e\u9762\u662f MindCluster \u7248\u672c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th> \u89d2\u8272 <\/th><th> \u955c\u50cf <\/th><\/tr><\/thead><tbody><tr><td> Master <\/td><td> vc-scheduler:v1.9.0-v26.0.0\u3001vc-controller-manager:v1.9.0-v26.0.0\u3001clusterd:v26.0.0\u3001ascend-operator:v26.0.0\u3001infer-operator:v26.0.0 <\/td><\/tr><tr><td> Worker <\/td><td> noded:v26.0.0\u3001npu-exporter:v26.0.0\u3001ascend-k8sdeviceplugin:v26.0.0 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u955c\u50cf\u6e90\u662f <code>swr.cn-south-1.myhuaweicloud.com\/ascendhub\/<\/code>\u3002\u4e0b\u8f7d\u673a\u67b6\u6784\u81ea\u9002\u5e94\uff1aARM64 \u76f4\u63a5\u62c9\uff0cx86_64 \u81ea\u52a8\u52a0 <code>--platform linux\/arm64<\/code>\u2014\u2014\u6240\u4ee5\u8fd9\u53f0\u8054\u7f51\u673a\u662f x86 \u7684\u4e5f\u6ca1\u5173\u7cfb\uff0cQEMU \u7684\u4e8b\u4ea4\u7ed9 Docker\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u8054\u7f51\u4fa7\uff1a\u9e92\u9e9f V10 RPM \u4f9d\u8d56\u79bb\u7ebf\u4e0b\u8f7d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">K3s \u548c MindCluster \u5728\u9e92\u9e9f\u4e0a\u8dd1\u9700\u8981\u4e00\u5806\u7cfb\u7edf\u4f9d\u8d56\uff08conntrack\u3001iptables\u3001nftables\u3001nfs-utils\u3001openssh\u3001selinux-policy \u7b49\uff09\uff0c\u8fd9\u4e9b\u5305\u5728 CentOS\/openEuler \u6e90\u91cc\u51d1\u4e0d\u9f50\uff0c\u5f97\u7528\u9e92\u9e9f\u81ea\u5df1\u7684\u6e90\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u601d\u8def\uff1a\u7528 Docker \u8dd1\u4e00\u4e2a\u9e92\u9e9f V10 SP2 ARM64 \u5bb9\u5668\uff08x86_64 \u4e0b\u8f7d\u673a\u4e0a\u9760 QEMU binfmt \u6a21\u62df\uff09\uff0c\u5bb9\u5668\u91cc\u914d\u9e92\u9e9f\u5b98\u65b9\u6e90 + \u534e\u4e3a Ascend \u6e90\uff0c<code>yumdownloader --resolve<\/code> \u4e00\u628a\u68ad\uff0c\u628a rpm \u5168\u91cf\u4e0b\u51fa\u6765\u62f7\u56de\u5bbf\u4e3b\u673a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5bb9\u5668\u5185\u914d\u7f6e\u7684\u6e90\uff08Dockerfile \u7247\u6bb5\uff09\n[kylin-base]\nname=Kylin V10 SP2 Base aarch64\nbaseurl=https:\/\/update.cs2c.com.cn\/NS\/V10\/V10SP2\/os\/adv\/lic\/base\/aarch64\/\n\n[kylin-update]\nname=Kylin V10 SP2 Updates aarch64\nbaseurl=https:\/\/update.cs2c.com.cn\/NS\/V10\/V10SP2\/os\/adv\/lic\/updates\/aarch64\/\n\n[ascend-docker]\nname=Ascend Docker CE aarch64\nbaseurl=https:\/\/ascend-repo.obs.cn-east-2.myhuaweicloud.com\/docker-ce\/linux\/centos\/7\/aarch64\/stable\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u9e92\u9e9f\u57fa\u7840\u955c\u50cf\u6309\u987a\u5e8f\u5c1d\u8bd5 <code>macrosan\/kylin:v10-sp2<\/code> \u2192 <code>v10-sp1<\/code> \u2192 <code>kylinv10\/kylin:b09<\/code>\u3002\u8fd9\u91cc\u6709\u4e24\u4e2a\u5751\uff0c\u90fd\u5199\u8fdb\u4e86\u811a\u672c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong><code>iptables-ebtables<\/code> \u8fd9\u4e2a\u5305\u540d\u5728\u9e92\u9e9f\u6e90\u91cc\u4e0d\u5b58\u5728<\/strong>\uff0cyumdownloader \u4f1a\u76f4\u63a5\u62a5\u9519\u7f3a\u5305\u3002\u6b63\u786e\u5199\u6cd5\u662f <code>ebtables<\/code>\u3002\u8fd9\u4e2a\u5751\u4e0d\u4fee\uff0c\u6574\u6761\u4e0b\u8f7d\u94fe\u8def\u5c31\u65ad\u5728\u534a\u8def\u3002<\/li>\n<li><strong>\u9e92\u9e9f\u955c\u50cf\u62c9\u4e0d\u5230\u65f6\u5343\u4e07\u4e0d\u8981\u56de\u9000 openEuler<\/strong>\u2014\u2014\u6e90\u4e0d\u517c\u5bb9\uff0c\u547d\u4ee4\u663e\u793a\"\u6210\u529f\"\uff0c\u5b9e\u9645 0 \u4e2a rpm\u3002\u811a\u672c\u91cc\u76f4\u63a5 <code>exit 1<\/code> \u7981\u6b62\u56de\u9000\uff0c\u5e76\u52a0\u4e86\u4e09\u5c42\u6821\u9a8c\uff1a\u5bb9\u5668\u5185\u67e5 <code>\/rpms<\/code>\u3001<code>docker cp<\/code> \u540e\u590d\u67e5\u3001\u5bbf\u4e3b\u673a\u7edf\u8ba1 rpm \u6570\u91cf\uff0c\u4efb\u4f55\u4e00\u5c42\u53d1\u73b0 0 \u4e2a\u7acb\u523b\u62a5\u9519\u9000\u51fa\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u5916 <code>docker build --no-cache<\/code> \u5f3a\u5236\u5168\u65b0\u4e0b\u8f7d\uff0c\u5f00\u5de5\u524d\u6e05\u6389\u65e7 rpm\uff0c\u907f\u514d\u65e7\u7f13\u5b58\u5c42\u9a97\u4eba\u3002sshpass\u3001inotify-tools \u4e24\u4e2a\u7279\u6b8a\u5305\u8d70\u5355\u72ec\u7684 wget\uff08\u4e00\u4e2a\u6765\u81ea ascend-repo\uff0c\u4e00\u4e2a\u6765\u81ea\u534e\u4e3a\u4e91 epel \u955c\u50cf\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u76ee\u6807\u673a\uff1a\u7cfb\u7edf\u51c6\u5907\uff0801-system-prepare.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u6709\u8282\u70b9\u6267\u884c\u3002\u5185\u5bb9\u662f\u6807\u51c6 K8s \u524d\u7f6e\uff1a\u5173 SELinux\u3001\u5173 firewalld\u3001\u5173 swap\u3001\u52a0\u8f7d\u5185\u6838\u6a21\u5757\u3001\u8bbe sysctl\uff0c\u6700\u540e\u628a <code>rpms\/<\/code> \u91cc\u7684\u5305\u4e00\u53e3\u6c14\u88c5\u4e0a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5185\u6838\u6a21\u5757\ncat &gt; \/etc\/modules-load.d\/k3s.conf &lt;&lt;EOF\nbr_netfilter\noverlay\nip_vs\nip_vs_rr\nip_vs_wrr\nip_vs_sh\nnf_conntrack\nEOF\n\n# \u5185\u6838\u53c2\u6570\ncat &gt; \/etc\/sysctl.d\/k3s.conf &lt;&lt;EOF\nnet.bridge.bridge-nf-call-iptables = 1\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.ipv4.ip_forward = 1\nnet.ipv4.conf.all.forwarding = 1\nnet.ipv6.conf.all.forwarding = 1\nEOF\n\n# \u79bb\u7ebf\u5b89\u88c5\u4f9d\u8d56\uff08rpms \u76ee\u5f55\u7531\u7b2c\u4e09\u6b65\u4ea7\u51fa\uff09\ncd rpms &amp;&amp; rpm -ivh *.rpm --nodeps --force<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8dd1\u5b8c\u5efa\u8bae\u91cd\u542f\u4e00\u6b21\u518d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u76ee\u6807\u673a\uff1a\u5b89\u88c5 K3s\uff0802-install-k3s.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7eaf\u79bb\u7ebf\u4e09\u677f\u65a7\uff1a\u653e\u4e8c\u8fdb\u5236\u3001\u653e airgap \u955c\u50cf\u5305\u3001\u8dd1 install.sh\uff08\u8df3\u8fc7\u4e0b\u8f7d\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp k3s-arm64 \/usr\/local\/bin\/k3s &amp;&amp; chmod +x \/usr\/local\/bin\/k3s\ncp k3s-airgap-images-*.tar.zst \/var\/lib\/rancher\/k3s\/agent\/images\/\n\n# Master\nINSTALL_K3S_SKIP_DOWNLOAD=true bash install.sh server \\\n  --write-kubeconfig-mode 644 \\\n  --disable traefik\n\n# Worker\uff08\u5728\u53e6\u4e00\u53f0\u673a\u5668\u4e0a\uff09\nK3S_URL=https:\/\/&lt;MASTER_IP&gt;:6443 K3S_TOKEN=&lt;node-token&gt; \\\n  INSTALL_K3S_SKIP_DOWNLOAD=true bash install.sh agent<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>--disable traefik<\/code> \u662f\u4e3a\u4e86\u5185\u7f51\u5c11\u4e00\u6279\u7528\u4e0d\u4e0a\u7684\u955c\u50cf\u3002Master \u88c5\u5b8c\u811a\u672c\u4f1a\u81ea\u52a8\u628a\u52a0\u5165\u547d\u4ee4\uff08\u542b IP \u548c token\uff09\u6253\u5370\u51fa\u6765\uff0c<code>worker-join-guide.sh<\/code> \u4e5f\u662f\u5e72\u8fd9\u4e2a\u7684\uff0c\u5fd8\u4e86 token \u968f\u65f6\u8865\u770b\uff1a<code>cat \/var\/lib\/rancher\/k3s\/server\/node-token<\/code>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u76ee\u6807\u673a\uff1acontainerd \u914d\u7f6e\u6607\u817e Runtime\uff0803-configure-containerd-runtime.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e00\u6b65\u4e0d\u505a\uff0cNPU \u5bb9\u5668\u8d77\u6765\u4e5f\u6302\u4e0d\u4e0a\u8bbe\u5907\u2014\u2014\u8bbe\u5907\u6ce8\u5165\u9760 Ascend Docker Runtime \u5b8c\u6210\u3002K3s \u7684\u505a\u6cd5\u662f\u5199\u4e00\u4efd <code>config.toml.tmpl<\/code>\uff0c\u628a\u9ed8\u8ba4 runtime \u76f4\u63a5\u5207\u6210 ascend\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[plugins.cri.containerd]\n  snapshotter = \"overlayfs\"\n  default_runtime_name = \"ascend\"\n\n[plugins.cri.containerd.runtimes.runc]\n  runtime_type = \"io.containerd.runc.v2\"\n\n[plugins.cri.containerd.runtimes.ascend]\n  runtime_type = \"io.containerd.runc.v2\"\n  [plugins.cri.containerd.runtimes.ascend.options]\n    BinaryName = \"\/usr\/local\/Ascend\/Ascend-Docker-Runtime\/ascend-docker-runtime\"\n    SystemdCgroup = false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5199\u5230 <code>\/var\/lib\/rancher\/k3s\/agent\/etc\/containerd\/config.toml.tmpl<\/code>\uff0c\u7136\u540e <code>systemctl restart k3s<\/code>\uff08worker \u662f <code>k3s-agent<\/code>\uff09\u751f\u6548\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u76ee\u6807\u673a\uff1a\u5bfc\u5165\u955c\u50cf\u5e76\u91cd\u6253\u6807\u7b7e\uff0804-import-images.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u7b2c\u4e8c\u9636\u6bb5\u5bfc\u51fa\u7684 tar \u5bfc\u8fdb K3s \u81ea\u5e26\u7684 containerd\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Master \u8282\u70b9\nfor f in images\/master-*.tar; do\n  k3s ctr -n k8s.io images import \"$f\"\ndone\n# Worker \u8282\u70b9\u5bfc worker-*.tar\uff0c\u540c\u7406<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6253\u6807\u7b7e\u8fd9\u6b65\u4e0d\u80fd\u7701<\/strong>\u3002MindCluster \u7684 yaml \u91cc image \u5199\u6cd5\u4e94\u82b1\u516b\u95e8\uff1a<code>volcanosh\/vc-scheduler:v1.9.0<\/code>\u3001<code>docker.io\/volcanosh\/...<\/code>\u3001<code>docker.io\/library\/...<\/code> \u90fd\u6709\u3002\u5728\u7ebf\u73af\u5883\u65e0\u6240\u8c13\uff0cregistry \u4f1a\u515c\u5e95\uff1b\u79bb\u7ebf\u73af\u5883 yaml \u5f15\u7528\u54ea\u4e2a\u540d\u5b57\uff0c\u672c\u5730 containerd \u91cc\u5c31\u5fc5\u987b\u5b58\u5728\u54ea\u4e2a\u540d\u5b57\u3002\u811a\u672c\u628a\u6bcf\u4e2a\u955c\u50cf\u6309\u4e09\u79cd\u524d\u7f00\u5404 tag \u4e86\u4e00\u904d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>k3s ctr -n k8s.io images tag \\\n  swr.cn-south-1.myhuaweicloud.com\/ascendhub\/vc-scheduler:v1.9.0-v26.0.0 \\\n  volcanosh\/vc-scheduler:v1.9.0\nk3s ctr -n k8s.io images tag \\\n  swr.cn-south-1.myhuaweicloud.com\/ascendhub\/vc-scheduler:v1.9.0-v26.0.0 \\\n  docker.io\/volcanosh\/vc-scheduler:v1.9.0\nk3s ctr -n k8s.io images tag \\\n  swr.cn-south-1.myhuaweicloud.com\/ascendhub\/vc-scheduler:v1.9.0-v26.0.0 \\\n  docker.io\/library\/volcanosh\/vc-scheduler:v1.9.0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u52a0\u8fd9\u6b65\uff0cPod \u5168\u90e8\u5361 <code>ImagePullBackOff<\/code>\uff0c\u65e5\u5fd7\u91cc\u53ea\u6709\u4e00\u53e5 <code>pull access denied<\/code>\uff0c\u975e\u5e38\u8bef\u5bfc\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u76ee\u6807\u673a\uff1a\u521b\u5efa\u7528\u6237\u4e0e\u65e5\u5fd7\u76ee\u5f55\uff0805-create-user-dirs.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MindCluster \u7ec4\u4ef6\u6309\u534e\u4e3a\u89c4\u8303\u8dd1\u5728\u4e13\u7528\u7528\u6237\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>useradd -d \/home\/hwMindX -u 9000 -m -s \/sbin\/nologin hwMindX\nusermod -a -G HwHiAiUser hwMindX   # HwHiAiUser \u7531 NPU \u9a71\u52a8\u521b\u5efa<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e5\u5fd7\u76ee\u5f55\u6309\u8282\u70b9\u89d2\u8272\u521b\u5efa\uff0c\u5c5e\u4e3b\u662f\u6709\u8bb2\u7a76\u7684\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6240\u6709\u8282\u70b9\uff08root \u5c5e\u4e3b\uff09\uff1a<code>\/var\/log\/mindx-dl\/{devicePlugin,noded,npu-exporter}<\/code><\/li>\n<li>Master \u53e6\u52a0\uff08hwMindX \u5c5e\u4e3b\uff09\uff1a<code>ascend-operator<\/code>\u3001<code>clusterd<\/code>\u3001<code>volcano-controller<\/code>\u3001<code>volcano-scheduler<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6743\u9650\u7edf\u4e00 750\u3002\u76ee\u5f55\u7f3a\u5931\u65f6\u7ec4\u4ef6\u4f1a\u5199\u65e5\u5fd7\u5931\u8d25\uff0c\u75c7\u72b6\u662f Pod \u53cd\u590d\u91cd\u542f\u4f46 <code>kubectl logs<\/code> \u6ca1\u5185\u5bb9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e5d\u3001Master\uff1a\u90e8\u7f72 MindCluster \u7ec4\u4ef6\uff0806-deploy-mindcluster.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3b\u6d41\u7a0b\u56db\u6b65\uff1a\u5efa\u547d\u540d\u7a7a\u95f4 \u2192 \u89e3\u538b\u7ec4\u4ef6\u5305 \u2192 \u7edf\u4e00\u4fee <code>imagePullPolicy<\/code> \u2192 \u4f9d\u6b21 apply\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u547d\u540d\u7a7a\u95f4\u4e24\u4e2a\uff1a<code>mindx-dl<\/code>\uff08MindCluster \u7ec4\u4ef6\uff09\u548c <code>cluster-system<\/code>\uff08clusterd\uff09\u3002\u89e3\u538b\u540e\u5148\u628a\u6240\u6709 yaml \u7684 <code>imagePullPolicy<\/code> \u7edf\u4e00\u6539\u6210 <code>IfNotPresent<\/code>\u2014\u2014\u79bb\u7ebf\u73af\u5883 <code>Always<\/code> \u5fc5\u6302\uff08\u6bcf\u6b21\u90fd\u53bb\u62c9 registry\uff09\uff0c<code>Never<\/code> \u53c8\u5f3a\u4f9d\u8d56\u955c\u50cf\u540d\u5b8c\u5168\u5339\u914d\uff0c<code>IfNotPresent<\/code> \u4e24\u5934\u517c\u987e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \"$MC_DIR\" -name \"*.yaml\" -exec grep -l \"imagePullPolicy\" {} \\; | while read yaml; do\n  sed -i 's\/imagePullPolicy: Never\/imagePullPolicy: IfNotPresent\/g' \"$yaml\"\n  sed -i 's\/imagePullPolicy: Always\/imagePullPolicy: IfNotPresent\/g' \"$yaml\"\ndone<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u90e8\u7f72\u987a\u5e8f\uff1aVolcano \u2192 ClusterD \u2192 Ascend Operator \u2192 Infer Operator \u2192 \u53ef\u9009\u7684 NodeD \/ NPU Exporter \/ Device Plugin\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u6709\u4e2a<strong>\u672c\u6b21\u90e8\u7f72\u6700\u5927\u7684\u5751<\/strong>\uff1aVolcano \u7684 zip\uff08<code>Ascend-mindxdl-volcano_26.0.0_linux-aarch64.zip<\/code>\uff09\u91cc\u540c\u65f6\u6253\u5305\u4e86 <code>volcano-v1.7.0<\/code> \u548c <code>volcano-v1.9.0<\/code> \u4e24\u5957 yaml\u3002\u6700\u521d\u7684\u5199\u6cd5\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>VOLCANO_YAML=$(find \"$MC_DIR\/volcano\/extracted\" -name \"volcano-v*.yaml\" -type f | head -1)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>find | head -1<\/code> \u6309\u76ee\u5f55\u5e8f\u53d6\u7b2c\u4e00\u4e2a\uff0c\u62ff\u5230\u7684\u662f v1.7.0\u2014\u2014\u548c\u5bfc\u5165\u7684 v1.9.0 \u955c\u50cf\u4e0d\u5339\u914d\u3002\u4fee\u590d\u540e\u7248\u672c\u5199\u6cd5\uff1a\u7cbe\u786e\u4f18\u5148 + \u7248\u672c\u53f7\u515c\u5e95\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>VOLCANO_VERSION=\"v1.9.0\"\n\npick_yaml() {\n  find \"$1\" -name \"$2\" -type f 2&gt;\/dev\/null | sort -V | tail -1\n}\n\nVOLCANO_YAML=$(pick_yaml \"$MC_DIR\/volcano\/extracted\" \"volcano-${VOLCANO_VERSION}.yaml\")\nif [ -z \"$VOLCANO_YAML\" ]; then\n  VOLCANO_YAML=$(pick_yaml \"$MC_DIR\/volcano\/extracted\" \"volcano-v*.yaml\")\nfi\nkubectl apply -f \"$VOLCANO_YAML\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4f59\u7ec4\u4ef6\uff08clusterd\u3001ascend-operator \u7b49\uff09\u4e5f\u7edf\u4e00\u8d70 <code>pick_yaml<\/code> \u53d6\u6700\u9ad8\u7248\u672c\uff0c\u675c\u7edd\u540c\u7c7b\u95ee\u9898\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5341\u3001Master\uff1a\u8282\u70b9\u6253\u6807\u7b7e\uff0807-label-nodes.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MindCluster \u7684 DaemonSet\uff08noded\u3001npu-exporter\u3001device-plugin\uff09\u9760\u6807\u7b7e\u505a nodeSelector\uff0c\u4e0d\u6253\u6807 Pod \u4e00\u4e2a\u90fd\u8d77\u4e0d\u6765\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Master \u4fa7\nkubectl label nodes -l node-role.kubernetes.io\/control-plane \\\n  masterselector=dls-master-node --overwrite\n\n# Worker \u4fa7\uff08\u5355\u8282\u70b9\u96c6\u7fa4\u7ed9 master \u4e5f\u8865\u4e0a\uff09\nkubectl label nodes -l '!node-role.kubernetes.io\/control-plane' \\\n  workerselector=dls-worker-node --overwrite\n\n# \u82af\u7247\u6807\u7b7e\nkubectl label nodes -l workerselector=dls-worker-node \\\n  accelerator=huawei-Ascend910 --overwrite<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u5b8c\u7b49\u51e0\u5206\u949f\u518d\u67e5 Pod\uff0cDaemonSet \u6309 label \u9646\u7eed\u8c03\u5ea6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5341\u4e00\u3001Master\uff1a\u9a8c\u8bc1\uff0808-verify.sh\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9a8c\u8bc1\u811a\u672c\u8986\u76d6\u4e03\u9879\uff1a\u8282\u70b9\u72b6\u6001\u3001\u5168\u91cf Pod\u3001volcano-system \/ mindx-dl \/ kube-system \u4e09\u4e2a\u547d\u540d\u7a7a\u95f4\u3001DaemonSet \u526f\u672c\u6570\u3001\u5f02\u5e38 Pod \u8fc7\u6ee4\u3001containerd \u955c\u50cf\u6838\u5bf9\uff0c\u6700\u540e\u662f<strong>NPU \u8d44\u6e90\u68c0\u67e5<\/strong>\u2014\u2014device-plugin \u6b63\u5e38\u7684\u6807\u5fd7\u662f\u8282\u70b9 capacity \u91cc\u51fa\u73b0\u6607\u817e\u8d44\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{\"\\t\"}{.status.capacity}{\"\\n\"}{end}' \\\n  | grep -o \"huawei.com\/ascend[0-9]*[^ ]*\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u80fd\u770b\u5230 <code>huawei.com\/ascend910-XX<\/code> \u548c <code>npu-smi info<\/code> \u91cc\u7684\u5361\u6570\u5bf9\u4e0a\uff0c\u6574\u6761\u94fe\u8def\uff08\u9a71\u52a8 \u2192 runtime \u2192 device-plugin \u2192 K8s \u8d44\u6e90\u6a21\u578b\uff09\u624d\u7b97\u771f\u6b63\u6253\u901a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5341\u4e8c\u3001Worker \u8282\u70b9\u52a0\u5165\u6d41\u7a0b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Worker \u4fa7\u4e0d\u7528\u52a8 Master \u4e0a\u7684\u4e1c\u897f\uff0c\u6309\u987a\u5e8f\u8dd1\u4e94\u4e2a\u811a\u672c\u5373\u53ef\uff08<code>worker-join-guide.sh<\/code> \u4f1a\u628a Master IP \u548c token \u76f4\u63a5\u6253\u51fa\u6765\uff0c\u7167\u6284\u5c31\u884c\uff09\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>01-system-prepare.sh<\/code><\/li>\n<li><code>02-install-k3s.sh worker<\/code><\/li>\n<li><code>03-configure-containerd-runtime.sh<\/code><\/li>\n<li><code>04-import-images.sh worker<\/code><\/li>\n<li><code>05-create-user-dirs.sh<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u90e8\u52a0\u5165\u540e\uff0c\u56de Master \u8865 <code>07-label-nodes.sh<\/code> \u548c <code>08-verify.sh<\/code>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5341\u4e09\u3001\u8e29\u5751\u901f\u67e5<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th> \u5751 <\/th><th> \u73b0\u8c61 <\/th><th> \u89e3\u6cd5 <\/th><\/tr><\/thead><tbody><tr><td> Volcano zip \u5185\u542b v1.7.0 \/ v1.9.0 \u4e24\u5957 yaml <\/td><td> <code>find | head -1<\/code> \u6309\u76ee\u5f55\u5e8f\u9009\u4e2d\u65e7\u7248 <\/td><td> \u7248\u672c\u53d8\u91cf\u7cbe\u786e\u5339\u914d + <code>sort -V<\/code> \u53d6\u6700\u9ad8\u7248\u672c <\/td><\/tr><tr><td> <code>iptables-ebtables<\/code> \u5305\u4e0d\u5b58\u5728 <\/td><td> yumdownloader \u7f3a\u5305\u4e2d\u65ad <\/td><td> \u6539\u7528 <code>ebtables<\/code> <\/td><\/tr><tr><td> \u9e92\u9e9f\u955c\u50cf\u62c9\u4e0d\u5230\u56de\u9000 openEuler <\/td><td> \u547d\u4ee4\"\u6210\u529f\"\u4f46 0 \u4e2a rpm\uff08\u6e90\u4e0d\u517c\u5bb9\uff09 <\/td><td> \u7981\u6b62\u56de\u9000 + \u4e09\u5c42\u7a7a\u7ed3\u679c\u6821\u9a8c\u5feb\u901f\u5931\u8d25 <\/td><\/tr><tr><td> yaml \u7684 imagePullPolicy \u4e3a Always\/Never <\/td><td> \u79bb\u7ebf\u62c9\u53d6\u5931\u8d25\uff0cPod \u5361 Pending <\/td><td> \u7edf\u4e00 sed \u6210 IfNotPresent <\/td><\/tr><tr><td> yaml \u5f15\u7528\u7684\u955c\u50cf\u540d\u4e0e\u5bfc\u5165\u540d\u4e0d\u4e00\u81f4 <\/td><td> ImagePullBackOff\uff0cpull access denied <\/td><td> \u6309\u4e09\u79cd\u524d\u7f00\uff08volcanosh\/\u3001docker.io\/\u3001docker.io\/library\/\uff09\u5404 tag \u4e00\u4efd <\/td><\/tr><tr><td> NPU \u5bb9\u5668\u6302\u4e0d\u4e0a\u8bbe\u5907 <\/td><td> \u5bb9\u5668\u5185\u770b\u4e0d\u5230\u5361 <\/td><td> containerd \u9ed8\u8ba4 runtime \u5207 ascend\uff08config.toml.tmpl\uff09 <\/td><\/tr><tr><td> load average \u5f88\u9ad8\u4f46 CPU \u7a7a\u95f2 <\/td><td> \u8bef\u5224\u673a\u5668\u8fc7\u8f7d <\/td><td> \u6607\u817e\u9a71\u52a8\u5e38\u9a7b\u7ebf\u7a0b\uff08dev*_sq_task \u7b49\uff09D \u72b6\u6001\u8ba1\u5165 load\uff0c\u6b63\u5e38\u73b0\u8c61 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u7ed3\u8bed<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6574\u5957\u4e1c\u897f\u56fa\u5316\u6210\u811a\u672c\u4e4b\u540e\uff0c\u91cd\u8dd1\u6210\u672c\u975e\u5e38\u4f4e\uff1a\u65b0\u8282\u70b9\u5165\u96c6\u7fa4\u5c31\u662f 01\u219202\u219203\u219204\u219205 \u4e94\u8fde\uff0cMaster \u4fa7\u7ec4\u4ef6\u91cd\u90e8\u7f72\u4e00\u4e2a 06 \u5168\u641e\u5b9a\u3002\u79bb\u7ebf\u90e8\u7f72\u7684\u590d\u6742\u5ea6\u5168\u5728\"\u540d\u5b57\u5bf9\u5f97\u4e0a\"\u548c\"\u7248\u672c\u9009\u5f97\u5bf9\"\u8fd9\u4e24\u4ef6\u4e8b\u4e0a\uff0c\u628a\u8fd9\u4e24\u5904\u7528\u4ee3\u7801\u9489\u6b7b\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u7b49 Pod \u53d8\u7eff\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\uff0c\u7b80\u8bb0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5185\u7f51\u9e92\u9e9f V10\uff08ARM64\uff09+ \u6607\u817e 910 \u73af\u5883\uff0c\u6ca1\u6709\u5916\u7f51\uff0c\u8981\u628a K3s \u548c MindCluster 26.0.0 \u5168\u5957\uff08Vo &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1807","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts\/1807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1807"}],"version-history":[{"count":1,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts\/1807\/revisions"}],"predecessor-version":[{"id":1808,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts\/1807\/revisions\/1808"}],"wp:attachment":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}