{"id":838,"date":"2020-11-07T17:35:51","date_gmt":"2020-11-07T09:35:51","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=838"},"modified":"2020-11-11T13:50:01","modified_gmt":"2020-11-11T05:50:01","slug":"install-k3s-cluster-use-external-mysql-database-and","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/","title":{"rendered":"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528"},"content":{"rendered":"\n

Rancher \u662f\u4e3a\u4f7f\u7528\u5bb9\u5668\u7684\u516c\u53f8\u6253\u9020\u7684\u5bb9\u5668\u7ba1\u7406\u5e73\u53f0\u3002Rancher \u7b80\u5316\u4e86\u4f7f\u7528 Kubernetes \u7684\u6d41\u7a0b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u968f\u5904\u8fd0\u884c Kubernetes\uff08Run Kubernetes Everywhere\uff09\uff0c\u6ee1\u8db3 IT \u9700\u6c42\u89c4\u8303\uff0c\u8d4b\u80fd DevOps \u56e2\u961f\u3002<\/p>\n\n\n\n

K3s \u8f7b\u91cf\u7ea7 Kubernetes\u3002\u5b89\u88c5\u7b80\u5355\uff0c\u5185\u5b58\u53ea\u6709\u4e00\u534a\uff0c\u6240\u6709\u7684\u4e8c\u8fdb\u5236\u90fd\u4e0d\u5230 100MB\u3002<\/p>\n\n\n\n

\u4e00\u3001\u5b89\u88c5mysql5.7<\/p>\n\n\n\n

#\u4e0b\u8f7d\u5e76\u5b89\u88c5MySQL\u5b98\u65b9\u7684 Yum Repository\n1\u3001 wget -i -c http:\/\/dev.mysql.com\/get\/mysql57-community-release-el7-10.noarch.rpm\n2\u3001 yum -y install mysql57-community-release-el7-10.noarch.rpm\n#\u5b89\u88c5mysql\u6570\u636e\u5e93\n3\u3001 yum -y install mysql-community-server\n#\u542f\u52a8\u6570\u636e\uff0c\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\n4\u3001systemctl start  mysqld && systemctl enable   mysqld\n#\u67e5\u770b\u8fd0\u884c\u72b6\u6001\n5\u3001systemctl status mysqld.service\n#\u4fee\u6539\u521d\u59cb\u5bc6\u7801\n\uff081\uff09grep \"password\" \/var\/log\/mysqld.log\n\uff082\uff09mysql -uroot -p\n\uff083\uff09ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';\n\uff084\uff09flush privileges; \n#\u521b\u5efak3s\u6570\u636e\u5e93\n6\u3001create database k3s\uff1b\n<\/code><\/pre>\n\n\n\n

\u4e8c\u3001k3s\u7fa4\u96c6\u5b89\u88c5<\/p>\n\n\n\n

K3s \u5305\u542b\u5e76\u9ed8\u8ba4\u4e3acontainerd<\/a>\uff0c \u4e00\u4e2a\u884c\u4e1a\u6807\u51c6\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u3002<\/p>\n\n\n\n

\u8981\u4f7f\u7528 Docker \u800c\u4e0d\u662f containerd, \u52a0 --docker \u53c2\u6570<\/p>\n\n\n\n

curl -sfL http:\/\/rancher-mirror.cnrancher.com\/k3s\/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -s -   server \\\n  --datastore-endpoint=\"mysql:\/\/root:password@tcp(localhost:3306)\/k3s\"<\/code><\/pre>\n\n\n\n

\u7fa4\u96c6\u8bbf\u95ee\uff1a<\/p>\n\n\n\n

\u5b58\u50a8\u5728\/etc\/rancher\/k3s\/k3s.yaml<\/code>\u7684 kubeconfig \u6587\u4ef6\u7528\u4e8e\u5bf9 Kubernetes \u96c6\u7fa4\u7684\u8bbf\u95ee\u3002\u5982\u679c\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86\u4e0a\u6e38\u7684 Kubernetes \u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5982 kubectl \u6216 helm\uff0c\u4f60\u9700\u8981\u7528\u6b63\u786e\u7684 kubeconfig \u8def\u5f84\u914d\u7f6e\u5b83\u4eec\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5bfc\u51faKUBECONFIG<\/code>\u73af\u5883\u53d8\u91cf\u6216\u8c03\u7528--kubeconfig<\/code>\u547d\u4ee4\u884c\u6807\u5fd7\u6765\u5b8c\u6210\u3002\u8be6\u60c5\u8bf7\u53c2\u8003\u4e0b\u9762\u7684\u4f8b\u5b50\u3002<\/p>\n\n\n\n

\u5229\u7528 KUBECONFIG \u73af\u5883\u53d8\u91cf\uff1a\nexport KUBECONFIG=\/etc\/rancher\/k3s\/k3s.yaml\nkubectl get pods --all-namespaces\nhelm ls --all-namespaces<\/pre>\n\n\n\n
\"\"<\/figure>\n\n\n\n
\u6216\u8005\u5728\u547d\u4ee4\u4e2d\u6307\u5b9a kubeconfig \u6587\u4ef6\u7684\u4f4d\u7f6e\uff1a\nkubectl --kubeconfig \/etc\/rancher\/k3s\/k3s.yaml get pods --all-namespaces\nhelm --kubeconfig \/etc\/rancher\/k3s\/k3s.yaml ls --all-namespaces<\/pre>\n\n\n\n

\u4f7f\u7528kubectl\u4ece\u5916\u90e8\u8bbf\u95ee\u96c6\u7fa4<\/p>\n\n\n\n

\u5c06\/etc\/rancher\/k3s\/k3s.yaml<\/code>\u590d\u5236\u5230\u96c6\u7fa4\u5916\u90e8\u7684\u8ba1\u7b97\u673a\u4e0a\u7684~\/.kube\/config<\/code>\u3002\u7136\u540e\u7528\u4f60\u7684 K3s \u670d\u52a1\u5668\u7684 IP \u6216\u540d\u79f0\u66ff\u6362 \"localhost\"\u3002kubectl<\/code>\u73b0\u5728\u53ef\u4ee5\u7ba1\u7406\u4f60\u7684 K3s \u96c6\u7fa4\u4e86\u3002<\/p>\n\n\n\n

\u4e09\u3001\u5b89\u88c5helm<\/p>\n\n\n\n

#\u4e0b\u8f7d\n 1\u3001wget https:\/\/get.helm.sh\/helm-v3.2.4-linux-amd64.tar.gz\n#\u89e3\u538b\u5b89\u88c5\n2\u3001 tar -zxvf helm-v3.2.4-linux-amd64.tar.gz\n3\u3001cd linux-amd64\/\n4\u3001mv helm \/usr\/bin\/\n5\u3001helm version<\/code><\/pre>\n\n\n\n
\"\"<\/figure>\n\n\n\n

\u56db\u3001\u5b89\u88c5rancher\u9ad8\u53ef\u7528<\/p>\n\n\n\n

1\u3001\u6dfb\u52a0helm chart \u4ed3\u5e93<\/p>\n\n\n\n

latest<\/code>: \u63a8\u8350\u5728\u5c1d\u8bd5\u65b0\u529f\u80fd\u65f6\u4f7f\u7528\u3002\nstable<\/code>: \u63a8\u8350\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\uff08\u63a8\u8350\uff09\nalpha<\/code>: \u672a\u6765\u7248\u672c\u7684\u5b9e\u9a8c\u6027\u9884\u89c8\u3002\nhelm repo add rancher-stable https:\/\/releases.rancher.com\/server-charts\/stable<\/pre>\n\n\n\n

2\u3001\u4e3a Rancher \u521b\u5efa Namespace<\/p>\n\n\n\n

\u6211\u4eec\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a Kubernetes Namespace\uff0c\u5728 Namespace \u4e2d\u5b89\u88c5\u7531 Chart \u521b\u5efa\u7684\u8d44\u6e90\u3002\u8fd9\u4e2a\u547d\u540d\u7a7a\u95f4\u7684\u540d\u79f0\u4e3acattle-system<\/code>\uff1a<\/p>\n\n\n\n

kubectl create namespace cattle-system<\/code><\/pre>\n\n\n\n

3\u3001\u4f7f\u7528\u5df2\u6709\u7684\u8bc1\u4e66\u5b89\u88c5rancher<\/p>\n\n\n\n

\u8fd9\u91cc\u9009\u62e9\u4f7f\u7528\u81ea\u5df1\u5df2\u6709\u7684\u8bc1\u4e66\uff0c\u66f4\u591a\u65b9\u5f0f\u5982\u81ea\u7b7e\uff0crancher\u751f\u6210\u8bc1\u4e66\u7b49\u65b9\u5f0f\u89c1\u5b98\u7f51\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u5fc5\u987b\u4e0a\u4f20PEM \u683c\u5f0f\u7684\u8bc1\u4e66<\/p><\/blockquote>\n\n\n\n

\u521b\u5efa\u8bc1\u4e66<\/p>\n\n\n\n

kubectl -n cattle-system create secret tls tls-rancher-ingress --cert=.\/wangfeng.com.pem --key=.\/wangfeng.com.key<\/code><\/pre>\n\n\n\n

\u6ce8\u610f\uff1asecret \u540d\u79f0\u4e3a tls-rancher-ingress<\/p><\/blockquote>\n\n\n\n

  helm install rancher rancher-stable\/rancher \\\n --namespace cattle-system \\\n --set hostname=rancher.wangfeng.live \\\n --set ingress.tls.source=secret<\/code><\/pre>\n\n\n\n

4\u3001\u9a8c\u8bc1\u662f\u5426\u6210\u529f<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u505a\u597d\u57df\u540d\u89e3\u6790\u8bbf\u95ee\u96c6\u7fa4\u662f\u5426\u6210\u529f\uff1ahttps:\/\/rancher.wangfeng.live<\/p>\n\n\n\n

\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.rancher.cn\/<\/a><\/p>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

Rancher \u662f\u4e3a\u4f7f\u7528\u5bb9\u5668\u7684\u516c\u53f8\u6253\u9020\u7684\u5bb9\u5668\u7ba1\u7406\u5e73\u53f0\u3002Rancher \u7b80\u5316\u4e86\u4f7f\u7528 Kubernetes \u7684\u6d41\u7a0b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,17],"tags":[63,55,66,64],"yoast_head":"\n\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\" \/>\n<meta property=\"og:description\" content=\"Rancher \u662f\u4e3a\u4f7f\u7528\u5bb9\u5668\u7684\u516c\u53f8\u6253\u9020\u7684\u5bb9\u5668\u7ba1\u7406\u5e73\u53f0\u3002Rancher \u7b80\u5316\u4e86\u4f7f\u7528 Kubernetes \u7684\u6d41\u7a0b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-07T09:35:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-11T05:50:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wangfeng.live\/wp-content\/uploads\/2020\/11\/image-1.png\" \/>\n<meta name=\"author\" content=\"\u7ba1\u7406\u5458\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\"},\"author\":{\"name\":\"\u7ba1\u7406\u5458\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"headline\":\"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528\",\"datePublished\":\"2020-11-07T09:35:51+00:00\",\"dateModified\":\"2020-11-11T05:50:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\"},\"wordCount\":62,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"keywords\":[\"k3s\",\"kubernetes\",\"mysql\",\"rancher\"],\"articleSection\":[\"Kubernetes\",\"Linux\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\",\"url\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\",\"name\":\"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\",\"isPartOf\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#website\"},\"datePublished\":\"2020-11-07T09:35:51+00:00\",\"dateModified\":\"2020-11-11T05:50:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.linuxdevops.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"kubernetes\",\"item\":\"https:\/\/www.linuxdevops.cn\/kubernetes\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#website\",\"url\":\"https:\/\/www.linuxdevops.cn\/\",\"name\":\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\",\"description\":\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\u7b14\u8bb0\",\"publisher\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"alternateName\":\"linuxdevops\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.linuxdevops.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\",\"name\":\"\u7ba1\u7406\u5458\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg\",\"contentUrl\":\"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg\",\"width\":512,\"height\":512,\"caption\":\"\u7ba1\u7406\u5458\"},\"logo\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/\"},\"description\":\"\u7ba1\u7406\u5458\",\"url\":\"https:\/\/www.linuxdevops.cn\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","og_description":"Rancher \u662f\u4e3a\u4f7f\u7528\u5bb9\u5668\u7684\u516c\u53f8\u6253\u9020\u7684\u5bb9\u5668\u7ba1\u7406\u5e73\u53f0\u3002Rancher \u7b80\u5316\u4e86\u4f7f\u7528 Kubernetes \u7684\u6d41\u7a0b","og_url":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/","og_site_name":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","article_published_time":"2020-11-07T09:35:51+00:00","article_modified_time":"2020-11-11T05:50:01+00:00","og_image":[{"url":"https:\/\/www.wangfeng.live\/wp-content\/uploads\/2020\/11\/image-1.png"}],"author":"\u7ba1\u7406\u5458","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#article","isPartOf":{"@id":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/"},"author":{"name":"\u7ba1\u7406\u5458","@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"headline":"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528","datePublished":"2020-11-07T09:35:51+00:00","dateModified":"2020-11-11T05:50:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/"},"wordCount":62,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"keywords":["k3s","kubernetes","mysql","rancher"],"articleSection":["Kubernetes","Linux"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/","url":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/","name":"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","isPartOf":{"@id":"https:\/\/www.linuxdevops.cn\/#website"},"datePublished":"2020-11-07T09:35:51+00:00","dateModified":"2020-11-11T05:50:01+00:00","breadcrumb":{"@id":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxdevops.cn\/2020\/11\/install-k3s-cluster-use-external-mysql-database-and\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.linuxdevops.cn\/"},{"@type":"ListItem","position":2,"name":"kubernetes","item":"https:\/\/www.linuxdevops.cn\/kubernetes\/"},{"@type":"ListItem","position":3,"name":"\u5b89\u88c5K3s\u96c6\u7fa4\u4f7f\u7528\u5916\u90e8Mysql\u6570\u636e\u5e93\uff0c\u5b89\u88c5rancher\u9ad8\u53ef\u7528"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxdevops.cn\/#website","url":"https:\/\/www.linuxdevops.cn\/","name":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","description":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\u7b14\u8bb0","publisher":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"alternateName":"linuxdevops","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxdevops.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":["Person","Organization"],"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1","name":"\u7ba1\u7406\u5458","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/","url":"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg","contentUrl":"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg","width":512,"height":512,"caption":"\u7ba1\u7406\u5458"},"logo":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/"},"description":"\u7ba1\u7406\u5458","url":"https:\/\/www.linuxdevops.cn\/author\/root\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/838"}],"collection":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/comments?post=838"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/838\/revisions"}],"predecessor-version":[{"id":859,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/838\/revisions\/859"}],"wp:attachment":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/media?parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/categories?post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/tags?post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}