{"id":3409,"date":"2021-09-04T09:35:30","date_gmt":"2021-09-04T02:35:30","guid":{"rendered":"https:\/\/ton.packetlove.com\/blog\/?p=3409"},"modified":"2022-06-18T17:46:09","modified_gmt":"2022-06-18T10:46:09","slug":"lens-the-kubernetes-ide","status":"publish","type":"post","link":"https:\/\/ton.packetlove.com\/blog\/devops\/lens-the-kubernetes-ide.html","title":{"rendered":"Lens The Kubernetes IDE  + Grafana Dashboard"},"content":{"rendered":"<figure id=\"attachment_3411\" aria-describedby=\"caption-attachment-3411\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-640x389.png\" alt=\"\" width=\"640\" height=\"389\" class=\"size-medium wp-image-3411\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-640x389.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-1024x623.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-768x467.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-1536x934.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-2048x1246.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_00-100x61.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3411\" class=\"wp-caption-text\">Lens The Kubernetes IDE<\/figcaption><\/figure>\n<p>\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e04\u0e23\u0e31\u0e1a <strong>DevOps 101<\/strong> \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e19\u0e33\u0e40\u0e2a\u0e19\u0e2d <strong>Lens<\/strong> \u0e04\u0e23\u0e31\u0e1a .. \u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 \u0e01\u0e47\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e16\u0e36\u0e07 version 5.x.x \u0e01\u0e31\u0e19\u0e41\u0e25\u0e49\u0e27 \u0e13 \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e40\u0e02\u0e35\u0e22\u0e19 blog \u0e01\u0e47\u0e40\u0e1b\u0e47\u0e19 version 5.1.3 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e1a\u0e32\u0e07\u0e17\u0e48\u0e32\u0e19 \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e04\u0e22\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e31\u0e19\u0e21\u0e32\u0e1a\u0e49\u0e32\u0e07\u0e41\u0e25\u0e49\u0e27 .. \u0e41\u0e15\u0e48\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1a\u0e32\u0e07\u0e17\u0e48\u0e32\u0e19\u0e17\u0e35\u0e48\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e40\u0e04\u0e22\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e22\u0e31\u0e07\u0e2a\u0e07\u0e2a\u0e31\u0e22\u0e27\u0e48\u0e32\u0e21\u0e31\u0e19\u0e04\u0e37\u0e2d\u0e2d\u0e30\u0e44\u0e23\u0e01\u0e31\u0e19 \u0e40\u0e08\u0e49\u0e32 Lens .. \u0e08\u0e32\u0e01\u0e04\u0e33\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e43\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e04\u0e49\u0e32\u0e04\u0e37\u0e2d ..<\/p>\n<blockquote><p><strong>&#8220;Lens is the only IDE you\u2019ll ever need to take control of your Kubernetes clusters. It&#8217;s built on open source and free.&#8221;<\/strong><\/p><\/blockquote>\n<p>\u0e2a\u0e23\u0e38\u0e1b\u0e2a\u0e31\u0e49\u0e19\u0e46 \u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e01\u0e47\u0e04\u0e37\u0e2d <strong>Lens \u0e40\u0e1b\u0e47\u0e19 IDE \u0e17\u0e35\u0e48\u0e0a\u0e48\u0e27\u0e22\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23 Kubernetes (k8s) cluster<\/strong> \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 <strong>\u0e40\u0e1b\u0e47\u0e19 Open Source \u0e41\u0e25\u0e30 Free<\/strong> \ud83d\ude42<br \/>\n\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e17\u0e48\u0e32\u0e19\u0e17\u0e35\u0e48\u0e40\u0e04\u0e22\u0e43\u0e0a\u0e49 <strong>kube-proxy<\/strong> \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 <strong>Dashboard \u0e02\u0e2d\u0e07 k8s<\/strong> \u0e40\u0e2d\u0e07 .. \u0e08\u0e30\u0e1e\u0e1a\u0e27\u0e48\u0e32 \u0e21\u0e31\u0e19\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e21\u0e48\u0e04\u0e48\u0e2d\u0e22\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e40\u0e17\u0e48\u0e32\u0e44\u0e23\u0e19\u0e31\u0e01 .. \u0e25\u0e2d\u0e07\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e21\u0e32\u0e43\u0e0a\u0e49 Lens \u0e14\u0e39\u0e04\u0e23\u0e31\u0e1a \u0e08\u0e30\u0e1e\u0e1a\u0e27\u0e48\u0e32\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e01\u0e27\u0e48\u0e32\u0e21\u0e32\u0e01\u0e46 ..<\/p>\n<p>\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Lens \u0e01\u0e47\u0e44\u0e1b download \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a\u0e17\u0e35\u0e48 <a href=\"https:\/\/k8slens.dev\/\" target=\"_blank\" rel=\"noopener\">https:\/\/k8slens.dev\/<\/a> \u0e21\u0e35\u0e17\u0e31\u0e49\u0e07\u0e1a\u0e19 <strong>Mac OS<\/strong>, <strong>Windows<\/strong> \u0e41\u0e25\u0e30 <strong>Linux<\/strong> \u0e04\u0e23\u0e31\u0e1a .. \u0e15\u0e31\u0e27 Lens \u0e40\u0e2d\u0e07\u0e08\u0e30\u0e43\u0e0a\u0e49 file config \u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e1a <strong>kubectl<\/strong> \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e04\u0e37\u0e2d\u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e17\u0e35\u0e48 <strong>~\/.kube\/config<\/strong> \u0e0b\u0e36\u0e48\u0e07\u0e16\u0e49\u0e32\u0e43\u0e04\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 kubectl \u0e44\u0e14\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e01\u0e47\u0e08\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35\u0e1b\u0e31\u0e0d\u0e2b\u0e32 \u0e2d\u0e30\u0e44\u0e23 .. \u0e41\u0e15\u0e48\u0e16\u0e49\u0e32\u0e40\u0e1b\u0e34\u0e14 Lens \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27 \u0e22\u0e31\u0e07\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 \u0e01\u0e47\u0e43\u0e2b\u0e49\u0e44\u0e1b\u0e25\u0e2d\u0e07\u0e14\u0e39\u0e17\u0e35\u0e48 ~\/.kube\/config \u0e27\u0e48\u0e32\u0e21\u0e35\u0e04\u0e48\u0e32 config \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e2b\u0e21 .. \u0e2b\u0e23\u0e37\u0e2d\u0e16\u0e49\u0e32\u0e43\u0e04\u0e23\u0e43\u0e0a\u0e49 <strong>EKS<\/strong> \u0e2d\u0e22\u0e39\u0e48 \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e01\u0e47\u0e04\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e2a\u0e31\u0e48\u0e07 <strong>update kube config<\/strong> \u0e04\u0e23\u0e31\u0e1a \u0e14\u0e31\u0e07\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 ..<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>aws eks update-kubeconfig --name tono-eks \\\r\n--region ap-southeast-1 \\\r\n--profile tono-admin<\/code><\/pre>\n<\/div>\n<p>\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e19\u0e33\u0e40\u0e2a\u0e19\u0e2d\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e08\u0e49\u0e32 Lens \u0e01\u0e47\u0e04\u0e37\u0e2d <strong>Lens Metrics<\/strong> \u0e0b\u0e36\u0e48\u0e07\u0e15\u0e23\u0e07\u0e19\u0e35\u0e49 \u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e14\u0e39 <strong>resource \u0e02\u0e2d\u0e07 k8s cluster<\/strong> \u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e02\u0e36\u0e49\u0e19 \u0e2a\u0e30\u0e14\u0e27\u0e01\u0e02\u0e36\u0e49\u0e19\u0e04\u0e23\u0e31\u0e1a .. \u0e08\u0e23\u0e34\u0e07\u0e46 \u0e41\u0e25\u0e49\u0e27 \u0e01\u0e47\u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 <strong>Prometheus + Kube State Metrics + node exporter<\/strong> \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e01\u0e47\u0e1a metrics \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e08\u0e32\u0e01 k8s cluster \u0e40\u0e23\u0e32\u0e25\u0e07\u0e1a\u0e19 Prometheus \u0e19\u0e31\u0e48\u0e19\u0e40\u0e2d\u0e07\u0e04\u0e23\u0e31\u0e1a .. \u0e21\u0e32\u0e14\u0e39\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23 enable \u0e15\u0e23\u0e07\u0e19\u0e35\u0e49\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a ..<\/p>\n<h3>1.\u0e04\u0e25\u0e34\u0e01\u0e02\u0e27\u0e32\u0e17\u0e35\u0e48 icon \u0e02\u0e2d\u0e07 k8s cluster \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e41\u0e25\u0e49\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01 Settings<\/h3>\n<figure id=\"attachment_3415\" aria-describedby=\"caption-attachment-3415\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-640x389.png\" alt=\"\" width=\"640\" height=\"389\" class=\"size-medium wp-image-3415\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-640x389.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-1024x623.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-768x467.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-1536x934.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-2048x1246.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_01-100x61.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3415\" class=\"wp-caption-text\">\u0e04\u0e25\u0e34\u0e01\u0e02\u0e27\u0e32 \u0e17\u0e35\u0e48 icon k8s cluster \u0e41\u0e25\u0e49\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01 Settings<\/figcaption><\/figure>\n<h3>2.\u0e21\u0e32\u0e17\u0e35\u0e48 Lens Metrics \u0e41\u0e25\u0e49\u0e27\u0e17\u0e33\u0e01\u0e32\u0e23 Enable PROMETHEUS, KUBE STATE METRICS, NODE EXPORTER \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e01\u0e14 Apply<\/h3>\n<figure id=\"attachment_3414\" aria-describedby=\"caption-attachment-3414\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-640x389.png\" alt=\"\" width=\"640\" height=\"389\" class=\"size-medium wp-image-3414\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-640x389.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-1024x623.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-768x467.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-1536x934.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-2048x1246.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_02-100x61.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3414\" class=\"wp-caption-text\">Lens Metrics \u0e01\u0e14 Enable \u0e17\u0e31\u0e49\u0e07 3 \u0e2d\u0e31\u0e19<\/figcaption><\/figure>\n<h3>3.\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e17\u0e35\u0e48\u0e2b\u0e19\u0e49\u0e32\u0e2b\u0e25\u0e31\u0e01\u0e02\u0e2d\u0e07 Lens \u0e44\u0e1b\u0e17\u0e35\u0e48 Workloads &gt; Pods \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 pods \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a Lens Metrics \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e40\u0e02\u0e35\u0e22\u0e27\u0e41\u0e25\u0e49\u0e27<\/h3>\n<figure id=\"attachment_3412\" aria-describedby=\"caption-attachment-3412\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-640x389.png\" alt=\"\" width=\"640\" height=\"389\" class=\"size-medium wp-image-3412\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-640x389.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-1024x623.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-768x467.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-1536x934.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-2048x1246.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_03-100x61.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3412\" class=\"wp-caption-text\">Pods \u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a Lens Metrics \u0e40\u0e02\u0e35\u0e22\u0e27\u0e41\u0e25\u0e49\u0e27<\/figcaption><\/figure>\n<h3>4.\u0e01\u0e14\u0e44\u0e1b\u0e17\u0e35\u0e48 Cluster \u0e2b\u0e23\u0e37\u0e2d Nods \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19 Metrics \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a<\/h3>\n<figure id=\"attachment_3413\" aria-describedby=\"caption-attachment-3413\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-640x389.png\" alt=\"\" width=\"640\" height=\"389\" class=\"size-medium wp-image-3413\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-640x389.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-1024x623.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-768x467.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-1536x934.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-2048x1246.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Lens5_04-100x61.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3413\" class=\"wp-caption-text\">\u0e41\u0e2a\u0e14\u0e07 Metrics \u0e02\u0e2d\u0e07 k8s cluster \u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27<\/figcaption><\/figure>\n<p>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e01\u0e47\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a \u0e40\u0e23\u0e32\u0e01\u0e47\u0e08\u0e30\u0e44\u0e14\u0e49 <strong>Lens Metrics<\/strong> \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 <strong>Dashboard &amp; Monitoring<\/strong> \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a \u0e14\u0e39 \u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e02\u0e2d\u0e07 <strong>k8s cluster<\/strong> \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e01\u0e31\u0e19\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a ..<\/p>\n<h2>Update!!! (2021-09-25) Grafana Dashboard<\/h2>\n<p>\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e21\u0e32 update \u0e01\u0e32\u0e23\u0e17\u0e33 <strong>Dashboad &amp; Monitoring \u0e02\u0e2d\u0e07 k8s cluster<\/strong> \u0e17\u0e35\u0e48\u0e08\u0e30\u0e14\u0e39\u0e44\u0e14\u0e49\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e27\u0e48\u0e32\u0e19\u0e35\u0e49 \u0e14\u0e49\u0e27\u0e22 <strong>Grafana<\/strong> \u0e04\u0e23\u0e31\u0e1a ..<\/p>\n<p>\u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e17\u0e48\u0e32\u0e19 \u0e04\u0e07\u0e2d\u0e22\u0e32\u0e01\u0e21\u0e35 dashboard (Grafana) \u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49\u0e14\u0e39 metrics \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e02\u0e2d\u0e07 k8s cluster \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e43\u0e2b\u0e49\u0e04\u0e19\u0e43\u0e19\u0e17\u0e35\u0e21\u0e44\u0e14\u0e49\u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49\u0e14\u0e39 \u0e43\u0e19\u0e17\u0e38\u0e01\u0e17\u0e35\u0e48 \u0e17\u0e38\u0e01\u0e40\u0e27\u0e25\u0e32 .. \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e23\u0e32\u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e44\u0e14\u0e49\u0e1c\u0e48\u0e32\u0e19 Lens \u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e42\u0e14\u0e22\u0e21\u0e35\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 ..<\/p>\n<h3>1.\u0e44\u0e1b\u0e17\u0e35\u0e48 Apps &gt; Charts \u0e41\u0e25\u0e49\u0e27 search &#8220;prometheus-operator&#8221;<\/h3>\n<figure id=\"attachment_3429\" aria-describedby=\"caption-attachment-3429\" style=\"width: 3104px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/prometheus-operator.png\" alt=\"\" width=\"3104\" height=\"1888\" class=\"size-full wp-image-3429\" \/><figcaption id=\"caption-attachment-3429\" class=\"wp-caption-text\">prometheus-operator<\/figcaption><\/figure>\n<h3>2.\u0e01\u0e14 install \u0e43\u0e19 namespace \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e1c\u0e21 create ns \u0e0a\u0e37\u0e48\u0e2d prometheus \u0e21\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21<\/h3>\n<p>\u0e2b\u0e23\u0e37\u0e2d\u0e16\u0e49\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e25\u0e2d\u0e07 install \u0e40\u0e2d\u0e07 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e15\u0e32\u0e21\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e02\u0e2d\u0e07 <strong>prometheus-operator<\/strong> \u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e19\u0e35\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a ..<br \/>\n[Link] <a href=\"https:\/\/github.com\/prometheus-operator\/prometheus-operator\">https:\/\/github.com\/prometheus-operator\/prometheus-operator<\/a><\/p>\n<h3>3.\u0e44\u0e1b\u0e17\u0e35\u0e48 Network &gt; Services \u0e08\u0e30\u0e1e\u0e1a service \u0e17\u0e35\u0e48\u0e0a\u0e37\u0e48\u0e2d &#8220;prometheus-operator-xxx-grafana&#8221;<\/h3>\n<figure id=\"attachment_3430\" aria-describedby=\"caption-attachment-3430\" style=\"width: 3104px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/prometheus-operator-grafana.png\" alt=\"\" width=\"3104\" height=\"1888\" class=\"size-full wp-image-3430\" \/><figcaption id=\"caption-attachment-3430\" class=\"wp-caption-text\">prometheus-operator-grafana<\/figcaption><\/figure>\n<h3>4.\u0e17\u0e33\u0e01\u0e32\u0e23 login \u0e40\u0e02\u0e49\u0e32 Grafana \u0e42\u0e14\u0e22 default user-password \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 Configuration &gt; Secrets \u0e40\u0e25\u0e37\u0e2d\u0e01\u0e14\u0e39 secret &#8220;prometheus-operator-xxx-grafana&#8221;<\/h3>\n<figure id=\"attachment_3428\" aria-describedby=\"caption-attachment-3428\" style=\"width: 3104px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/prometheus-operator-grafana-password.png\" alt=\"\" width=\"3104\" height=\"1888\" class=\"size-full wp-image-3428\" \/><figcaption id=\"caption-attachment-3428\" class=\"wp-caption-text\">prometheus-operator-grafana-password<\/figcaption><\/figure>\n<h3>5.\u0e44\u0e1b\u0e17\u0e35\u0e48 Dashboard \u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 \u0e21\u0e35 k8s cluster dashboard \u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e21\u0e32\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22<\/h3>\n<figure id=\"attachment_3410\" aria-describedby=\"caption-attachment-3410\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-640x436.png\" alt=\"\" width=\"640\" height=\"436\" class=\"size-medium wp-image-3410\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-640x436.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-1024x698.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-768x524.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-1536x1047.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-2048x1396.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/Grafana_01-100x68.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3410\" class=\"wp-caption-text\">Grafana k8s Dashboard &amp; Monitoring<\/figcaption><\/figure>\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23\u0e01\u0e31\u0e19\u0e1a\u0e49\u0e32\u0e07\u0e04\u0e23\u0e31\u0e1a \u0e44\u0e21\u0e48\u0e22\u0e32\u0e01\u0e40\u0e25\u0e22\u0e43\u0e0a\u0e48\u0e44\u0e2b\u0e21\u0e04\u0e23\u0e31\u0e1a? \u0e41\u0e15\u0e48\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30 <strong>expose<\/strong> Grafana dashboard \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e43\u0e2b\u0e49\u0e04\u0e19\u0e2d\u0e37\u0e48\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e44\u0e14\u0e49\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 <strong>ingress<\/strong> \u0e21\u0e32\u0e15\u0e48\u0e2d \u0e01\u0e31\u0e1a <strong>service<\/strong> grafana \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e14\u0e49\u0e27\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a .. \u0e43\u0e19\u0e04\u0e23\u0e31\u0e49\u0e07\u0e15\u0e48\u0e2d\u0e44\u0e1b \u0e1c\u0e21\u0e08\u0e30\u0e21\u0e32\u0e1e\u0e39\u0e14\u0e16\u0e36\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 <strong>ingress<\/strong> \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a <strong>k8s cluster<\/strong> \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a .. \ud83d\ude42<\/p>\n<h2>\u0e21\u0e32\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e43\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e43\u0e2b\u0e49 Grafana \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19 \u0e01\u0e47\u0e44\u0e14\u0e49<\/h2>\n<h3>6. \u0e2a\u0e23\u0e49\u0e32\u0e07 Ingress \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a Grafana \u0e40\u0e23\u0e32 \u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e14\u0e39\u0e08\u0e32\u0e01 public \u0e44\u0e14\u0e49<\/h3>\n<p>\u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49 \u0e1c\u0e21\u0e08\u0e30 \u0e17\u0e33\u0e01\u0e32\u0e23 create ingress \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a Grafana \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e14\u0e49\u0e27\u0e22 manifest (YAML) \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>apiVersion: extensions\/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n  name: grafana\r\n  namespace: prometheus\r\n  annotations:\r\n    kubernetes.io\/ingress.class: nginx\r\nspec:\r\n  rules:\r\n    - host: grafana.domain.com\r\n      http:\r\n        paths:\r\n          - backend:\r\n              serviceName: prometheus-operator-xxx-grafana\r\n              servicePort: 80\r\n<\/code><\/pre>\n<\/div>\n<h3>7. \u0e17\u0e33\u0e01\u0e32\u0e23 Add CNAME record \u0e02\u0e2d\u0e07 Grafana \u0e21\u0e32\u0e17\u0e35\u0e48 Ingress Endpoint \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32<\/h3>\n<p>\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49 \u0e1c\u0e21\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 DNS \u0e02\u0e2d\u0e07 CloudFlare \u0e2d\u0e22\u0e39\u0e48 \u0e1c\u0e21\u0e01\u0e47\u0e08\u0e30\u0e44\u0e1b Add \u0e40\u0e1e\u0e34\u0e48\u0e21 \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<br \/>\n<figure id=\"attachment_3491\" aria-describedby=\"caption-attachment-3491\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-640x58.png\" alt=\"CloudFlare DNS\" width=\"640\" height=\"58\" class=\"size-medium wp-image-3491\" srcset=\"https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-640x58.png 640w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-1024x93.png 1024w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-768x70.png 768w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-1536x140.png 1536w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-2048x186.png 2048w, https:\/\/ton.packetlove.com\/blog\/wp-content\/uploads\/2021\/09\/CloudFlare_DNS-100x9.png 100w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-3491\" class=\"wp-caption-text\">CloudFlare DNS<\/figcaption><\/figure><br \/>\n\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e40\u0e17\u0e48\u0e32\u0e19\u0e35\u0e49 \u0e40\u0e23\u0e32\u0e01\u0e47\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 URL \u0e02\u0e2d\u0e07 Grafana \u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19 \u0e01\u0e47\u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a ..<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/ton.packetlove.com\/blog\/devops\/lens-the-kubernetes-ide.html\" action=\"like\" colorscheme=\"light\" layout=\"button_count\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/ton.packetlove.com\/blog\/devops\/lens-the-kubernetes-ide.html\" data-type=\"button_count\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e04\u0e23\u0e31\u0e1a DevOps 101 \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e19\u0e33\u0e40\u0e2a\u0e19\u0e2d Lens \u0e04\u0e23\u0e31\u0e1a .. \u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 \u0e01\u0e47\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e16\u0e36\u0e07 version 5.x.x \u0e01\u0e31\u0e19\u0e41\u0e25\u0e49\u0e27 \u0e13 \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e40\u0e02\u0e35\u0e22\u0e19 blog \u0e01\u0e47\u0e40\u0e1b\u0e47\u0e19 version 5.1.3 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e1a\u0e32\u0e07\u0e17\u0e48\u0e32\u0e19 \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e04\u0e22\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e31\u0e19\u0e21\u0e32\u0e1a\u0e49\u0e32\u0e07\u0e41\u0e25\u0e49\u0e27 .. \u0e41\u0e15\u0e48\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1a\u0e32\u0e07\u0e17\u0e48\u0e32\u0e19\u0e17\u0e35\u0e48\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e40\u0e04\u0e22\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e22\u0e31\u0e07\u0e2a\u0e07\u0e2a\u0e31\u0e22\u0e27\u0e48\u0e32\u0e21\u0e31\u0e19\u0e04\u0e37\u0e2d\u0e2d\u0e30\u0e44\u0e23\u0e01\u0e31\u0e19 \u0e40\u0e08\u0e49\u0e32 Lens .. \u0e08\u0e32\u0e01\u0e04\u0e33\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e43\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e04\u0e49\u0e32\u0e04\u0e37\u0e2d .. &#8220;Lens is the only IDE you\u2019ll ever need to take control of your Kubernetes clusters. It&#8217;s built on open source and free.&#8221; \u0e2a\u0e23\u0e38\u0e1b\u0e2a\u0e31\u0e49\u0e19\u0e46 \u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e01\u0e47\u0e04\u0e37\u0e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1080],"tags":[1060,1083,1087,1068,1092,1067,1084,1088,1089],"class_list":["post-3409","post","type-post","status-publish","format-standard","hentry","category-devops","tag-devops","tag-eks","tag-grafana","tag-k8s","tag-kube-proxy","tag-kubernetes","tag-lens","tag-monitoring","tag-prometheus"],"_links":{"self":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts\/3409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/comments?post=3409"}],"version-history":[{"count":21,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts\/3409\/revisions"}],"predecessor-version":[{"id":3494,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts\/3409\/revisions\/3494"}],"wp:attachment":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/media?parent=3409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/categories?post=3409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/tags?post=3409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}