{"id":25459,"date":"2022-08-08T11:34:41","date_gmt":"2022-08-08T03:34:41","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=2244"},"modified":"2022-08-08T11:34:41","modified_gmt":"2022-08-08T03:34:41","slug":"%e4%bd%bf%e7%94%a8-sealos-%e4%b8%80%e9%94%ae%e5%bc%80%e5%90%af-kubernetes-%e5%ba%94%e7%94%a8%e7%9a%84%e5%8f%af%e8%a7%82%e6%b5%8b%e6%80%a7","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/25459.html","title":{"rendered":"\u4f7f\u7528 sealos \u4e00\u952e\u5f00\u542f Kubernetes \u5e94\u7528\u7684\u53ef\u89c2\u6d4b\u6027"},"content":{"rendered":"\n\t\t\t\t<![CDATA[\n<h3 class=\"wp-block-heading\">\u4e00\u952e\u5f00\u542f\u53ef\u89c2\u6d4b<\/h3>\n\n\n\n<p>DeepFlow \u57fa\u4e8e eBPF \u7684\u96f6\u4fb5\u6270\u7279\u6027\uff0c\u80fd\u8ba9 Kubernetes \u53ca\u5176\u4e0a\u5e94\u7528\u8f7b\u677e\u5f00\u542f\u53ef\u89c2\u6d4b\u6027\u80fd\u529b\u3002\u6b64\u524d\u90e8\u7f72 DeepFlow \u9700\u8981\u5f00\u53d1\u8005\u638c\u63e1\u4e00\u5b9a\u7684 kubernetes\u3001helm \u7b49\u76f8\u5173\u77e5\u8bc6\uff0c\u4e14\u5b89\u88c5\u90e8\u7f72\u4f9d\u8d56\u5728\u7ebf\u955c\u50cf\u4ed3\u5e93\u548c helm repo\u3002sealos \u5b8c\u5907\u7684\u7cfb\u7edf\u4f9d\u8d56\u5904\u7406\u65b9\u6848\u8ba9 kubernetes\u3001\u4e0a\u5c42\u5e94\u7528\u53ef\u4ee5\u8f7b\u677e\u8fd0\u884c\u5728\u4efb\u4f55\u64cd\u4f5c\u7cfb\u7edf\u4e0a\uff0c\u5e76\u4e14\u4ee5\u5176\u96c6\u7fa4\u955c\u50cf\u3001images-shim\u7b49\u65b9\u6848\u8ba9\u4efb\u4f55\u5e94\u7528\u7684\u79bb\u7ebf\u90e8\u7f72\u53d8\u5f97\u975e\u5e38\u4e1d\u6ed1\u3002\u4eca\u5929\u6211\u4eec\u5f88\u9ad8\u5174\u7684\u548c\u5927\u5bb6\u5206\u4eab\uff0csealos 4.0 \u5df2\u7ecf\u652f\u6301\u4e86 DeepFlow \u96c6\u7fa4\u955c\u50cf\uff0c\u4ece\u6b64\u4efb\u4f55\u4eba\u5728\u4efb\u4f55\u573a\u666f\u3001\u4efb\u4f55\u73af\u5883\u53ef\u65e0\u969c\u788d\u5f00\u542f Kubernetes \u5e94\u7528\u7684\u53ef\u89c2\u6d4b\u6027\u3002<\/p>\n\n\n\n<p>\u57fa\u4e8e sealos \u7684\u80fd\u529b\uff0c\u73b0\u5728\u4ec5\u9700\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u62c9\u8d77 DeepFlow<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sealos run \\\n    labring\/kubernetes:v1.24.0 \\\n    labring\/calico:v3.22.1 \\\n    labring\/helm:v3.8.2 \\\n    labring\/openebs:v1.9.0 \\\n    labring\/deepflow:v6.1.1 \\\n    --masters &lt;Your master IP address> \\\n    --nodes &lt;Your worker IP address> \\\n    -p &lt;Your SSH root password><\/code><\/pre>\n\n\n\n<p>\u56de\u663e\u5185\u5bb9\u5982\u4e0b\uff08\u9690\u53bb\u4e86\u90e8\u5206 sealos \u8f93\u51fa\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Release \"deepflow\" has been upgraded. Happy Helming!\nNAME: deepflow\nLAST DEPLOYED: Fri Aug  5 14:38:07 2022\nNAMESPACE: deepflow\nSTATUS: deployed\nREVISION: 2\nNOTES:\n\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557      \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557    \u2588\u2588\u2557\n\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551    \u2588\u2588\u2551\n\u2588\u2588\u2551  \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2551     \u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2557 \u2588\u2588\u2551\n\u2588\u2588\u2551  \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255d  \u2588\u2588\u2554\u2550\u2550\u255d  \u2588\u2588\u2554\u2550\u2550\u2550\u255d \u2588\u2588\u2554\u2550\u2550\u255d  \u2588\u2588\u2551     \u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2557\u2588\u2588\u2551\n\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551     \u2588\u2588\u2551     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u255a\u2588\u2588\u2588\u2554\u2588\u2588\u2588\u2554\u255d\n\u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d     \u255a\u2550\u255d     \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d  \u255a\u2550\u2550\u255d\u255a\u2550\u2550\u255d\n\n\nAn automated observability platform for cloud-native developers.\n\n\n# deepflow-agent Port for receiving trace, metrics, and log\n\n\ndeepflow-agent service: deepflow-agent.deepflow\ndeepflow-agent Host listening port: 38086\n\n\n# Get the Grafana URL to visit by running these commands in the same shell\n\n\nNODE_PORT=$(kubectl get --namespace deepflow -o jsonpath=\"{.spec.ports[0].nodePort}\" services deepflow-grafana)\nNODE_IP=$(kubectl get nodes -o jsonpath=\"{.items[0].status.addresses[0].address}\")\necho -e \"Grafana URL: http:\/\/$NODE_IP:$NODE_PORT  \\nGrafana auth: admin:deepflow\"<\/code><\/pre>\n\n\n\n<p>\u6267\u884c\u4e0a\u8ff0\u56de\u663e\u4e2d\u6700\u540e\u4e09\u884c\u547d\u4ee4\uff0c\u5373\u53ef\u83b7\u53d6\u8bbf\u95ee Grafana \u7684\u94fe\u63a5\uff0c\u67e5\u770b Kubernetes \u4e0a\u6240\u6709 Node\u3001Pod\u3001Service \u7684\u6307\u6807\u3001\u5206\u5e03\u5f0f\u8ffd\u8e2a\u3001\u65e5\u5fd7\u6570\u636e\u3002<\/p>\n\n\n\n<p>\u4efb\u610f\u5fae\u670d\u52a1\u7684\u5e94\u7528 RED \u548c\u7f51\u7edc\u6027\u80fd\u6307\u6807\uff08\u5728\u7ebf\u6587\u6863\u548c Demo\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p6.toutiaoimg.com\/img\/tos-cn-i-qvj2lq49k0\/270586d97cc2494a8fc11685586fd7a3~tplv-tt-shrink:640:0.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4efb\u610f\u5fae\u670d\u52a1\u7684\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\uff0c\u9002\u7528\u4e8e Linux Kernel 4.14+\uff08\u5728\u7ebf\u6587\u6863\u548c Demo\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p26.toutiaoimg.com\/img\/tos-cn-i-qvj2lq49k0\/e6e08a827fc047c8a4d442d24ac37748~tplv-tt-shrink:640:0.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4efb\u610f\u5fae\u670d\u52a1\u7684\u5e94\u7528\u8bf7\u6c42\u65e5\u5fd7\u3001\u7f51\u7edc\u6d41\u65e5\u5fd7\uff08\u5728\u7ebf\u6587\u6863\u548c Demo\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p6.toutiaoimg.com\/img\/tos-cn-i-qvj2lq49k0\/64abc8f0f2ba451fbf8f1cffa3b13cdf~tplv-tt-shrink:640:0.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ec0\u4e48\u662fsealos<\/h3>\n\n\n\n<p>sealos \u662f\u4ee5 kubernetes \u4e3a\u5185\u6838\u7684\u4e91\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248, \u76ee\u524d\u793e\u533a\u5185\u7684 sealos\u3001lvscare\u3001image-cri-shim\u3001endpoints-operator \u7b49\u9879\u76ee\u81f4\u529b\u4e8e\u4f7f\u7528\u4e91\u539f\u751f\u7684\u65b9\u6848\u89e3\u51b3\u7528\u6237\u7684\u5404\u79cd\u75db\u70b9\u95ee\u9898\uff1blaf \u662f\u4e00\u6b3e\u5bf9\u6807\u817e\u8baf\u4e91\u5f00\u53d1\u7684\u6740\u624b\u7ea7\u51fd\u6570\u8ba1\u7b97\u5e94\u7528\u3002<\/p>\n\n\n\n<p><strong>sealos \u6838\u5fc3\u7279\u6027\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u7ba1\u7406\u96c6\u7fa4\u751f\u547d\u5468\u671f<ul><li>\u5feb\u901f\u5b89\u88c5\u9ad8\u53ef\u7528 Kubernetes \u96c6\u7fa4<\/li><li>\u6dfb\u52a0\/\u5220\u9664\u8282\u70b9<\/li><li>\u6e05\u7406\u96c6\u7fa4\u3001\u5907\u4efd\u4e0e\u81ea\u52a8\u6062\u590d\u7b49<\/li><\/ul><\/li><li>\u4e0b\u8f7d\u548c\u4f7f\u7528\u5b8c\u5168\u517c\u5bb9 OCI \u6807\u51c6\u7684\u5206\u5e03\u5f0f\u5e94\u7528<ul><li>DeepFlow, OpenEBS, MinIO, Ingress, PostgreSQL, MySQL, Redis \u7b49<\/li><\/ul><\/li><li>\u5b9a\u5236\u5316\u5206\u5e03\u5f0f\u5e94\u7528<ul><li>\u7528 Dockerfile \u6784\u5efa\u5206\u5e03\u5f0f\u5e94\u7528\u955c\u50cf\uff0c\u4fdd\u5b58\u6240\u6709\u7684\u4f9d\u8d56<\/li><li>\u53d1\u5e03\u5206\u5e03\u5f0f\u5e94\u7528\u955c\u50cf\u5230 Docker Hub<\/li><li>\u878d\u5408\u591a\u4e2a\u5e94\u7528\u6784\u5efa\u4e13\u5c5e\u7684\u4e91\u5e73\u53f0<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"has-text-color has-vivid-cyan-blue-color\"><strong>GitHub \u5730\u5740\uff1a&#x1f517;<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/labring\/sealos\" target=\"_blank\">GitHub &#8211; labring\/sealos: sealos is a kubernetes distribution. Let&#8217;s sealos run kubernetes:v1.24.0 in 3 minutes!<\/a><\/strong><br \/><\/p>\n\n\n\n<p>sealos \u4e00\u7ecf\u53d1\u5e03\u4fbf\u83b7\u5f97\u4e86\u4f17\u591a\u5f00\u53d1\u8005\u7684\u4e00\u81f4\u597d\u8bc4\uff0c\u4ece kubernetes \u4e00\u952e\u5b89\u88c5\u90e8\u7f72\u3001\u6269\u7f29\u5bb9\uff0c\u5230\u7387\u5148\u63d0\u51fa\u96c6\u7fa4\u955c\u50cf\u7684\u6982\u5ff5\u53ca\u52a0\u5165images-shim\u65b9\u6848\uff0c\u90fd\u4e00\u76f4\u5728\u4e3a\u5f00\u53d1\u8005\u4e1d\u6ed1\u4f7f\u7528 kubernetes \u800c\u52aa\u529b\u3002<\/p>\n\n\n\n<p><strong>\u5f15\u7528 sealos \u5b98\u7f51\u7684\u4ecb\u7ecd\uff1a<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u4ece\u73b0\u5728\u5f00\u59cb\uff0c\u628a\u4f60\u6570\u636e\u4e2d\u5fc3\u6240\u6709\u673a\u5668\u60f3\u8c61\u6210\u4e00\u53f0\u201d\u62bd\u8c61\u201d\u7684\u8d85\u7ea7\u8ba1\u7b97\u673a\uff0csealos \u5c31\u662f\u7528\u6765\u7ba1\u7406\u8fd9\u53f0\u8d85\u7ea7\u8ba1\u7b97\u673a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0ckubernetes \u5c31\u662f\u8fd9\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u7684\u5185\u6838\uff01<\/p><p>\u4e91\u8ba1\u7b97\u4ece\u6b64\u523b\u8d77\u518d\u65e0 IaaS PaaS SaaS \u4e4b\u5206\uff0c\u53ea\u6709\u4e91\u64cd\u4f5c\u7cfb\u7edf\u9a71\u52a8\uff08CSI CNI CRI \u5b9e\u73b0\uff09\u4e91\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\uff08kubernetes\uff09\u548c\u5206\u5e03\u5f0f\u5e94\u7528\u7ec4\u6210\u3002<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ec0\u4e48\u662fDeepFlow<\/h3>\n\n\n\n<p>DeepFlow \u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u9ad8\u5ea6\u81ea\u52a8\u5316\u7684\u53ef\u89c2\u6d4b\u6027\u5e73\u53f0\uff0c\u662f\u4e3a\u4e91\u539f\u751f\u5e94\u7528\u5f00\u53d1\u8005\u5efa\u8bbe\u53ef\u89c2\u6d4b\u6027\u80fd\u529b\u800c\u91cf\u8eab\u6253\u9020\u7684\u5168\u6808\u3001\u5168\u94fe\u8def\u3001\u9ad8\u6027\u80fd\u6570\u636e\u5f15\u64ce\u3002DeepFlow \u4f7f\u7528 eBPF\u3001WASM\u3001OpenTelemetry \u7b49\u65b0\u6280\u672f\uff0c\u521b\u65b0\u7684\u5b9e\u73b0\u4e86 AutoTracing\u3001AutoMetrics\u3001AutoTagging\u3001SmartEncoding \u7b49\u6838\u5fc3\u673a\u5236\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u63d0\u5347\u57cb\u70b9\u63d2\u7801\u7684\u81ea\u52a8\u5316\u6c34\u5e73\uff0c\u964d\u4f4e\u53ef\u89c2\u6d4b\u6027\u5e73\u53f0\u7684\u8fd0\u7ef4\u590d\u6742\u5ea6\u3002\u5229\u7528 DeepFlow \u7684\u53ef\u7f16\u7a0b\u80fd\u529b\u548c\u5f00\u653e\u63a5\u53e3\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u5c06\u5176\u878d\u5165\u5230\u81ea\u5df1\u7684\u53ef\u89c2\u6d4b\u6027\u6280\u672f\u6808\u4e2d\u3002<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-cyan-blue-color\"><strong>GitHub \u5730\u5740\uff1a&#x1f517;<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/deepflowys\/deepflow\" target=\"_blank\">GitHub &#8211; deepflowys\/deepflow: DeepFlow is an automated observability platform for cloud-native developers.<\/a><\/strong><br \/><\/p>\n\n\n\n<p>\u8bbf\u95ee DeepFlow Demo\uff0c\u4f53\u9a8c\u9ad8\u5ea6\u81ea\u52a8\u5316\u7684\u53ef\u89c2\u6d4b\u6027\u65b0\u65f6\u4ee3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p3.toutiaoimg.com\/img\/tos-cn-i-qvj2lq49k0\/e78070beb6434008a8098a80e76c4f48~tplv-tt-shrink:640:0.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9.toutiaoimg.com\/img\/tos-cn-i-qvj2lq49k0\/c639882032a34e21a954bfe750bc47a8~tplv-tt-shrink:640:0.jpg\" alt=\"\"\/><\/figure>\n]]>\t\t","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[\u4eca\u5929\u6211\u4eec\u5f88\u9ad8\u5174\u7684\u548c\u5927\u5bb6\u5206\u4eab\uff0csealos 4.0 \u5df2\u7ecf\u652f\u6301\u4e86 DeepFlow \u96c6\u7fa4\u955c\u50cf\uff0c\u4ece\u6b64\u4efb\u4f55\u4eba\u5728\u4efb\u4f55\u573a\u666f\u3001\u4efb\u4f55\u73af\u5883\u53ef\u65e0\u969c\u788d\u5f00\u542f Kubernetes \u5e94\u7528\u7684\u53ef\u89c2\u6d4b\u6027\u3002]]>\t\t<\/p>\n","protected":false},"author":1,"featured_media":2294,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[20,45,60,69,71,74,78,94,96,121,124,125,130,135,174,175,181,185],"class_list":["post-25459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product-news","tag-deepflow","tag-45","tag-60","tag-69","tag-71","tag-74","tag-78","tag-94","tag-96","tag-121","tag-124","tag-125","tag-130","tag-135","tag-174","tag-175","tag-181","tag-185"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/25459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=25459"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/25459\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media\/2294"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=25459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=25459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=25459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}