{"id":431311,"date":"2021-04-18T12:25:50","date_gmt":"2021-04-18T04:25:50","guid":{"rendered":"http:\/\/4563.org\/?p=431311"},"modified":"2021-04-18T12:25:50","modified_gmt":"2021-04-18T04:25:50","slug":"istio-%e9%97%ae%e9%a2%98%e8%af%b7%e6%95%99%ef%bc%8c%e4%b8%ba%e5%95%a5%e4%b8%8d%e8%83%bd%e9%80%9a%e8%bf%87%e4%b8%80%e4%b8%aa-istio-ingressgateway-pod-%e5%a4%9a%e4%b8%aa-service-lb%e5%af%b9%e5%a4%96","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=431311","title":{"rendered":"istio \u95ee\u9898\u8bf7\u6559\uff0c\u4e3a\u5565\u4e0d\u80fd\u901a\u8fc7\u4e00\u4e2a istio-ingressgateway pod + \u591a\u4e2a service (LB)\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  istio \u95ee\u9898\u8bf7\u6559\uff0c\u4e3a\u5565\u4e0d\u80fd\u901a\u8fc7\u4e00\u4e2a istio-ingressgateway pod + \u591a\u4e2a service (LB)\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nixum <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u73af\u5883\uff1a\u4f7f\u7528\u7684\u662f AWS \u7684 EKS \u505a\u96c6\u7fa4\u7ba1\u7406\uff0c\u5b89\u88c5\u7684 Kubernetes 1.8 \u548c istio 1.8<\/p>\n<p>\u573a\u666f\uff1a\u60f3\u8981\u90e8\u7f72\u4e24\u4e2a LB\uff0c\u5206\u522b\u5bf9\u5916\u7f51\u548c\u5bf9 VPC \u5185\u90e8\u7684\u8bf7\u6c42\u505a\u63a7\u5236\u3002\u5bf9\u5916\u7f51\u4f7f\u7528 ALB \u63d0\u4f9b HTTP \u7684\u8bbf\u95ee\uff0c\u5bf9 VPC \u5185\u90e8\u4f7f\u7528 NLB \u63d0\u4f9b gRpc \u8bbf\u95ee\u3002<\/p>\n<p>\u4e00\u5f00\u59cb\u7684\u5904\u7406\u65b9\u5f0f\uff1a \u56e0\u4e3a\u4e4b\u524d\u5df2\u7ecf\u901a\u8fc7 istio + ALB \u7684\u65b9\u5f0f\u5bf9\u5916\u63d0\u4f9b\u4e86 HTTP \u8bbf\u95ee\u4e86\uff0c\u5c31\u60f3\u7740\u5728\u539f\u6765\u7684 istio-ingressgateway pod \u7684\u57fa\u7840\u4e0a\u518d\u5f00\u4e00\u4e2a\u65b0\u7aef\u53e3\uff08\u7528\u4e8e gRpc \u5bf9\u5916\u901a\u4fe1\u7528\uff09\uff0c\u7136\u540e\u518d\u90e8\u7f72\u4e00\u4e2a\u65b0\u7684 istio-ingressgateway service(\u6682\u4e14\u53eb internal svc)\uff0c\u518d\u901a\u8fc7 NLB \u5bf9\u5916\u66b4\u9732 gRpc \u8bbf\u95ee\uff0c<\/p>\n<p>\u5373\u4e00\u4e2a istio-ingressgateway pod \u88ab\u4e24\u4e2a\u4e0d\u540c\u7684 istio-ingressgateway service \u6240 selected \u3002<\/p>\n<p>\u9047\u5230\u7684\u95ee\u9898\uff1a \u4e1a\u52a1\u670d\u52a1\u7684 Gateway \u3001VirtualService \u3001DestinationRule \u90fd\u662f\u9488\u5bf9\u8fd9\u4e2a internal svc \u505a\u7684\u914d\u7f6e\uff0c\u5904\u7406\u8bf7\u6c42\u7684\u7aef\u53e3\u4e5f\u548c\u53e6\u4e00\u4e2a service \u4e0d\u4e00\u6837\uff0c\u7136\u540e\u53d1\u73b0\u8fd9\u4e2a internal svc \u53ef\u4ee5\u5904\u7406 HTTP \u8bf7\u6c42\uff0c\u4f46\u662f\u5904\u7406\u4e0d\u4e86 gRPC \u8bf7\u6c42\u3002\u67e5\u8fc7 envoy \u7684\u65e5\u5fd7\uff0c\u53d1\u73b0 gRpc \u8bf7\u6c42\u90fd\u8fdb\u4e0d\u6765\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6848\uff1a \u90e8\u7f72\u4e00\u4e2a\u65b0\u7684 istio-ingressgateway pod(\u6682\u4e14\u53eb internal pod)\uff0c\u7136\u540e\u628a\u4e4b\u524d internal svc \u548c\u76f8\u5173\u4e1a\u52a1\u670d\u52a1\u7684\u914d\u7f6e\u90fd\u6307\u5411\u8fd9\u4e2a\u65b0\u7684 internal pod \u540e\uff0c\u7aef\u53e3\u4ec0\u4e48\u7684\u4e5f\u6ca1\u6539\uff0c\u5c31\u80fd\u5904\u7406 gRPC \u8bf7\u6c42\u4e86\u3002<\/p>\n<p>\u7591\u60d1\u7684\u70b9\uff1a \u5728\u540c\u4e00\u4e2a istio-ingressgateway pod \u4e0a\u5957\u7684\u4e24\u4e2a\u4e0d\u540c istio service\uff0c\u4f7f\u7528\u4e24\u4e2a\u4e0d\u540c\u7684 LB \u5bf9\u5916\u66b4\u9732\uff0c\u5bf9\u4f7f\u7528 istio-ingressgateway pod \u7684\u7aef\u53e3\u90fd\u505a\u4e86\u533a\u5206\uff0c\u6309\u7406\u8bf4\u5e94\u8be5\u662f\u6ca1\u4ec0\u4e48\u5f71\u54cd\u624d\u5bf9\uff0c\u4f46\u662f\u5374\u65e0\u6cd5\u5904\u7406\u8fd9\u4e24\u79cd\u534f\u8bae\u7684\u8bf7\u6c42\uff0c\u4f46\u662f\u5f53\u5206\u522b\u4f7f\u7528\u4e24\u5957 istio pod + service \u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>google \u548c StackOverflow \u90fd\u641c\u8fc7\uff0c\u597d\u50cf\u6ca1\u770b\u5230\u6709\u4eba\u9047\u5230\u8fd9\u79cd\u573a\u666f\uff0c\u7279\u5730\u8bf7\u6559\u4e0b\u5404\u4f4d\u5927\u4f6c\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5672205\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MarsBar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             k8s \u4e0d\u592a\u61c2 \u4f46\u662f\u6211\u60f3\u8bf4 grpc \u6709\u4e13\u95e8\u7684 grpc lb \u4e0d\u8981\u7528 nlb..                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672206\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nixum <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MarsBar \u4e3a\u5565\uff0c\u53ef\u662f AWS \u603b\u5171\u5c31\u4e09\u79cd LB \u53ef\u4ee5\u9009\uff0cALB \u53c8\u662f\u6700\u8fd1\u624d\u652f\u6301 gRPC \u7684\uff0c\u611f\u89c9\u9009 NLB \u4e5f\u6ca1\u4e8b\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672207\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nixum <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e16\u5b50\u8981\u6c89\u4e86 \ud83d\ude41 \u662f\u4e0d\u662f\u5b57\u6570\u592a\u591a\u5927\u5bb6\u90fd\u4e0d\u613f\u610f\u770b\u5440\u3002\u96be\u53d7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672208\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MarsBar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nixum <br \/>\u7b80\u5355\u6765\u8bb2 NLB\/ALB \u90fd\u4e0d\u80fd\u5b8c\u5168\u5229\u7528 http2 \u7684\u7279\u6027\u3002\u3002 \u5c31\u5931\u53bb\u4e86 grpc \u7684\u5927\u90e8\u5206\u610f\u4e49<br \/>\u53ef\u4ee5\u770b\u4e0b\u8fd9\u4e2a \u6211\u670b\u53cb\u516c\u53f8\u5199\u7684\u4e00\u4e2a blog \u4f5c\u8005\u5f88\u5f3a<br \/>https:\/\/rokt.com\/engineering_blog\/learnings-grpc-aws\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672209\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MarsBar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4e86\u56de\u4f60\u7684\u5e16\u5b50\u6211\u8fd8\u4e13\u95e8\u9a8c\u8bc1\u4e86\u4e0b\u624b\u673a\u53f7\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672210\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : FakNoCNName <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u4e0d\u8bf4\u4f60\u9047\u5230\u7684\u95ee\u9898\uff0c\u53ea\u770b\u4f60\u73b0\u5728\u7684\u5e94\u7528\u573a\u666f\uff0c\u4e3a\u4ec0\u4e48\u4e0d\u52a0\u4e00\u4e2a vs \u6307\u5b9a mesh \u5462\uff0c\u5185\u90e8\u5916\u90e8\u4f7f\u7528\u4e0d\u540c\u7684 vs \u63a7\u5236\u53ef\u4ee5\u505a\u5230\u8fd9\u4e00\u70b9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672211\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nixum <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MarsBar \u8c22\u5927\u4f6c\u4e86\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e4b\u524d\u6709\u641c\u5230\u8fc7\u4e86\uff0c\u4e0d\u8fc7\u6ca1\u600e\u4e48\u770b\uff0c=\u6709\u7a7a\u7684\u65f6\u5019\u518d\u770b\u770b\u3002\u56e0\u4e3a\u4e1a\u52a1\u65b9\u7684\u670d\u52a1\u4e0d\u662f\u90e8\u7f72\u5728\u6211\u7684\u96c6\u7fa4\u91cc\u7684\uff0c\u6240\u4ee5\u53ea\u80fd\u901a\u8fc7 LB \u6765\u66b4\u9732\u4e86\uff0c\u5229\u7528\u4e0d\u5230\u4e5f\u6ca1\u529e\u6cd5\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5672212\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nixum <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @FakNoCNName \u76ee\u524d\u786e\u5b9e\u662f\u901a\u8fc7\u4e24\u5957\u4e0d\u540c\u7684 Gateway \u548c VirtualService \u6765\u63a7\u5236 http \u548c gRpc \u7684\u8bf7\u6c42\u8def\u7531\u7684\u3002<br \/>\u7591\u60d1\u7684\u70b9\u662f\u6211\u7528\u4e86\u4e24\u5957\u4e0d\u540c\u7684 Gateway \u3001VirtualService \u3001istio-ingressgateway svc\uff0c\u4f46\u662f\u90fd select \u540c\u4e00\u4e2a istio-ingressgateway pod\uff0c\u901a\u8fc7\u4e0d\u540c\u7684\u7aef\u53e3\u6765\u533a\u5206\u8bf7\u6c42\u7684\u534f\u8bae\uff0c\u4f46\u662f\u8fd9\u6837\u505a\u884c\u4e0d\u901a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>istio \u95ee\u9898\u8bf7\u6559\uff0c\u4e3a\u5565\u4e0d\u80fd\u901a\u8fc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/431311"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=431311"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/431311\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=431311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=431311"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=431311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}