{"id":43579,"date":"2023-03-06T22:22:16","date_gmt":"2024-02-03T05:44:59","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/"},"modified":"2024-04-29T17:40:53","modified_gmt":"2024-04-29T09:40:53","slug":"%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/","title":{"rendered":"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana"},"content":{"rendered":"<h1>\u5f00\u573a\u767d<\/h1>\n<p>\u56e0\u4e3a\u53ef\u80fd\u4f1a\u5728\u5c06\u6765\u4f7f\u7528\u8fd9\u4e2a\u914d\u7f6e\uff0c\u6240\u4ee5\u505a\u4e86\u4e00\u4e0b Kubernetes \u7684\u6559\u7a0b\uff0c\u56e0\u4e3a\u4e4b\u524d\u6ca1\u6709\u63a5\u89e6\u8fc7\uff0c<br \/>\n\u6240\u4ee5\u6211\u8fd8\u603b\u7ed3\u4e86\u4e00\u4e0b\uff0c\u5e76\u8bb0\u5f55\u4e86\u4e00\u4e9b\u8c03\u67e5\u7684\u7ed3\u679c\u3002<\/p>\n<h1>Kubernetes \u4e91\u539f\u751f\u5bb9\u5668\u7f16\u6392\u5e73\u53f0<\/h1>\n<p>\u4e00\u4e2a\u7528\u4e8e\u9ad8\u6548\u8fd0\u8425\u7ba1\u7406\u591a\u4e2a\u5bb9\u5668\u7684\u5f00\u6e90\u5e73\u53f0<\/p>\n<p>\u751f\u4ea7\u7ea7\u522b\u5bb9\u5668\u7f16\u6392 &#8211; Kubernetes<\/p>\n<h2>\u4f7f\u7528 Kubernetes \u7684\u597d\u5904<\/h2>\n<h3>\u4f7f\u7528\u5bb9\u5668\u6280\u672f<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u958b\u767a\u74b0\u5883\u306e\u7d71\u4e00<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u672c\u756a\u74b0\u5883\u3078\u306e\u9069\u5fdc<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5358\u7d14\u69cb\u6210<\/ul>\n<\/li>\n<\/ul>\n<p>\u9ad8\u901f<br \/>\n\u8efd\u91cf<br \/>\n\u30b3\u30b9\u30c8\u524a\u6e1b<\/p>\n<h3>\u5bb9\u5668\u7684\u6574\u5408\u7ba1\u7406<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u81ea\u52d5\u5316<\/ul>\n<\/li>\n<\/ul>\n<p>\u30c7\u30d7\u30ed\u30a4<br \/>\n\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0<br \/>\n\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af<br \/>\n\u81ea\u5df1\u4fee\u5fa9<br \/>\n\u52b9\u7387\u7684\u306a\u30ea\u30bd\u30fc\u30b9\u4f7f\u7528<\/p>\n<p>\u7a3c\u50cd\u3092\u7dad\u6301\u3057\u3066\u306e\u5909\u66f4<\/p>\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<br \/>\n\u6a5f\u80fd\u8ffd\u52a0<\/p>\n<h2>Kubernetes\u7684\u914d\u7f6e\u3002<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/11-0.png\" alt=\"Kubernetes.png\" \/><\/div>\n<h2>Kubernetes \u7684\u57fa\u672c\u672f\u8bed<\/h2>\n<p>\u5728\u8fd9\u4e2a\u8303\u56f4\u5185\uff0c\u6709\u5176\u4ed6\u53ef\u7528\u7684\u672f\u8bed\uff0c\u4f46\u6211\u4eec\u5c06\u53ea\u4f7f\u7528\u8fd9\u4e2a\u3002<\/p>\n<h3>\u805a\u96c6<\/h3>\n<ul class=\"post-ul\">Kubernetes \u306e\u30ea\u30bd\u30fc\u30b9\u3092\u3072\u3068\u304f\u304f\u308a\u306b\u307e\u3068\u3081\u305f\u3082\u306e<\/ul>\n<h3>\u8282\u70b9<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u7269\u7406\u30de\u30b7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>AWS \u3067\u3042\u308c\u3070 EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/p>\n<p>Master Node \u3068 Node \u3067\u533a\u5225\u304c\u3042\u308b<\/p>\n<p>Master Node \u306f Kubernetes \u3092\u7ba1\u7406\u3059\u308b<br \/>\nNode \u3067\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u52d5\u304b\u3059<\/p>\n<h3>\u98de\u673a<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Control Plane \u306f Master Node \u304c\u914d\u7f6e\u3055\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Data Plane \u306b\u306f Node \u304c\u914d\u7f6e\u3055\u308c\u308b<\/ul>\n<h3>\u835a<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30f3\u30c6\u30ca\u306e\u96c6\u5408<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u969b\u306e\u6700\u5c0f\u5358\u4f4d<\/ul>\n<h3>\u590d\u5236\u96c6\u5408<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5e38\u306b\u7a3c\u50cd\u3057\u3066\u3044\u308b\u540c\u4e00\u4ed5\u69d8\u306e Pod \u306e\u6570<\/ul>\n<\/li>\n<\/ul>\n<p>\u5197\u9577\u5316<\/p>\n<h3>\u90e8\u7f72<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30d7\u30ed\u30a4\u7ba1\u7406\u304c\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<br \/>\n\u30ed\u30fc\u30eb\u30d0\u30c3\u30af<\/p>\n<h1>\u4e9a\u9a6c\u900a\u5f39\u6027\u5bb9\u5668\u670d\u52a1 (Amazon EKS)<\/h1>\n<p>AWS\u63d0\u4f9b\u7684Kubernetes\u6258\u7ba1\u670d\u52a1\u4e3b\u8981\u8d1f\u8d23\u5904\u7406Kubernetes\u4e2d\u7684\u4e3b\u8282\u70b9\u90e8\u5206\u3002<\/p>\n<p>Amazon EKS \u662f\u4e9a\u9a6c\u900a\u7684 AWS \u670d\u52a1\u3002<\/p>\n<h1>\u521b\u5efa EKS \u96c6\u7fa4<\/h1>\n<p>\u636eAWS\u5b98\u65b9\u6587\u4ef6\u4ecb\u7ecd\uff0c\u4f3c\u4e4e\u6709\u4e00\u4e2a\u540d\u4e3aeksctl\u7684\u5355\u884c\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u6240\u6709\u5185\u5bb9\uff0c\u4f46\u7531\u4e8e\u4e0d\u6e05\u695a\u5b83\u5185\u90e8\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u6240\u4ee5\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528\u5e38\u89c4\u65b9\u6cd5\u8fdb\u884c\u521b\u5efa\u3002<\/p>\n<h2>\u73af\u5883<\/h2>\n<p>Windows 10 -&gt; \u5341\u4ee3 Windows \u64cd\u4f5c\u7cfb\u7edf<\/p>\n<p>AWS CLI 1.16.191<br \/>\nAWS CLI \u5b89\u88c5 &#8211; AWS<\/p>\n<p>kubectl 1.14.8<br \/>\nKubectl \u7684\u5b89\u88c5- AWS<\/p>\n<p>Helm 2.15.1\u7248\u672c<br \/>\n\u5b89\u88c5Helm &#8211; Helm<\/p>\n<p>Istio 1.3.4<br \/>\n\u4e0b\u8f7d\u8fd9\u4e2a\u7248\u672c &#8211; Istio<\/p>\n<h2>\u6d41\u52a8<\/h2>\n<p>\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u521b\u5efa\uff1a<br \/>\n1. \u89d2\u8272<br \/>\n2. VPC<br \/>\n3. EKS \u96c6\u7fa4<br \/>\n4. \u8282\u70b9<br \/>\n5. \u90e8\u7f72\u5230 EKS \u96c6\u7fa4<\/p>\n<p>AWS\u7ba1\u7406\u63a7\u5236\u53f0\u7684\u542f\u52a8\u65b9\u6cd5- AWS<\/p>\n<h3>\u6784\u56fe<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/41-0.png\" alt=\"AWS-EKS.png\" \/><\/div>\n<h3>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u53ef\u80fd\u7684\u4e2d\u6587\u7ffb\u8bd1\uff1a<\/h3>\n<p>\u5377\u7b52<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/43-0.png\" alt=\"role.png\" \/><\/div>\n<h3>VPC\u7684\u610f\u601d\u662f\u865a\u62df\u79c1\u6709\u4e91\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/45-0.png\" alt=\"vpc-stack-1.png\" \/><\/div>\n<h3>EKS \u96c6\u7fa4<\/h3>\n<p>\u7531\u4e8e\u4ece\u63a7\u5236\u9762\u677f\u4e0a\u65e0\u6cd5\u6210\u529f\u8fdb\u884c\u540e\u7eed\u786e\u8ba4\uff0c\u6240\u4ee5\u4f7f\u7528\u4e86\u547d\u4ee4\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/48-0.png\" alt=\"vpc-stack-2.png\" \/><\/div>\n<pre class=\"post-pre\"><code>  $ aws eks create-cluster --name [cluster-name] --role-arn [eks-role] --resources-vpc-config subnetIds=[subnet-ids],securityGroupIds=[security-group-ids]\r\n\r\n  $ aws eks update-kubeconfig --name [cluster-name]\r\n<\/code><\/pre>\n<p>\u53ea\u8981 Kubernetes \u6210\u529f\u8f93\u51fa\u5230\u670d\u52a1\u4e2d\uff0c\u5c31\u7b97\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ kubectl get svc\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/52-0.png\" alt=\"eks-cluster-svc.png\" \/><\/div>\n<h3>\u8282\u70b9<\/h3>\n<p>\u4f7f\u7528 CloudFormation \u521b\u5efa EKS \u4f18\u5316\u8282\u70b9<br \/>\n\u6839\u636e\u4ee5\u4e0b\u53c2\u8003\u586b\u5199\u9664 NodeImageId \u548c BootstrapArguments \u4e4b\u5916\u7684\u53c2\u6570<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/55-0.png\" alt=\"node-stack-1.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/56-0.png\" alt=\"node-stac-2k.png\" \/><\/div>\n<pre class=\"post-pre\"><code>  $ kubectl apply -f aws-auth-cm.yaml\r\n<\/code><\/pre>\n<p>\u5f53\u8282\u70b9\u51c6\u5907\u5c31\u7eea\u65f6\uff0c\u4efb\u52a1\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ kubectl get nodes\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/60-0.png\" alt=\"get-nodes.png\" \/><\/div>\n<h1>Helm \/ Istio \/ Prometheus \/ Grafana<br \/>\n\u5b89\u88c5\u7a0b\u5e8f \/ Istio \/ \u7edf\u8ba1\u5668 \/ Grafana<\/h1>\n<p>\u8fd9\u6b21\u8981\u4f7f\u7528\u7684\u8f6f\u4ef6\u548c\u5de5\u5177<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Helm<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Kubernetes \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u30fc\u5185\u306b tiller \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u3067 APIserver \u3092\u4ecb\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30bd\u30fc\u30b9\u306e\u64cd\u4f5c\u304c\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Istio<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u6210\u3059\u308b\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6761\u4ef6\u3084\u5272\u5408\u3067\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u5236\u5fa1\u3084\u30ed\u30b0\u53ce\u96c6\u304c\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Prometheus<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30e1\u30c8\u30ea\u30af\u30b9\u30d9\u30fc\u30b9\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Grafana<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u53ef\u8996\u5316\u30c4\u30fc\u30eb<\/ul>\n<h1>\u5c06\u90e8\u7f72\u5230 EKS \u96c6\u7fa4<\/h1>\n<h3>\u8235\u67c4\u90e8\u7f72<\/h3>\n<pre class=\"post-pre\"><code>  $ kubectl -n kube-system create serviceaccount tiller\r\n\r\n  $ kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller\r\n\r\n  $ helm init --service-account=tiller\r\n<\/code><\/pre>\n<p>\u4e00\u65e6\u8f93\u51fa\u5ba2\u6237\/\u670d\u52a1\u5668\uff0c\u5219\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ helm version\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/69-0.png\" alt=\"helm-tiller.png\" \/><\/div>\n<h3>Istio\u7684\u90e8\u7f72<\/h3>\n<p>\u79fb\u52a8\u5230\u90e8\u7f72\u4e86Istio\u7684\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u62ecPrometheus\u548cGranfana\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ helm install --name istio-init install\/kubernetes\/helm\/istio-init --namespace istio-system\r\n\r\n  $ helm install --name istio install\/kubernetes\/helm\/istio --namespace istio-system --set grafana.enabled=true --set grafana.persistentVolume.storageClass=\"gp2\",server.persistentVolume.storageClass=\"gp2\"\r\n<\/code><\/pre>\n<p>\u5982\u679cIstio\u7684Pod\u88ab\u8f93\u51fa\uff0c\u5219\u4efb\u52a1\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ kubectl get pods -n istio-system\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/75-0.png\" alt=\"istio.png\" \/><\/div>\n<h3>\u90e8\u7f72 BookInfo\uff08\u7528\u4e8e\u793a\u4f8b\u7684\u5e94\u7528\u7a0b\u5e8f\uff09\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/77-0.png\" alt=\"istio-bookinfo.png\" \/><\/div>\n<blockquote><p>\u5f15\u7528\u4e66\u7c4d\u4fe1\u606f\u5e94\u7528\u7a0b\u5e8f<\/p><\/blockquote>\n<pre class=\"post-pre\"><code>  $ kubectl create namespace bookinfo\r\n\r\n  $ kubectl label namespace bookinfo istio-injection=enabled\r\n\r\n  $ kubectl apply -f samples\/bookinfo\/platform\/kube\/bookinfo.yaml -n bookinfo\r\n\r\n  $ kubectl apply -f samples\/bookinfo\/networking\/bookinfo-gateway.yaml -n bookinfo\r\n<\/code><\/pre>\n<p>\u53ea\u8981BookInfo\u7684Pod\u88ab\u8f93\u51fa\uff0c\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ kubectl get pods -n bookinfo\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/82-0.png\" alt=\"bookinfo.png\" \/><\/div>\n<h3>\u786e\u8ba4\u90e8\u7f72<\/h3>\n<pre class=\"post-pre\"><code>  $ kubectl get svc -n istio-system\r\n<\/code><\/pre>\n<p>\u8bbf\u95ee EXTERNAL-IP\/productpage\/<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/86-2.png\" alt=\"page-3.png\" \/><\/div>\n<h3>\u4f7f\u7528 Prometheus\/Grafana \u8fdb\u884c\u76d1\u63a7\u786e\u8ba4\u3002<\/h3>\n<h4>\u666e\u7f57\u7c73\u4fee\u65af<\/h4>\n<pre class=\"post-pre\"><code>  $ kubectl port-forward deploy\/prometheus -n istio-system 9090:9090\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/90-0.png\" alt=\"prometheus.png\" \/><\/div>\n<h4>Grafana\u662f\u4e00\u4e2a\u6570\u636e\u53ef\u89c6\u5316\u548c\u76d1\u63a7\u5e73\u53f0\u3002<\/h4>\n<pre class=\"post-pre\"><code>  $ kubectl port-forward deploy\/grafana -n istio-system 3000:3000\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/93-1.png\" alt=\"grafana-dashboard.png\" \/><\/div>\n<h1>\u5220\u9664<\/h1>\n<p>\u5728EKS\u4e2d\uff0c\u4f7f\u7528\u547d\u4ee4\u521b\u5efaAWS\u8d44\u6e90\u3002<br \/>\n\u7531\u4e8e\u5728\u6b64\u6b21\u90e8\u7f72Istio\u65f6\u521b\u5efa\u4e86\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u56e0\u6b64\u5728\u5220\u9664\u96c6\u7fa4\u4e4b\u524d\u9700\u8981\u5c06\u5176\u5220\u9664\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ kubectl get svc --all-namespaces\r\n<\/code><\/pre>\n<p>\u5220\u9664\u5177\u6709EXTERNAL-IP\u503c\u7684\u670d\u52a1\u3002<\/p>\n<pre class=\"post-pre\"><code>  $ kubectl delete svc istio-ingressgateway -n istio-system\r\n<\/code><\/pre>\n<p>\u4ece\u63a7\u5236\u9762\u677f\u4e2d\u4f9d\u6b21\u5220\u9664\uff1a<br \/>\n1. \u8282\u70b9\u5806\u6808<br \/>\n2. \u96c6\u7fa4<br \/>\n3. VPC\u5806\u6808<\/p>\n<h1>\u603b\u7ed3<\/h1>\n<p>\u56e0\u4e3a\u662f\u7b2c\u4e00\u6b21\u63a5\u89e6CloudFormation\uff0c\u6240\u4ee5\u6211\u4e0d\u4e86\u89e3\u5b83\u7684\u64cd\u4f5c\u65b9\u5f0f\uff0c\u5728\u5931\u8d25\u65f6\u6ca1\u6709\u7406\u89e3\u5982\u4f55\u8fdb\u884c\u6062\u590d\uff0c\u8fd9\u8ba9\u6211\u611f\u5230\u56f0\u96be\u3002<br \/>\n\u7279\u522b\u662f\u5728\u4f7f\u7528Istio\u548cPrometheus\u65f6\uff0c\u7531\u4e8e\u8d44\u6599\u8f83\u5c11\uff0c\u82b1\u8d39\u4e86\u5f88\u591a\u65f6\u95f4\u3002<\/p>\n<p>\u6211\u91cd\u65b0\u610f\u8bc6\u5230 Kubernetes \u662f\u4e00\u9879\u5f3a\u5927\u7684\u6280\u672f\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u65b9\u4fbf\u4e14\u7acb\u5373\u5730\u64cd\u4f5c\u8d44\u6e90\u3002\u7136\u800c\uff0c\u6211\u8ba4\u4e3a\u5b9e\u9645\u8fd0\u7528\u5b83\u9700\u8981\u5b66\u4e60\u4e00\u4e9b\u76f8\u5173\u5de5\u5177\uff0c\u6bd4\u5982 Helm\uff0c\u8fd9\u589e\u52a0\u4e86\u5b66\u4e60\u6210\u672c\u3002<\/p>\n<p>\u7531\u4e8e\u53ea\u662f\u603b\u7ed3\u4e86\u6b65\u9aa4\uff0c\u800c\u6ca1\u6709\u8fdb\u884c\u8bbe\u7f6e\u6587\u4ef6\u7684\u7f16\u8f91\u7b49\u5de5\u4f5c\uff0c\u6240\u4ee5\u8fd9\u7bc7\u6587\u7ae0\u53ea\u662f\u7b80\u5355\u6982\u8ff0\uff0c\u6211\u5e0c\u671b\u80fd\u591f\u8fdb\u4e00\u6b65\u52a0\u6df1\u7406\u89e3\uff0c\u4ee5\u4fbf\u80fd\u591f\u8f7b\u677e\u5730\u8fdb\u884c\u89e3\u91ca\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u573a\u767d \u56e0\u4e3a\u53ef\u80fd\u4f1a\u5728\u5c06\u6765\u4f7f\u7528\u8fd9\u4e2a\u914d\u7f6e\uff0c\u6240\u4ee5\u505a\u4e86\u4e00\u4e0b Kubernetes \u7684\u6559\u7a0b\uff0c\u56e0\u4e3a\u4e4b\u524d\u6ca1\u6709\u63a5\u89e6\u8fc7\uff0c \u6240\u4ee5\u6211 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-43579","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u5728amazon-eks\u4e0a\u90e8\u7f72istio-prometheus-grafana\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana\" \/>\n<meta property=\"og:description\" content=\"\u5f00\u573a\u767d \u56e0\u4e3a\u53ef\u80fd\u4f1a\u5728\u5c06\u6765\u4f7f\u7528\u8fd9\u4e2a\u914d\u7f6e\uff0c\u6240\u4ee5\u505a\u4e86\u4e00\u4e0b Kubernetes \u7684\u6559\u7a0b\uff0c\u56e0\u4e3a\u4e4b\u524d\u6ca1\u6709\u63a5\u89e6\u8fc7\uff0c \u6240\u4ee5\u6211 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728amazon-eks\u4e0a\u90e8\u7f72istio-prometheus-grafana\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-03T05:44:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T09:40:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/11-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/\",\"name\":\"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-03T05:44:59+00:00\",\"dateModified\":\"2024-04-29T09:40:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u5728amazon-eks\u4e0a\u90e8\u7f72istio-prometheus-grafana\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana","og_description":"\u5f00\u573a\u767d \u56e0\u4e3a\u53ef\u80fd\u4f1a\u5728\u5c06\u6765\u4f7f\u7528\u8fd9\u4e2a\u914d\u7f6e\uff0c\u6240\u4ee5\u505a\u4e86\u4e00\u4e0b Kubernetes \u7684\u6559\u7a0b\uff0c\u56e0\u4e3a\u4e4b\u524d\u6ca1\u6709\u63a5\u89e6\u8fc7\uff0c \u6240\u4ee5\u6211 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728amazon-eks\u4e0a\u90e8\u7f72istio-prometheus-grafana\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-03T05:44:59+00:00","article_modified_time":"2024-04-29T09:40:53+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d538a37434c4406ccfef8\/11-0.png"}],"author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/","name":"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-03T05:44:59+00:00","dateModified":"2024-04-29T09:40:53+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Amazon EKS\u4e0a\u90e8\u7f72Istio \/ Prometheus \/ Grafana"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8amazon-eks%e4%b8%8a%e9%83%a8%e7%bd%b2istio-prometheus-grafana%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=43579"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43579\/revisions"}],"predecessor-version":[{"id":86693,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43579\/revisions\/86693"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=43579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=43579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=43579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}