{"id":655,"date":"2021-02-02T16:21:05","date_gmt":"2021-02-02T08:21:05","guid":{"rendered":"https:\/\/www.yinyubo.cn\/?p=655"},"modified":"2022-05-17T09:29:58","modified_gmt":"2022-05-17T01:29:58","slug":"istioskywalking","status":"publish","type":"post","link":"https:\/\/www.yinyubo.com\/?p=655","title":{"rendered":"\u4ece\u96f6\u5f00\u59cb\u5b89\u88c5istio\u4e0eskywalking"},"content":{"rendered":"<h1>\u7248\u672c<\/h1>\n<p>istio \u5b89\u88c51.8.2\u7248\u672c<br \/>\nskywalking\u5b89\u88c58.1.0\u7248\u672c<br \/>\nK8S\u96c6\u7fa4\u4f7f\u7528rancher\u5b89\u88c51.19\u7248\u672c<\/p>\n<hr \/>\n<h1>istio\u5b89\u88c5<\/h1>\n<p>1.\u4e0b\u8f7distio\u5305\u5230k8s\u7684\u4efb\u610f\u4e00\u53f0master\u673a\u5668\u4e0a<\/p>\n<pre class=\"lang:python decode:true EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">curl -L https:\/\/istio.io\/downloadIstio | sh -\n<\/code><\/pre>\n<p>2. \u8fdb\u5165istio\u76ee\u5f55\uff0c\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u540e\u7eed\u6211\u4eec\u7684istio\u5b89\u88c5\uff0c\u90fd\u5728\u8be5\u76ee\u5f55\u4e0b\u8fdb\u884c\u64cd\u4f5c<\/p>\n<pre class=\"lang:python decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">cd istio-1.8.2\nexport PATH=$PWD\/bin:$PATH\n<\/code><\/pre>\n<p>3.\u5b89\u88c5istio\uff0c\u540c\u65f6\u8bbe\u7f6eskywalking-oap\u5730\u5740<\/p>\n<pre class=\"lang:python decode:true\">\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">istioctl install \\\n  --set profile=demo \\\n  --set meshConfig.enableEnvoyAccessLogService=true \\\n  --set meshConfig.defaultConfig.envoyAccessLogService.address=skywalking-oap.istio-system:11800<\/code> \u7b49\u5f85\u51fa\u73b0\u5982\u4e0b\u56de\u663e\u5373\u53ef\u5b8c\u6210 <code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\u2714 Istio core installed\n\u2714 Istiod installed\n\u2714 Egress gateways installed\n\u2714 Ingress gateways installed\n\u2714 Installation complete<\/code><\/pre>\n<p>4.\u5b89\u88c5kiali\u3002\u5b89\u88c5\u6210\u529f\u540e\uff0c\u8bb0\u5f97\u628akiali\u901a\u8fc7ingress\u66b4\u9732\u51fa\u6765\uff0c\u6211\u662f\u4f7f\u7528\u7684traefik\u6765\u66b4\u9732\u7684<\/p>\n<pre class=\"lang:python decode:true\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">kubectl apply -f samples\/addons\nkubectl rollout status deployment\/kiali -n istio-system\n<\/code><\/pre>\n<hr \/>\n<h1>skywalking\u5b89\u88c5<\/h1>\n<pre class=\"lang:python decode:true\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">git clone https:\/\/github.com\/apache\/skywalking-kubernetes.git\ncd skywalking-kubernetes\/chart\nhelm repo add elastic https:\/\/helm.elastic.co\nhelm dep up skywalking\nhelm install 8.1.0 skywalking -n istio-system \\\n  --set oap.env.SW_ENVOY_METRIC_ALS_HTTP_ANALYSIS=k8s-mesh \\\n  --set fullnameOverride=skywalking \\\n  --set oap.envoy.als.enabled=true \\\n  --set ui.image.tag=8.1.0 \\\n  --set oap.image.tag=8.1.0-es6 \\\n  --set oap.storageType=elasticsearch<\/code><\/pre>\n<p>\u4e0a\u8ff0\u547d\u4ee4\u4f1a\u5b89\u88c5\u4e00\u4e2askywalking\u548c\u4e00\u4e2aelasticsearch 6.8.6\u7248\u672c<br \/>\n\u5b89\u88c5\u5b8c\u540e\uff0c\u66b4\u9732skywalking-ui\u5230\u5916\u90e8\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u9875\u9762\u8bbf\u95ee<\/p>\n<hr \/>\n<h1>\u5b89\u88c5\u6d4b\u8bd5\u7a0b\u5e8f<\/h1>\n<p>\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6e\u4e00\u4e0b\uff0c\u901a\u8fc7loadalance\u66b4\u9732\u5230\u5916\u7f51\u8bbf\u95ee\uff0cloadbalance\u7684IP\u53ef\u4ee5\u901a\u8fc7metallb\u641e\u4e00\u4e2a<\/p>\n<pre class=\"lang:python decode:true\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">kubectl apply -f samples\/bookinfo\/platform\/kube\/bookinfo.yaml\nkubectl apply -f samples\/bookinfo\/networking\/bookinfo-gateway.yaml\nkubectl apply -f samples\/bookinfo\/networking\/destination-rule-all.yaml\n<\/code><\/pre>\n<hr \/>\n<h1>\u90e8\u7f72\u6548\u679c<\/h1>\n<p>\u6d4f\u89c8\u5668\u8fdb\u5165bookinfo\u6d4b\u8bd5\u7a0b\u5e8f<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-656 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-15-1-1024x270.png\" alt=\"\" width=\"900\" height=\"237\" \/><br \/>\n\u8fdb\u5165kiali\u68c0\u67e5\u51fa\u73b0\u7684\u6d41\u91cf\u5206\u5e03\u60c5\u51b5<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-657 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-14-1024x649.png\" alt=\"\" width=\"900\" height=\"570\" \/><br \/>\nskywalking\u7684\u754c\u9762<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-658 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-12-1-1024x395.png\" alt=\"\" width=\"900\" height=\"347\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-659 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-13-3-1024x432.png\" alt=\"\" width=\"900\" height=\"380\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7248\u672c istio \u5b89\u88c51.8.2\u7248\u672c skywalking\u5b89\u88c58.1.0\u7248\u672c K8S\u96c6\u7fa4\u4f7f\u7528rancher\u5b89\u88c5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-elasticsearch","category-k8s"],"_links":{"self":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=655"}],"version-history":[{"count":2,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":1081,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions\/1081"}],"wp:attachment":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}