{"id":432,"date":"2022-09-04T15:43:04","date_gmt":"2022-09-04T07:43:04","guid":{"rendered":"http:\/\/nas.hepcloud.top:7000\/?p=432"},"modified":"2022-11-01T22:44:37","modified_gmt":"2022-11-01T14:44:37","slug":"ubuntu22-04%e5%ae%89%e8%a3%85kubernetes1-25-0k8s1-25-0%e9%ab%98%e5%8f%af%e7%94%a8%e9%9b%86%e7%be%a4","status":"publish","type":"post","link":"http:\/\/www.huerpu.cc:7000\/?p=432","title":{"rendered":"ubuntu22.04\u5b89\u88c5Kubernetes1.25.0(k8s1.25.0)\u9ad8\u53ef\u7528\u96c6\u7fa4"},"content":{"rendered":"<h3>ubuntu22.04\u5b89\u88c5Kubernetes1.25.0(k8s1.25.0)\u9ad8\u53ef\u7528\u96c6\u7fa4<\/h3>\n<h3>1.\u603b\u4f53\u6982\u89c8<\/h3>\n<p>\u76ee\u524d\u7f51\u7edc\u4e0a\u7684\u5927\u90e8\u5206\u6559\u7a0b\u90fd\u662f\u57fa\u4e8ecentos\u7cfb\u7edf\uff0c\u4f46\u4e2a\u4eba\u7279\u522b\u559c\u6b22ubuntu\uff0c\u6211\u60f3\u4e5f\u4e00\u5b9a\u6709\u4e00\u6ce2\u4eba\u548c\u6211\u4e00\u6837\uff0c\u949f\u60c5\u4e8eubuntu\uff0c\u6240\u4ee5\u52a8\u624b\u64cd\u4f5c\u4e86\u4e00\u4e0b\uff0c\u5e0c\u671b\u53ef\u4ee5\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/p>\n<p>1\u53f0VIP\u8282\u70b9\u30013\u53f0master\u4e3b\u8282\u70b9(4C8G)\u30013\u53f0(4C8G)worker node\uff0c\u5bf9\u5e94\u7684 IP\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>hostname<\/th>\n<th>IP<\/th>\n<th>function<\/th>\n<th>Version<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>hep-k8s-lb-nginx<\/td>\n<td>192.168.31.200<\/td>\n<td>VIP<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<tr>\n<td>hep-k8s-master01<\/td>\n<td>192.168.31.201<\/td>\n<td>Control plane<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<tr>\n<td>hep-k8s-master02<\/td>\n<td>192.168.31.202<\/td>\n<td>Control plane<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<tr>\n<td>hep-k8s-master03<\/td>\n<td>192.168.31.203<\/td>\n<td>Control plane<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<tr>\n<td>hep-k8s-worker01<\/td>\n<td>192.168.31.204<\/td>\n<td>worker node<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<tr>\n<td>hep-k8s-worker02<\/td>\n<td>192.168.31.205<\/td>\n<td>worker node<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<tr>\n<td>hep-k8s-worker03<\/td>\n<td>192.168.31.206<\/td>\n<td>worker node<\/td>\n<td>Ubuntu22.04<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u673a\u5668\u51c6\u5907\u5c31\u7eea\uff0c\u5b89\u88c5\u4e86\u5fc5\u8981\u7684vim\u3001ssh\u7b49\uff0c\u5e76\u5f00\u542f\u4e86ssh\u81ea\u542f\u52a8\u7b49\u6700\u57fa\u7840\u7684\u64cd\u4f5c\uff0c\u5e76\u4e14\u6bcf\u53f0\u673a\u5668\u90fd\u8fdb\u884c\u4e86\u56fa\u5b9aIP\u7684\u8bbe\u7f6e\u3002\u5982\u679c\u6709\u9700\u8981\u8bf7\u53c2\u8003<a href=\"http:\/\/www.huerpu.cc:7000\/?p=409\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<p>hep-k8s-lb-nginx\u4e3anginx\u53cd\u5411\u4ee3\u7406\u7684\u8d1f\u8f7d\u5747\u8861\u673a\u5668\uff0chep-k8s-master01\u3001hep-k8s-master02\u3001hep-k8s-master03\u4e3a\u4e09\u53f0master\u8282\u70b9\uff0chep-k8s-worker01\u3001hep-k8s-worker02\u3001hep-k8s-worker03\u4e3a\u4e09\u53f0worker\u8282\u70b9\u3002<\/p>\n<h3>2.\u8d1f\u8f7d\u5747\u8861\u673a\u5668<\/h3>\n<p>hep-k8s-lb-nginx\u673a\u5668\u4e0a\u6267\u884c<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362\u5230root\u7528\u6237\nsudo su -\n\n#\u8bbe\u7f6ehep-k8s-lb-nginx\u7684hostname\nsystemctl set-hostname hep-k8s-lb-nginx\n\n#\u5b89\u88c5Nginx\napt install nginx -y\n\ncd \/etc\/nginx\n\n#\u914d\u7f6enginx\nvim nginx.conf\n#\u5728http\u9009\u9879\u5927\u53e3\u53f7\u540e\u9762\u6dfb\u52a0\n\nstream {\n    include stream.conf;\n}\n\nvim stream.conf\n#\u589e\u52a0\u65b0\u5185\u5bb9\uff0c\u8fd9\u4e09\u53f0\u7684IP\u5c31\u662f\u6211\u4eec\u7684\u4e09\u53f0master\u7684IP\uff0c\u7aef\u53e3\u90fd\u8bbe\u7f6e\u4e866443\nupstream k8s-apiserver {\n    server 192.168.31.201:6443;\n    server 192.168.31.202:6443;\n    server 192.168.31.203:6443;\n}\nserver {\n    listen 6443;\n    proxy_connect_timeout 1s;\n    proxy_pass k8s-apiserver;\n}\n\nupstream ingress-http {\n    server 10.0.0.21:30080;   # \u8fd9\u91cc\u9700\u8981\u66f4\u6539\u6210ingress\u7684NodePort\n    server 10.0.0.22:30080;   # \u8fd9\u91cc\u9700\u8981\u66f4\u6539\u6210ingress\u7684NodePort\n}\nserver {\n    listen 80;\n    proxy_connect_timeout 1s;\n    proxy_pass ingress-http;\n}\n\nupstream ingress-https {\n    server 10.0.0.21:30443;   # \u8fd9\u91cc\u9700\u8981\u66f4\u6539\u6210ingress\u7684NodePort\n    server 10.0.0.22:30443;   # \u8fd9\u91cc\u9700\u8981\u66f4\u6539\u6210ingress\u7684NodePort\n}\nserver {\n    listen 443;\n    proxy_connect_timeout 1s;\n    proxy_pass ingress-https;\n}\n\n#\u68c0\u9a8cNginx\nnginx -t\n\n#\u91cd\u542fNginx\nsystemctl restart nginx\n\n#\u8fd9\u91cc\u662f\u4e3a\u4e86\u89e3\u51b3\u62a5\u9519\ncd sites-enabled\nrm -rf default\n\n#\u91cd\u542fNginx\nsystemctl restart nginx\n\n#\u67e5\u770bNginx\u7684\u8fd0\u884c\u72b6\u6001\nps -ef | grep nginx <\/code><\/pre>\n<h3>3.hep-k8s-master01<\/h3>\n<p>hep-k8s-master01\u4e0a\u6267\u884c\u4e0b\u9762\u64cd\u4f5c<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362root\u7528\u6237\nsudo su -\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u66f4\u65b0\u5b89\u88c5\napt upgrade -y\n\n#\u8bbe\u7f6ehostname\nhostnamectl set-hostname hep-k8s-master01\n\n#\u8bbe\u7f6ehosts\nvim \/etc\/hosts\n# \u589e\u52a0\u4e0b\u9762\u5185\u5bb9\n192.168.31.201 hep-k8s-master01\n192.168.31.202 hep-k8s-master02\n192.168.31.203 hep-k8s-master03\n192.168.31.204 hep-k8s-worker01\n192.168.31.205 hep-k8s-worker02\n192.168.31.206 hep-k8s-worker03\n192.168.31.207 hep-k8s-worker04\n\n#\u5173\u95edswap\nswapoff -a\nsed -i &#039;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#039; \/etc\/fstab\n\n#\u6dfb\u52a0\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\ntee \/etc\/modules-load.d\/containerd.conf&lt;&lt;EOF\noverlay\nbr_netfilter\nEOF\n\n#\u52a0\u8f7d\u5185\u6838\u6a21\u5757\nmodprobe overlay\nmodprobe br_netfilter\n\n#\u8bbe\u7f6e\u5185\u6838\u53c2\u6570\ntee \/etc\/sysctl.d\/kubernetes.conf&lt;&lt;EOF\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nEOF\n\n#\u5e94\u7528\u5185\u6838\u53c2\u6570\nsysctl --system\n\n#\u5b89\u88c5curl gnupg2 software-properties-common apt-transport-https ca-certificates\napt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates\n\n#\u5b89\u88c5GPG\u8bc1\u4e66\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\n\n#\u5199\u5165\u8f6f\u4ef6\u6e90\u4fe1\u606f\nadd-apt-repository &quot;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u5b89\u88c5containerd\napt install -y containerd.io\n\n#\u751f\u6210containetd\u7684\u914d\u7f6e\u6587\u4ef6\ncontainerd config default | sudo tee \/etc\/containerd\/config.toml &gt;\/dev\/null 2&gt;&amp;1\n\n#\u4fee\u6539cgroup Driver\u4e3asystemd\nsed -i &#039;s\/SystemdCgroup \\= false\/SystemdCgroup \\= true\/g&#039; \/etc\/containerd\/config.toml\n\n#\u5c06\u955c\u50cf\u6e90\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91 google_containers \u955c\u50cf\u6e90\nsed -i &#039;s\/k8s.gcr.io\/registry.aliyuncs.com\\\/google_containers\/g&#039; \/etc\/containerd\/config.toml\n\n#\u91cd\u65b0\u542f\u52a8containerd\nsystemctl restart containerd\n\n#\u542f\u52a8containerd\u670d\u52a1\nsystemctl enable containerd\n\n#\u6dfb\u52a0 apt key\ncurl https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/doc\/apt-key.gpg | sudo apt-key add -\n\n#\u6dfb\u52a0Kubernetes\u7684apt\u6e90\u4e3a\u963f\u91cc\u4e91\u7684\u6e90\napt-add-repository &quot;deb https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/ kubernetes-xenial main&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#kubelet kubeadm kubectl\napt install -y kubelet kubeadm kubectl\n\n#\u9501\u5b9a\u7248\u672c\uff0c\u4e0d\u968f apt upgrade \u66f4\u65b0\napt-mark hold kubelet kubeadm kubectl\n\n#\u67e5\u770b\nkubeadm version\n\n#\u5f00\u542f\u8def\u7531\u529f\u80fd\nsysctl -w net.ipv4.ip_forward=1\n\n#\u521d\u59cb\u5316kubernetes\uff0c\u6307\u5b9a\u7248\u672c\u53f7\u4e3a\u6700\u65b0\u72481.25.0\uff0c192.168.31.200\u4e3ahep-k8s-lb-nginx\u8d1f\u8f7d\u5747\u8861\u673a\u5668\u7684IP\nsudo kubeadm init \\\n--kubernetes-version=v1.25.0  \\\n--image-repository registry.aliyuncs.com\/google_containers --v=5 \\\n--control-plane-endpoint &quot;192.168.31.200:6443&quot; \\\n--upload-certs \\\n--service-cidr=10.96.0.0\/12 \\\n--pod-network-cidr=10.244.0.0\/16\n\n#\u6267\u884c\u6210\u529f\u4e4b\u540e\u4f1a\u6253\u5370\u4ee5\u4e0b\u4fe1\u606f\uff0c\u8bb0\u5f97\u590d\u5236\u51fa\u6765\n#-------------------------------------------------------------------------------------------\n[bootstrap-token] Configured RBAC rules to allow certificate rotation for all node client certificates in the cluster\n[bootstrap-token] Creating the &quot;cluster-info&quot; ConfigMap in the &quot;kube-public&quot; namespace\nI0904 00:06:45.041744    7446 clusterinfo.go:47] [bootstrap-token] loading admin kubeconfig\nI0904 00:06:45.042651    7446 clusterinfo.go:58] [bootstrap-token] copying the cluster from admin.conf to the bootstrap kubeconfig\nI0904 00:06:45.043146    7446 clusterinfo.go:70] [bootstrap-token] creating\/updating ConfigMap in kube-public namespace\nI0904 00:06:45.047066    7446 clusterinfo.go:84] creating the RBAC rules for exposing the cluster-info ConfigMap in the kube-public namespace\nI0904 00:06:45.054296    7446 kubeletfinalize.go:90] [kubelet-finalize] Assuming that kubelet client certificate rotation is enabled: found &quot;\/var\/lib\/kubelet\/pki\/kubelet-client-current.pem&quot;\n[kubelet-finalize] Updating &quot;\/etc\/kubernetes\/kubelet.conf&quot; to point to a rotatable kubelet client certificate and key\nI0904 00:06:45.055558    7446 kubeletfinalize.go:134] [kubelet-finalize] Restarting the kubelet to enable client certificate rotation\n[addons] Applied essential addon: CoreDNS\nI0904 00:06:45.865514    7446 request.go:533] Waited for 181.250352ms due to client-side throttling, not priority and fairness, request: POST:https:\/\/192.168.31.200:6443\/api\/v1\/namespaces\/kube-system\/serviceaccounts?timeout=10s\n[addons] Applied essential addon: kube-proxy\n\nYour Kubernetes control-plane has initialized successfully!\n\nTo start using your cluster, you need to run the following as a regular user:\n\n  mkdir -p $HOME\/.kube\n  sudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\n  sudo chown $(id -u):$(id -g) $HOME\/.kube\/config\n\nAlternatively, if you are the root user, you can run:\n\n  export KUBECONFIG=\/etc\/kubernetes\/admin.conf\n\nYou should now deploy a pod network to the cluster.\nRun &quot;kubectl apply -f [podnetwork].yaml&quot; with one of the options listed at:\n  https:\/\/kubernetes.io\/docs\/concepts\/cluster-administration\/addons\/\n\nYou can now join any number of the control-plane node running the following command on each as root:\n\n  kubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1 \\\n        --control-plane --certificate-key 130aea3340faf2ee2c4d4fe73f10d4523c3e9c87fb3a761b080ffae75559fd06\n\nPlease note that the certificate-key gives access to cluster sensitive data, keep it secret!\nAs a safeguard, uploaded-certs will be deleted in two hours; If necessary, you can use\n&quot;kubeadm init phase upload-certs --upload-certs&quot; to reload certs afterward.\n\nThen you can join any number of worker nodes by running the following on each as root:\n\nkubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1\nroot@hep:~#\n#-------------------------------------------------------------------------------------------\n\n#\u6267\u884c\u6210\u529f\u4e4b\u540e\uff0c\u6267\u884c\u4e0b\u9762\u64cd\u4f5c\n#To start using your cluster, you need to run the following as a regular user\nmkdir -p $HOME\/.kube\nsudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\nsudo chown $(id -u):$(id -g) $HOME\/.kube\/config\n\n#Alternatively, if you are the root user, you can run\nexport KUBECONFIG=\/etc\/kubernetes\/admin.conf\n\n#\u67e5\u770bcluster-info\nkubectl cluster-info\n\n#\u67e5\u770bnode\u4fe1\u606f\nkubectl get nodes<\/code><\/pre>\n<p>\u6267\u884c\u6210\u529f\u754c\u9762\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/09\/04\/image-20220904000820021.png\" alt=\"image-20220904000820021\" \/><\/p>\n<h3>3.hep-k8s-master02<\/h3>\n<p>hep-k8s-master02\u4e0a\u6267\u884c\uff1a<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362root\u7528\u6237\nsudo su -\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u66f4\u65b0\u5b89\u88c5\napt upgrade -y\n\n#\u8bbe\u7f6ehostname\nhostnamectl set-hostname hep-k8s-master02\n\n#\u8bbe\u7f6ehosts\nvim \/etc\/hosts\n# \u589e\u52a0\u4e0b\u9762\u5185\u5bb9\n192.168.31.201 hep-k8s-master01\n192.168.31.202 hep-k8s-master02\n192.168.31.203 hep-k8s-master03\n192.168.31.204 hep-k8s-worker01\n192.168.31.205 hep-k8s-worker02\n192.168.31.206 hep-k8s-worker03\n192.168.31.207 hep-k8s-worker04\n\n#\u5173\u95edswap\nswapoff -a\nsed -i &#039;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#039; \/etc\/fstab\n\n#\u6dfb\u52a0\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\ntee \/etc\/modules-load.d\/containerd.conf&lt;&lt;EOF\noverlay\nbr_netfilter\nEOF\n\n#\u52a0\u8f7d\u5185\u6838\u6a21\u5757\nmodprobe overlay\nmodprobe br_netfilter\n\n#\u8bbe\u7f6e\u5185\u6838\u53c2\u6570\ntee \/etc\/sysctl.d\/kubernetes.conf&lt;&lt;EOF\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nEOF\n\n#\u5e94\u7528\u5185\u6838\u53c2\u6570\nsysctl --system\n\n#\u5b89\u88c5curl gnupg2 software-properties-common apt-transport-https ca-certificates\napt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates\n\n#\u5b89\u88c5GPG\u8bc1\u4e66\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\n\n#\u5199\u5165\u8f6f\u4ef6\u6e90\u4fe1\u606f\nadd-apt-repository &quot;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u5b89\u88c5containerd\napt install -y containerd.io\n\n#\u751f\u6210containetd\u7684\u914d\u7f6e\u6587\u4ef6\ncontainerd config default | sudo tee \/etc\/containerd\/config.toml &gt;\/dev\/null 2&gt;&amp;1\n\n#\u4fee\u6539cgroup Driver\u4e3asystemd\nsed -i &#039;s\/SystemdCgroup \\= false\/SystemdCgroup \\= true\/g&#039; \/etc\/containerd\/config.toml\n\n#\u5c06\u955c\u50cf\u6e90\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91 google_containers \u955c\u50cf\u6e90\nsed -i &#039;s\/k8s.gcr.io\/registry.aliyuncs.com\\\/google_containers\/g&#039; \/etc\/containerd\/config.toml\n\n#\u91cd\u65b0\u542f\u52a8containerd\nsystemctl restart containerd\n\n#\u542f\u52a8containerd\u670d\u52a1\nsystemctl enable containerd\n\n#\u6dfb\u52a0 apt key\ncurl https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/doc\/apt-key.gpg | sudo apt-key add -\n\n#\u6dfb\u52a0Kubernetes\u7684apt\u6e90\u4e3a\u963f\u91cc\u4e91\u7684\u6e90\napt-add-repository &quot;deb https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/ kubernetes-xenial main&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#kubelet kubeadm kubectl\napt install -y kubelet kubeadm kubectl\n\n#\u9501\u5b9a\u7248\u672c\uff0c\u4e0d\u968f apt upgrade \u66f4\u65b0\napt-mark hold kubelet kubeadm kubectl\n\n#\u67e5\u770b\nkubeadm version\n\n#\u5f00\u542f\u8def\u7531\u529f\u80fd\nsysctl -w net.ipv4.ip_forward=1\n\n#\u8fd9\u6761\u547d\u4ee4\u5728master01\u4e0a\u6267\u884c\u6210\u529f\u540e\u62f7\u8d1d\u7684\u547d\u4ee4\uff0c\u5b8c\u6210hep-k8s-master02\u7684\u5b89\u88c5\uff0c\u5e76\u52a0\u5165\u5230master\u96c6\u7fa4\n#You can now join any number of the control-plane node running the following command on each as root\nkubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1 \\\n        --control-plane --certificate-key 130aea3340faf2ee2c4d4fe73f10d4523c3e9c87fb3a761b080ffae75559fd06\n\n#\u6267\u884c\u6210\u529f\u4e4b\u540e\uff0c\u6267\u884c\u4e0b\u9762\u64cd\u4f5c\n#To start using your cluster, you need to run the following as a regular user\nmkdir -p $HOME\/.kube\nsudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\nsudo chown $(id -u):$(id -g) $HOME\/.kube\/config<\/code><\/pre>\n<h3>4.hep-k8s-master03<\/h3>\n<p>hep-k8s-master03\u4e0a\u6267\u884c\uff1a<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362root\u7528\u6237\nsudo su -\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u66f4\u65b0\u5b89\u88c5\napt upgrade -y\n\n#\u8bbe\u7f6ehostname\nhostnamectl set-hostname hep-k8s-master02\n\n#\u8bbe\u7f6ehosts\nvim \/etc\/hosts\n# \u589e\u52a0\u4e0b\u9762\u5185\u5bb9\n192.168.31.201 hep-k8s-master01\n192.168.31.202 hep-k8s-master02\n192.168.31.203 hep-k8s-master03\n192.168.31.204 hep-k8s-worker01\n192.168.31.205 hep-k8s-worker02\n192.168.31.206 hep-k8s-worker03\n192.168.31.207 hep-k8s-worker04\n\n#\u5173\u95edswap\nswapoff -a\nsed -i &#039;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#039; \/etc\/fstab\n\n#\u6dfb\u52a0\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\ntee \/etc\/modules-load.d\/containerd.conf&lt;&lt;EOF\noverlay\nbr_netfilter\nEOF\n\n#\u52a0\u8f7d\u5185\u6838\u6a21\u5757\nmodprobe overlay\nmodprobe br_netfilter\n\n#\u8bbe\u7f6e\u5185\u6838\u53c2\u6570\ntee \/etc\/sysctl.d\/kubernetes.conf&lt;&lt;EOF\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nEOF\n\n#\u5e94\u7528\u5185\u6838\u53c2\u6570\nsysctl --system\n\n#\u5b89\u88c5curl gnupg2 software-properties-common apt-transport-https ca-certificates\napt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates\n\n#\u5b89\u88c5GPG\u8bc1\u4e66\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\n\n#\u5199\u5165\u8f6f\u4ef6\u6e90\u4fe1\u606f\nadd-apt-repository &quot;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u5b89\u88c5containerd\napt install -y containerd.io\n\n#\u751f\u6210containetd\u7684\u914d\u7f6e\u6587\u4ef6\ncontainerd config default | sudo tee \/etc\/containerd\/config.toml &gt;\/dev\/null 2&gt;&amp;1\n\n#\u4fee\u6539cgroup Driver\u4e3asystemd\nsed -i &#039;s\/SystemdCgroup \\= false\/SystemdCgroup \\= true\/g&#039; \/etc\/containerd\/config.toml\n\n#\u5c06\u955c\u50cf\u6e90\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91 google_containers \u955c\u50cf\u6e90\nsed -i &#039;s\/k8s.gcr.io\/registry.aliyuncs.com\\\/google_containers\/g&#039; \/etc\/containerd\/config.toml\n\n#\u91cd\u65b0\u542f\u52a8containerd\nsystemctl restart containerd\n\n#\u542f\u52a8containerd\u670d\u52a1\nsystemctl enable containerd\n\n#\u6dfb\u52a0 apt key\ncurl https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/doc\/apt-key.gpg | sudo apt-key add -\n\n#\u6dfb\u52a0Kubernetes\u7684apt\u6e90\u4e3a\u963f\u91cc\u4e91\u7684\u6e90\napt-add-repository &quot;deb https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/ kubernetes-xenial main&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#kubelet kubeadm kubectl\napt install -y kubelet kubeadm kubectl\n\n#\u9501\u5b9a\u7248\u672c\uff0c\u4e0d\u968f apt upgrade \u66f4\u65b0\napt-mark hold kubelet kubeadm kubectl\n\n#\u67e5\u770b\nkubeadm version\n\n#\u5f00\u542f\u8def\u7531\u529f\u80fd\nsysctl -w net.ipv4.ip_forward=1\n\n#\u8fd9\u6761\u547d\u4ee4\u5728master01\u4e0a\u6267\u884c\u6210\u529f\u540e\u62f7\u8d1d\u7684\u547d\u4ee4\uff0c\u5b8c\u6210hep-k8s-master03\u7684\u5b89\u88c5\uff0c\u5e76\u52a0\u5165\u5230master\u96c6\u7fa4\n#You can now join any number of the control-plane node running the following command on each as root\nkubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1 \\\n        --control-plane --certificate-key 130aea3340faf2ee2c4d4fe73f10d4523c3e9c87fb3a761b080ffae75559fd06\n\n#\u6267\u884c\u6210\u529f\u4e4b\u540e\uff0c\u6267\u884c\u4e0b\u9762\u64cd\u4f5c\n#To start using your cluster, you need to run the following as a regular user\nmkdir -p $HOME\/.kube\nsudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\nsudo chown $(id -u):$(id -g) $HOME\/.kube\/config<\/code><\/pre>\n<h3>5.hep-k8s-worker01<\/h3>\n<p>hep-k8s-worker01\u4e0a\u6267\u884c\uff1a<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362root\u7528\u6237\nsudo su -\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u66f4\u65b0\u5b89\u88c5\napt upgrade -y\n\n#\u8bbe\u7f6ehostname\nhostnamectl set-hostname hep-k8s-worker01\n\n#\u8bbe\u7f6ehosts\nvim \/etc\/hosts\n# \u589e\u52a0\u4e0b\u9762\u5185\u5bb9\n192.168.31.201 hep-k8s-master01\n192.168.31.202 hep-k8s-master02\n192.168.31.203 hep-k8s-master03\n192.168.31.204 hep-k8s-worker01\n192.168.31.205 hep-k8s-worker02\n192.168.31.206 hep-k8s-worker03\n192.168.31.207 hep-k8s-worker04\n\n#\u5173\u95edswap\nswapoff -a\nsed -i &#039;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#039; \/etc\/fstab\n\n#\u6dfb\u52a0\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\ntee \/etc\/modules-load.d\/containerd.conf&lt;&lt;EOF\noverlay\nbr_netfilter\nEOF\n\n#\u52a0\u8f7d\u5185\u6838\u6a21\u5757\nmodprobe overlay\nmodprobe br_netfilter\n\n#\u8bbe\u7f6e\u5185\u6838\u53c2\u6570\ntee \/etc\/sysctl.d\/kubernetes.conf&lt;&lt;EOF\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nEOF\n\n#\u5e94\u7528\u5185\u6838\u53c2\u6570\nsysctl --system\n\n#\u5b89\u88c5curl gnupg2 software-properties-common apt-transport-https ca-certificates\napt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates\n\n#\u5b89\u88c5GPG\u8bc1\u4e66\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\n\n#\u5199\u5165\u8f6f\u4ef6\u6e90\u4fe1\u606f\nadd-apt-repository &quot;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u5b89\u88c5containerd\napt install -y containerd.io\n\n#\u751f\u6210containetd\u7684\u914d\u7f6e\u6587\u4ef6\ncontainerd config default | sudo tee \/etc\/containerd\/config.toml &gt;\/dev\/null 2&gt;&amp;1\n\n#\u4fee\u6539cgroup Driver\u4e3asystemd\nsed -i &#039;s\/SystemdCgroup \\= false\/SystemdCgroup \\= true\/g&#039; \/etc\/containerd\/config.toml\n\n#\u5c06\u955c\u50cf\u6e90\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91 google_containers \u955c\u50cf\u6e90\nsed -i &#039;s\/k8s.gcr.io\/registry.aliyuncs.com\\\/google_containers\/g&#039; \/etc\/containerd\/config.toml\n\n#\u91cd\u65b0\u542f\u52a8containerd\nsystemctl restart containerd\n\n#\u542f\u52a8containerd\u670d\u52a1\nsystemctl enable containerd\n\n#\u6dfb\u52a0 apt key\ncurl https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/doc\/apt-key.gpg | sudo apt-key add -\n\n#\u6dfb\u52a0Kubernetes\u7684apt\u6e90\u4e3a\u963f\u91cc\u4e91\u7684\u6e90\napt-add-repository &quot;deb https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/ kubernetes-xenial main&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#kubelet kubeadm kubectl\napt install -y kubelet kubeadm kubectl\n\n#\u9501\u5b9a\u7248\u672c\uff0c\u4e0d\u968f apt upgrade \u66f4\u65b0\napt-mark hold kubelet kubeadm kubectl\n\n#\u67e5\u770b\nkubeadm version\n\n#\u5f00\u542f\u8def\u7531\u529f\u80fd\nsysctl -w net.ipv4.ip_forward=1\n\n#\u8fd9\u6761\u547d\u4ee4\u5728master01\u4e0a\u6267\u884c\u6210\u529f\u540e\u62f7\u8d1d\u7684\u547d\u4ee4\uff0c\u5b8c\u6210hep-k8s-worker01\u7684\u5b89\u88c5\uff0c\u5e76\u52a0\u5165\u5230worker nodes\n#Then you can join any number of worker nodes by running the following on each as root\nkubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1<\/code><\/pre>\n<h3>6.hep-k8s-worker02<\/h3>\n<p>hep-k8s-worker02\u4e0a\u6267\u884c\uff1a<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362root\u7528\u6237\nsudo su -\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u66f4\u65b0\u5b89\u88c5\napt upgrade -y\n\n#\u8bbe\u7f6ehostname\nhostnamectl set-hostname hep-k8s-worker02\n\n#\u8bbe\u7f6ehosts\nvim \/etc\/hosts\n# \u589e\u52a0\u4e0b\u9762\u5185\u5bb9\n192.168.31.201 hep-k8s-master01\n192.168.31.202 hep-k8s-master02\n192.168.31.203 hep-k8s-master03\n192.168.31.204 hep-k8s-worker01\n192.168.31.205 hep-k8s-worker02\n192.168.31.206 hep-k8s-worker03\n192.168.31.207 hep-k8s-worker04\n\n#\u5173\u95edswap\nswapoff -a\nsed -i &#039;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#039; \/etc\/fstab\n\n#\u6dfb\u52a0\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\ntee \/etc\/modules-load.d\/containerd.conf&lt;&lt;EOF\noverlay\nbr_netfilter\nEOF\n\n#\u52a0\u8f7d\u5185\u6838\u6a21\u5757\nmodprobe overlay\nmodprobe br_netfilter\n\n#\u8bbe\u7f6e\u5185\u6838\u53c2\u6570\ntee \/etc\/sysctl.d\/kubernetes.conf&lt;&lt;EOF\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nEOF\n\n#\u5e94\u7528\u5185\u6838\u53c2\u6570\nsysctl --system\n\n#\u5b89\u88c5curl gnupg2 software-properties-common apt-transport-https ca-certificates\napt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates\n\n#\u5b89\u88c5GPG\u8bc1\u4e66\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\n\n#\u5199\u5165\u8f6f\u4ef6\u6e90\u4fe1\u606f\nadd-apt-repository &quot;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u5b89\u88c5containerd\napt install -y containerd.io\n\n#\u751f\u6210containetd\u7684\u914d\u7f6e\u6587\u4ef6\ncontainerd config default | sudo tee \/etc\/containerd\/config.toml &gt;\/dev\/null 2&gt;&amp;1\n\n#\u4fee\u6539cgroup Driver\u4e3asystemd\nsed -i &#039;s\/SystemdCgroup \\= false\/SystemdCgroup \\= true\/g&#039; \/etc\/containerd\/config.toml\n\n#\u5c06\u955c\u50cf\u6e90\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91 google_containers \u955c\u50cf\u6e90\nsed -i &#039;s\/k8s.gcr.io\/registry.aliyuncs.com\\\/google_containers\/g&#039; \/etc\/containerd\/config.toml\n\n#\u91cd\u65b0\u542f\u52a8containerd\nsystemctl restart containerd\n\n#\u542f\u52a8containerd\u670d\u52a1\nsystemctl enable containerd\n\n#\u6dfb\u52a0 apt key\ncurl https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/doc\/apt-key.gpg | sudo apt-key add -\n\n#\u6dfb\u52a0Kubernetes\u7684apt\u6e90\u4e3a\u963f\u91cc\u4e91\u7684\u6e90\napt-add-repository &quot;deb https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/ kubernetes-xenial main&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#kubelet kubeadm kubectl\napt install -y kubelet kubeadm kubectl\n\n#\u9501\u5b9a\u7248\u672c\uff0c\u4e0d\u968f apt upgrade \u66f4\u65b0\napt-mark hold kubelet kubeadm kubectl\n\n#\u67e5\u770b\nkubeadm version\n\n#\u5f00\u542f\u8def\u7531\u529f\u80fd\nsysctl -w net.ipv4.ip_forward=1\n\n#\u8fd9\u6761\u547d\u4ee4\u5728master01\u4e0a\u6267\u884c\u6210\u529f\u540e\u62f7\u8d1d\u7684\u547d\u4ee4\uff0c\u5b8c\u6210hep-k8s-worker02\u7684\u5b89\u88c5\uff0c\u5e76\u52a0\u5165\u5230worker nodes\n#Then you can join any number of worker nodes by running the following on each as root\nkubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1\n<\/code><\/pre>\n<h3>7.hep-k8s-worker03<\/h3>\n<p>hep-k8s-worker03\u4e0a\u6267\u884c\uff1a<\/p>\n<pre><code class=\"language-shell\">#\u5207\u6362root\u7528\u6237\nsudo su -\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u66f4\u65b0\u5b89\u88c5\napt upgrade -y\n\n#\u8bbe\u7f6ehostname\nhostnamectl set-hostname hep-k8s-worker03\n\n#\u8bbe\u7f6ehosts\nvim \/etc\/hosts\n# \u589e\u52a0\u4e0b\u9762\u5185\u5bb9\n192.168.31.201 hep-k8s-master01\n192.168.31.202 hep-k8s-master02\n192.168.31.203 hep-k8s-master03\n192.168.31.204 hep-k8s-worker01\n192.168.31.205 hep-k8s-worker02\n192.168.31.206 hep-k8s-worker03\n192.168.31.207 hep-k8s-worker04\n\n#\u5173\u95edswap\nswapoff -a\nsed -i &#039;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#039; \/etc\/fstab\n\n#\u6dfb\u52a0\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\ntee \/etc\/modules-load.d\/containerd.conf&lt;&lt;EOF\noverlay\nbr_netfilter\nEOF\n\n#\u52a0\u8f7d\u5185\u6838\u6a21\u5757\nmodprobe overlay\nmodprobe br_netfilter\n\n#\u8bbe\u7f6e\u5185\u6838\u53c2\u6570\ntee \/etc\/sysctl.d\/kubernetes.conf&lt;&lt;EOF\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nEOF\n\n#\u5e94\u7528\u5185\u6838\u53c2\u6570\nsysctl --system\n\n#\u5b89\u88c5curl gnupg2 software-properties-common apt-transport-https ca-certificates\napt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates\n\n#\u5b89\u88c5GPG\u8bc1\u4e66\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\n\n#\u5199\u5165\u8f6f\u4ef6\u6e90\u4fe1\u606f\nadd-apt-repository &quot;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#\u5b89\u88c5containerd\napt install -y containerd.io\n\n#\u751f\u6210containetd\u7684\u914d\u7f6e\u6587\u4ef6\ncontainerd config default | sudo tee \/etc\/containerd\/config.toml &gt;\/dev\/null 2&gt;&amp;1\n\n#\u4fee\u6539cgroup Driver\u4e3asystemd\nsed -i &#039;s\/SystemdCgroup \\= false\/SystemdCgroup \\= true\/g&#039; \/etc\/containerd\/config.toml\n\n#\u5c06\u955c\u50cf\u6e90\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91 google_containers \u955c\u50cf\u6e90\nsed -i &#039;s\/k8s.gcr.io\/registry.aliyuncs.com\\\/google_containers\/g&#039; \/etc\/containerd\/config.toml\n\n#\u91cd\u65b0\u542f\u52a8containerd\nsystemctl restart containerd\n\n#\u542f\u52a8containerd\u670d\u52a1\nsystemctl enable containerd\n\n#\u6dfb\u52a0 apt key\ncurl https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/doc\/apt-key.gpg | sudo apt-key add -\n\n#\u6dfb\u52a0Kubernetes\u7684apt\u6e90\u4e3a\u963f\u91cc\u4e91\u7684\u6e90\napt-add-repository &quot;deb https:\/\/mirrors.aliyun.com\/kubernetes\/apt\/ kubernetes-xenial main&quot;\n\n#\u68c0\u67e5\u66f4\u65b0\napt update\n\n#kubelet kubeadm kubectl\napt install -y kubelet kubeadm kubectl\n\n#\u9501\u5b9a\u7248\u672c\uff0c\u4e0d\u968f apt upgrade \u66f4\u65b0\napt-mark hold kubelet kubeadm kubectl\n\n#\u67e5\u770b\nkubeadm version\n\n#\u5f00\u542f\u8def\u7531\u529f\u80fd\nsysctl -w net.ipv4.ip_forward=1\n\n#\u8fd9\u6761\u547d\u4ee4\u5728master01\u4e0a\u6267\u884c\u6210\u529f\u540e\u62f7\u8d1d\u7684\u547d\u4ee4\uff0c\u5b8c\u6210hep-k8s-worker03\u7684\u5b89\u88c5\uff0c\u5e76\u52a0\u5165\u5230worker nodes\n#Then you can join any number of worker nodes by running the following on each as root\nkubeadm join 192.168.31.200:6443 --token xxcbh2.xdulqkbvvrup3b90 \\\n        --discovery-token-ca-cert-hash sha256:0e10422cacb321985e26077bbaf608cc04e773ff25df3ca9bea85b6fe3146ef1<\/code><\/pre>\n<h3>8.\u5b89\u88c5calico\u7f51\u7edc\u63d2\u4ef6<\/h3>\n<p>\u5f53\u7136\u4f60\u8fd8\u53ef\u4ee5\u63a5\u7740\u6dfb\u52a0\u66f4\u591a\u7684master node\u6216\u8005worker node\u8282\u70b9\uff0c\u64cd\u4f5c\u548c\u4e0a\u9762\u4e00\u6837\u3002\u73b0\u5728\u6267\u884c\u547d\u4ee4kubectl get node -A\u663e\u793a\u8282\u70b9\u72b6\u6001\u4e3aNotReady\uff0c\u56e0\u4e3a\u7f51\u7edc\u8fd8\u6ca1\u51c6\u5907\u597d\u3002<\/p>\n<pre><code class=\"language-shell\">#\u5b89\u88c5calico\u7f51\u7edc\u63d2\u4ef6\nkubectl apply -f &quot;https:\/\/docs.projectcalico.org\/manifests\/calico.yaml&quot;\n\n#\u83b7\u5f97pod\u8282\u70b9\u4fe1\u606f\nkubectl get pod -A\n\n#\u83b7\u5f97node\u8282\u70b9\u4fe1\u606f\nkubectl get node -A<\/code><\/pre>\n<p>\u6b64\u65f6node\u8282\u70b9\u548cpod\u8282\u70b9\u90fd\u5df2\u7ecf\u5904\u4e8eReady\uff0c\u5982\u679c\u6ca1\u6709\u5904\u4e8eReady\u72b6\u6001\u9700\u8981\u7a0d\u7b49\u51e0\u5206\u949f\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/09\/04\/image-20220904023859824.png\" alt=\"image-20220904023859824\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu22.04\u5b89\u88c5Kubernetes1.25.0(k8s1.25.0)\u9ad8\u53ef\u7528\u96c6\u7fa4 1.\u603b\u4f53\u6982\u89c8 \u76ee\u524d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-18"],"_links":{"self":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=432"}],"version-history":[{"count":4,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":459,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/432\/revisions\/459"}],"wp:attachment":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}