{"id":1039,"date":"2020-04-16T14:19:33","date_gmt":"2020-04-16T06:19:33","guid":{"rendered":"http:\/\/39.97.231.10\/?p=1039"},"modified":"2020-04-16T14:19:33","modified_gmt":"2020-04-16T06:19:33","slug":"kubeflow%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=1039","title":{"rendered":"Kubeflow"},"content":{"rendered":"<h2><strong>Kubeflow\u4ecb\u7ecd<\/strong><\/h2>\n<p style=\\\"padding-left: 40px;\\\">\u00a0 \u00a0 \u00a0 \u00a0 Kubernetes \u672c\u6765\u662f\u4e00\u4e2a\u7528\u6765\u7ba1\u7406\u65e0\u72b6\u6001\u5e94\u7528\u7684\u5bb9\u5668\u5e73\u53f0\uff0c\u4f46\u662f\u5728\u8fd1\u4e24\u5e74\u6709\u8d8a\u6765\u8d8a\u591a\u7684\u516c\u53f8\u7528\u5b83\u6765\u8fd0\u884c\u5404\u79cd\u5404\u6837\u7684\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u5c24\u5176\u662f\u673a\u5668\u5b66\u4e60\u3002\u5404\u79cd AI \u516c\u53f8\u6216\u8005\u4e92\u8054\u7f51\u516c\u53f8\u7684 AI \u90e8\u95e8\u90fd\u4f1a\u5c1d\u8bd5\u5728 Kubernetes\u4e0a\u8fd0\u884c TensorFlow\uff0cCaffe\uff0cMXNet \u7b49\u7b49\u5206\u5e03\u5f0f\u5b66\u4e60\u7684\u4efb\u52a1\uff0c\u8fd9\u4e3a Kubernetes \u5e26\u6765\u4e86\u65b0\u7684\u6311\u6218\u3002<\/p>\n<p style=\\\"padding-left: 40px;\\\">\u00a0 \u00a0 \u00a0 \u00a0 \u9996\u5148\uff0c\u5206\u5e03\u5f0f\u7684\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u4e00\u822c\u4f1a\u6d89\u53ca\u53c2\u6570\u670d\u52a1\u5668\uff08\u4ee5\u4e0b\u79f0\u4e3a PS\uff09\u548c\u5de5\u4f5c\u8282\u70b9\uff08\u4ee5\u4e0b\u6210\u4e3a worker\uff09\u4e24\u79cd\u4e0d\u540c\u7684\u5de5\u4f5c\u7c7b\u578b\u3002\u800c\u4e14\u4e0d\u540c\u9886\u57df\u7684\u5b66\u4e60\u4efb\u52a1\u5bf9 PS \u548c worker \u6709\u4e0d\u540c\u7684\u9700\u6c42\uff0c\u8fd9\u4f53\u73b0\u5728 Kubernetes \u4e2d\u5c31\u662f\u914d\u7f6e\u96be\u7684\u95ee\u9898\u3002\u4ee5 TensorFlow \u4e3a\u4f8b\uff0cTensorFlow \u7684\u5206\u5e03\u5f0f\u5b66\u4e60\u4efb\u52a1\u901a\u5e38\u4f1a\u542f\u52a8\u591a\u4e2a PS \u548c\u591a\u4e2a worker\uff0c\u800c\u4e14\u5728 TensorFlow \u63d0\u4f9b\u7684\u6700\u4f73\u5b9e\u8df5\u4e2d\uff0c\u6bcf\u4e2a worker \u548c PS \u8981\u6c42\u4f20\u5165\u4e0d\u540c\u7684\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n<p style=\\\"padding-left: 40px;\\\">\u00a0 \u00a0 \u00a0 \u00a0 \u5176\u6b21\uff0cKubernetes \u9ed8\u8ba4\u7684\u8c03\u5ea6\u5668\u5bf9\u4e8e\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u7684\u8c03\u5ea6\u5e76\u4e0d\u53cb\u597d\u3002\u5982\u679c\u8bf4\u4e4b\u524d\u7684\u95ee\u9898\u53ea\u662f\u5728\u5e94\u7528\u4e0e\u90e8\u7f72\u9636\u6bb5\u6bd4\u8f83\u9ebb\u70e6\uff0c\u90a3\u8c03\u5ea6\u5f15\u53d1\u7684\u8d44\u6e90\u5229\u7528\u7387\u4f4e\uff0c\u6216\u8005\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u6548\u7387\u4e0b\u964d\u7684\u95ee\u9898\uff0c\u5c31\u683c\u5916\u503c\u5f97\u5173\u6ce8\u3002\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u5bf9\u4e8e\u8ba1\u7b97\u548c\u7f51\u7edc\u7684\u8981\u6c42\u76f8\u5bf9\u8f83\u9ad8\uff0c\u4e00\u822c\u800c\u8a00\u6240\u6709\u7684 worker \u90fd\u4f1a\u4f7f\u7528 GPU \u8fdb\u884c\u8bad\u7ec3\uff0c\u800c\u4e14\u4e3a\u4e86\u80fd\u591f\u5f97\u5230\u4e00\u4e2a\u8f83\u597d\u7684\u7f51\u7edc\u652f\u6301\uff0c\u5c3d\u53ef\u80fd\u5730\u540c\u4e00\u4e2a\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u7684 PS \u548c worker \u653e\u5728\u540c\u4e00\u53f0\u673a\u5668\u6216\u8005\u7f51\u7edc\u8f83\u597d\u7684\u76f8\u90bb\u673a\u5668\u4e0a\u4f1a\u964d\u4f4e\u8bad\u7ec3\u6240\u9700\u7684\u65f6\u95f4\u3002<\/p>\n<p style=\\\"padding-left: 40px;\\\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u9488\u5bf9\u8fd9\u4e9b\u95ee\u9898\uff0cKubeflow \u9879\u76ee\u5e94\u8fd0\u800c\u751f\uff0c\u5b83\u4ee5 TensorFlow \u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u652f\u6301\u7684\u6846\u67b6\uff0c\u5728 Kubernetes \u4e0a\u5b9a\u4e49\u4e86\u4e00\u4e2a\u65b0\u7684\u8d44\u6e90\u7c7b\u578b\uff1aTFJob\uff0c\u5373 TensorFlow Job \u7684\u7f29\u5199\u3002\u901a\u8fc7\u8fd9\u6837\u4e00\u4e2a\u8d44\u6e90\u7c7b\u578b\uff0c\u4f7f\u7528 TensorFlow \u8fdb\u884c\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u7684\u5de5\u7a0b\u5e08\u4eec\u4e0d\u518d\u9700\u8981\u7f16\u5199\u7e41\u6742\u7684\u914d\u7f6e\uff0c\u53ea\u9700\u8981\u6309\u7167\u4ed6\u4eec\u5bf9\u4e1a\u52a1\u7684\u7406\u89e3\uff0c\u786e\u5b9a PS \u4e0e worker \u7684\u4e2a\u6570\u4ee5\u53ca\u6570\u636e\u4e0e\u65e5\u5fd7\u7684\u8f93\u5165\u8f93\u51fa\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u4e00\u6b21\u8bad\u7ec3\u4efb\u52a1\u3002<\/p>\n<h2><strong><b>Kubeflow<\/b><\/strong><strong><b>\u6838\u5fc3<\/b><\/strong><strong><b>\u7ec4\u4ef6<\/b><\/strong><\/h2>\n<p style=\\\"padding-left: 40px;\\\">\u00a0 \u00a0 \u00a0 \u00a0 kubeflow\u662f\u4e00\u4e2a\u80f6\u6c34\u9879\u76ee\uff0c\u5b83\u628a\u8bf8\u591a\u5bf9\u673a\u5668\u5b66\u4e60\u7684\u652f\u6301\uff0c\u6bd4\u5982\u6a21\u578b\u8bad\u7ec3\uff0c\u8d85\u53c2\u6570\u8bad\u7ec3\uff0c\u6a21\u578b\u90e8\u7f72\u7b49\u8fdb\u884c\u7ec4\u5408\u5e76\u5df2\u5bb9\u5668\u5316\u7684\u65b9\u5f0f\u8fdb\u884c\u90e8\u7f72\uff0c\u63d0\u4f9b\u6574\u4e2a\u6d41\u7a0b\u5404\u4e2a\u7cfb\u7edf\u7684\u9ad8\u53ef\u7528\u53ca\u65b9\u4fbf\u7684\u8fdb\u884c\u6269\u5c55\u90e8\u7f72\u4e86 kubeflow\u7684\u7528\u6237\u5c31\u53ef\u4ee5\u5229\u7528\u5b83\u8fdb\u884c\u4e0d\u540c\u7684\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u3002<\/p>\n<p><img class=\\\" wp-image-1040 aligncenter\\\" src=\\\"http:\/\/www.weijingyun.com.cn\/wp-content\/uploads\/2020\/04\/Kubeflow-300x125.png\\\" alt=\\\"\\\" width=\\\"684\\\" height=\\\"285\\\" \/><\/p>\n<p style=\\\"padding-left: 40px;\\\">\u4e0a\u56fe\u4f53\u73b0\u4e86\u5de5\u4e1a\u4e0a\u673a\u5668\u5b66\u4e60\u7684\u6574\u4f53\u6d41\u7a0b\uff0c\u4ece\u6570\u636e\u91c7\u96c6\uff0c\u9a8c\u8bc1\uff0c\u5230\u6a21\u578b\u8bad\u7ec3\u518d\u5230\u670d\u52a1\u53d1\u5e03\u7b49\u3002\u800c\u56fe\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5c0f\u7ec4\u4ef6\u90fd\u662fKubeflow\u4e2d\u5305\u542b\u7684\u3002\u5176\u6838\u5fc3\u7ec4\u4ef6\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>jupyter<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">jupyter \u521b\u5efa\u548c\u7ba1\u7406\u591a\u7528\u6237\u4ea4\u4e92\u5f0fJupyter notebooks\u3002<\/p>\n<ul>\n<li>Seldon<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Seldon \u63d0\u4f9b\u5728Kubernetes\u4e0a\u5bf9\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u90e8\u7f72\u3002<\/p>\n<ul>\n<li>TF-Serving<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">TF-Serving \u63d0\u4f9b\u5bf9Tensorflow\u6a21\u578b\u7684\u5728\u7ebf\u90e8\u7f72\uff0c\u652f\u6301\u7248\u672c\u63a7\u5236\u53ca\u65e0\u9700\u505c\u6b62\u7ebf\u4e0a\u670d\u52a1\uff0c\u5207\u6362\u6a21\u578b\u7b49\u529f\u80fd\u3002<\/p>\n<ul>\n<li>Ambassador<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Ambassador \u5bf9\u5916\u63d0\u4f9b\u7edf\u4e00\u670d\u52a1\u7684\u7f51\u5173(API Gateway)\uff0c\u5b83\u662f\u4e00\u4e2a Kubernetes \u539f\u751f\u7684\u5fae\u670d\u52a1 API \u7f51\u5173\uff0c\u5b83\u90e8\u7f72\u5728\u7f51\u7edc\u8fb9\u7f18\uff0c\u5c06\u4f20\u5165\u7f51\u7edc\u7684\u6d41\u91cf\u8def\u7531\u5230\u76f8\u5e94\u7684\u5185\u90e8\u670d\u52a1\uff08\u4e5f\u88ab\u79f0\u4e3a\u201c\u5357\u5317\u201d\u6d41\u91cf\uff09\u3002<\/p>\n<ul>\n<li>Istio<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Istio\u00a0\u63d0\u4f9b\u5fae\u670d\u52a1\u7684\u7ba1\u7406\uff0cTelemetry\u6536\u96c6\u3002<\/p>\n<ul>\n<li>Ksonnet<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Ksonnet Kubeflow\u4f7f\u7528ksonnet\u6765\u5411kubernetes\u96c6\u7fa4\u90e8\u7f72\u9700\u8981\u7684k8s\u8d44\u6e90<\/p>\n<ul>\n<li>Pachyderm<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Pachyderm\u7248\u672c\u63a7\u5236\u6570\u636e\uff0c\u7c7b\u4f3c\u4e8eGit\u5bf9\u4ee3\u7801\u7684\u5904\u7406\u3002 \u60a8\u53ef\u4ee5\u8ddf\u8e2a\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u6570\u636e\u72b6\u6001\uff0c\u5bf9\u5386\u53f2\u6570\u636e\u8fdb\u884c\u56de\u6eaf\u6d4b\u8bd5\uff0c\u4e0e\u961f\u53cb\u5171\u4eab\u6570\u636e\uff0c\u4ee5\u53ca\u6062\u590d\u5230\u4ee5\u524d\u7684\u6570\u636e\u72b6\u6001\u3002<\/p>\n<ul>\n<li>Argo<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Argo\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u57fa\u4e8e\u5bb9\u5668\u7684\u5de5\u4f5c\u6d41\u5f15\u64ce\uff0c\u5e76\u5b9e\u73b0\u4e3a\u4e00\u4e2aK8S\u7684CRD(CustomResourceDefinition)\u3002<\/p>\n<ul>\n<li>Pipelines<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">pipelines\u662f Kubeflow \u793e\u533a\u65b0\u8fd1\u5f00\u6e90\u7684\u7aef\u5230\u7aef\u7684 ML\/DL \u5de5\u4f5c\u6d41\u7cfb\u7edf\u3002\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5de5\u4f5c\u6d41\u6a21\u578b\u3002\u6240\u8c13\u5de5\u4f5c\u6d41\uff0c\u6216\u8005\u79f0\u4e4b\u4e3a\u6d41\u6c34\u7ebf\uff08pipeline\uff09\uff0c\u53ef\u4ee5\u5c06\u5176\u5f53\u505a\u4e00\u4e2a\u6709\u5411\u65e0\u73af\u56fe\uff08DAG\uff09\u3002\u5176\u4e2d\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9\uff0c\u5728 kubeflow\/pipelines \u7684\u8bed\u4e49\u4e0b\u88ab\u79f0\u4f5c\u7ec4\u4ef6\uff08component\uff09\u3002\u7ec4\u4ef6\u5728\u56fe\u4e2d\u4f5c\u4e3a\u4e00\u4e2a\u8282\u70b9\uff0c\u5176\u4f1a\u5904\u7406\u771f\u6b63\u7684\u903b\u8f91\uff0c\u6bd4\u5982\u9884\u5904\u7406\uff0c\u6570\u636e\u6e05\u6d17\uff0c\u6a21\u578b\u8bad\u7ec3\u7b49\u7b49\u3002\u6bcf\u4e00\u4e2a\u7ec4\u4ef6\u8d1f\u8d23\u7684\u529f\u80fd\u4e0d\u540c\uff0c\u4f46\u6709\u4e00\u4e2a\u5171\u540c\u70b9\uff0c\u5373\u7ec4\u4ef6\u90fd\u662f\u4ee5 Docker \u955c\u50cf\u7684\u65b9\u5f0f\u88ab\u6253\u5305\uff0c\u4ee5\u5bb9\u5668\u7684\u65b9\u5f0f\u88ab\u8fd0\u884c\u7684\u3002<\/p>\n<ul>\n<li>Katib<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">Katib\u662f\u4e00\u4e2a\u8d85\u53c2\u6570\u8bad\u7ec3\u7cfb\u7edf\u3002\u5b83\u662f\u5bf9 Google Vizier \u7684\u5f00\u6e90\u5b9e\u73b0\uff0cGoogle Vizier \u662f Google \u5185\u90e8\u7684\u673a\u5668\u5b66\u4e60\u8d85\u53c2\u6570\u8bad\u7ec3\u7cfb\u7edf\u7684\u4e00\u4e2a\u5b50\u7cfb\u7edf\u3002<\/p>\n<ul>\n<li>\u652f\u6301\u7684\u673a\u5668\u5b66\u4e60\u5f15\u64ce<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\">PyTorch\u3001MXnet\u3001TF\u3002TF\u4e3a\u5f53\u524d\u4e3b\u8981\u652f\u6301\u7684\u673a\u5668\u5b66\u4e60\u5f15\u64ce<\/p>\n<p style=\\\"padding-left: 40px;\\\">\u5168\u90e8\u7ec4\u4ef6\uff1a<a href=\\\"https:\/\/links.jianshu.com\/go?to=https:\/\/www.kubeflow.org\/docs\/guides\/components\/components\/\\\">https:\/\/www.kubeflow.org\/docs\/guides\/components\/components\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kubeflow\u4ecb\u7ecd \u00a0 \u00a0 \u00a0 \u00a0 Kubernetes \u672c\u6765\u662f\u4e00\u4e2a\u7528\u6765\u7ba1\u7406\u65e0\u72b6\u6001\u5e94\u7528\u7684\u5bb9\u5668\u5e73\u53f0\uff0c\u4f46\u662f\u5728\u8fd1\u4e24 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=1039\"> <span class=\"screen-reader-text\">Kubeflow<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":1042,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[97],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"Kubeflow\u4ecb\u7ecd \u00a0 \u00a0 \u00a0 \u00a0 Kubernetes \u672c\u6765\u662f\u4e00\u4e2a\u7528\u6765\u7ba1\u7406\u65e0\u72b6\u6001\u5e94\u7528\u7684\u5bb9\u5668\u5e73\u53f0\uff0c\u4f46\u662f\u5728\u8fd1\u4e24&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1039"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1039"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}