{"id":1885,"date":"2023-03-30T23:01:55","date_gmt":"2023-03-30T15:01:55","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1885"},"modified":"2023-04-22T09:00:34","modified_gmt":"2023-04-22T01:00:34","slug":"kuboard-import-and-monitor-example-microservice","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/30\/kuboard-import-and-monitor-example-microservice\/","title":{"rendered":"Kuboard\u5bfc\u5165\u53ca\u76d1\u63a7 example \u5fae\u670d\u52a1"},"content":{"rendered":"<h2>\u524d\u63d0<\/h2>\n<p>\u5fc5\u987b\u5177\u5907\u5982\u4e0b\u6761\u4ef6\uff1a<\/p>\n<ul>\n<li>Kubernetes \u96c6\u7fa4<\/li>\n<li>\u5bfc\u5165 example \u5fae\u670d\u52a1\u65f6\uff0c\u8981\u6c42 Kubernetes \u96c6\u7fa4\u7248\u672c\u4e0d\u4f4e\u4e8e 1.14.0 \u91cd\u8981<\/li>\n<li>\u5df2\u5728\u96c6\u7fa4\u4e2d\u5b89\u88c5 Kuboard<\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<h2>\u521b\u5efa\u5b58\u50a8\u8d44\u6e90<\/h2>\n<p>example\u4e2d\u7528\u5230\u4e86\u5b58\u50a8\u5377\u58f0\u660e\uff0c\u8bf7\u5728 Kuboard \u4e2d <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/cluster\/storage.html?id=\u521b\u5efa\u5b58\u50a8\u7c7b\" title=\"\u521b\u5efa\u5b58\u50a8\u7c7b\">\u521b\u5efa\u5b58\u50a8\u7c7b<\/a>\uff0c\u5426\u5219\u4e0d\u80fd\u5b8c\u6210 example \u7684\u5bfc\u5165\u64cd\u4f5c\u3002<\/p>\n<blockquote>\n<p>\u8bb8\u591a\u7f51\u53cb\u81ea\u5df1\u642d\u5efa NFS \u6d4b\u8bd5\u73af\u5883\uff0c\u518d\u521b\u5efa NFS\u5b58\u50a8\u7c7b\uff0c\u7ecf\u5e38\u78b0\u5230 access denied \u8fd9\u7c7b\u6743\u9650\u95ee\u9898\u3002\u4e3a\u4e86\u5e2e\u52a9\u5927\u5bb6\u66f4\u5feb\u5730\u5b8c\u6210 NFS \u6d4b\u8bd5\u73af\u5883\u642d\u5efa\uff0cKuboard\u63d0\u4f9b\u4e86\u4e00\u7bc7NFS\u76f8\u5173\u7684\u7b80\u660e\u6587\u6863\uff0c\u8bf7\u53c2\u8003 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/learning\/k8s-intermediate\/persistent\/nfs.html\" title=\"\u642d\u5efaNFS Server\">\u642d\u5efaNFS Server<\/a><\/p>\n<\/blockquote>\n<h2>\u521b\u5efa\u540d\u79f0\u7a7a\u95f4<\/h2>\n<p>\u521b\u5efa\u65b0\u7684\u540d\u79f0\u7a7a\u95f4\uff0c\u7528\u6765\u5bfc\u5165 example\u3002\u53ef\u53c2\u8003 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/cluster\/namespace.html?id=\u521b\u5efa\u540d\u79f0\u7a7a\u95f4\" title=\"\u521b\u5efa\u540d\u79f0\u7a7a\u95f4\">\u521b\u5efa\u540d\u79f0\u7a7a\u95f4<\/a><\/p>\n<p>\u5047\u8bbe\u5df2\u7ecf\u8fdb\u5165\u4e86 Kuboard \u540d\u79f0\u7a7a\u95f4\u754c\u9762\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<h2>\u5bfc\u5165 example<\/h2>\n<p>\uff081\uff09\u4e0b\u8f7d <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/kuboard_example.yaml\" title=\"kuboard_example.yaml\">kuboard_example.yaml<\/a> \u6587\u4ef6<\/p>\n<blockquote>\n<p>\u5728 Kuboard \u4e2d\uff0c\u65e0\u9700\u624b\u5199 yaml \u6587\u4ef6\uff0c\u6b64 yaml \u6587\u4ef6\u7684\u5185\u5bb9\u751f\u6210\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/blockquote>\n<ul>\n<li>\u901a\u8fc7 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/example\/busybox.html\" title=\"\u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d\">\u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d<\/a> \u5b8c\u6210\u5fae\u670d\u52a1\u5e94\u7528\u7684\u90e8\u7f72<\/li>\n<li>\u901a\u8fc7 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/namespace\/multi-env.html#\u5bfc\u51fa\u914d\u7f6e\" title=\"\u5bfc\u51fa\u5de5\u4f5c\u8d1f\u8f7d\">\u5bfc\u51fa\u5de5\u4f5c\u8d1f\u8f7d<\/a> \u5c06\u540d\u79f0\u7a7a\u95f4\u4e2d\u7684\u5fae\u670d\u52a1\u914d\u7f6e\u5bfc\u51fa\u5230\u4e00\u4e2a yaml \u6587\u4ef6\u4e2d<\/li>\n<\/ul>\n<p>\uff082\uff09\u70b9\u51fb<strong>\u5bfc\u5165\u5de5\u4f5c\u8d1f\u8f7d<\/strong>\u6309\u94ae<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120730196.9793d8ec.png\" alt=\"Kuboard\u5bfc\u5165\u5de5\u4f5c\u8d1f\u8f7d\" \/><\/p>\n<p>\uff083\uff09\u70b9\u51fb<strong>\u4e0a\u4f20\u6587\u4ef6<\/strong>\u6309\u94ae<\/p>\n<p>\u5e76\u9009\u62e9\u521a\u624d\u4e0b\u8f7d\u7684<code>export_example.yaml<\/code>\u6587\u4ef6<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120753533.081b6d6b.png\" alt=\"Kuboard\u5bfc\u5165\u9009\u62e9\u6587\u4ef6\" \/><\/p>\n<p>\uff084\uff09\u70b9\u51fb<strong>\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p>\u9ed8\u8ba4\u9009\u62e9\u6240\u6709\u7684\u5de5\u4f5c\u8d1f\u8f7d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120832778.e154bccd.png\" alt=\"Kuboard\u5bfc\u5165\u9009\u62e9\u5de5\u4f5c\u8d1f\u8f7d\" \/><\/p>\n<p>\uff085\uff09\u70b9\u51fb<strong>\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p>\u9ed8\u8ba4\u9009\u62e9\u6240\u6709\u8981\u5bfc\u5165\u7684\u914d\u7f6e\uff0cexample\u4e2d\u6ca1\u6709\u4f7f\u7528\u5230\u914d\u7f6e\u4fe1\u606f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120912377.e1404406.png\" alt=\"Kuboard\u5bfc\u5165\u9009\u62e9\u914d\u7f6e\" \/><\/p>\n<p>\uff086\uff09\u70b9\u51fb<strong>\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p>\u9ed8\u8ba4\u9009\u62e9\u6240\u6709Secrets<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120926747.c9754776.png\" alt=\"Kuboard\u5bfc\u5165\u9009\u62e9Secrets\" \/><\/p>\n<p>\uff087\uff09\u70b9\u51fb<strong>\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p>\u8c03\u6574\u5b58\u50a8\u5377\u53c2\u6570\uff0c\u586b\u5199\u8868\u5355\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u5b57\u6bb5\u540d\u79f0<\/th>\n<th style=\"text-align: left;\">\u586b\u5199\u5185\u5bb9<\/th>\n<th style=\"text-align: left;\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">\u6570\u636e\u5377\u7c7b\u578b<\/td>\n<td style=\"text-align: left;\">db-example-storage<\/td>\n<td style=\"text-align: left;\">NFS\uff1a\u5bb9\u5668\u7ec4\u76f4\u8fdeNFS<br \/>\u5b58\u50a8\u5377\u58f0\u660e\uff1a\u5bb9\u5668\u7ec4\u4f7f\u7528\u5b58\u50a8\u5377\u58f0\u660e<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u662f\u5426\u65b0\u5efa\u5b58\u50a8\u5377\u58f0\u660e<\/td>\n<td style=\"text-align: left;\">\u521b\u5efa\u65b0\u5b58\u50a8\u5377\u58f0\u660e<\/td>\n<td style=\"text-align: left;\">\u4f7f\u7528\u5df2\u6709\u5b58\u50a8\u5377\u58f0\u660e\uff1a\u53ef\u4ee5\u4f7f\u7528\u4e8b\u5148\u521b\u5efa\u597d\u7684\u5b58\u50a8\u5377\u58f0\u660e<br \/>\u521b\u5efa\u65b0\u5b58\u50a8\u5377\u58f0\u660e\uff1a\u53ef\u4ee5\u521b\u5efa\u65b0\u5b58\u50a8\u5377\u58f0\u660e<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u5206\u914d\u6a21\u5f0f<\/td>\n<td style=\"text-align: left;\">\u52a8\u6001\u5206\u914d<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u8bfb\u5199\u6a21\u5f0f<\/td>\n<td style=\"text-align: left;\">\u53ef\u88ab\u591a\u8282\u70b9\u8bfb\u5199<\/td>\n<td style=\"text-align: left;\">\u53ea\u80fd\u88ab\u5355\u8282\u70b9\u8bfb\u5199\u3001\u53ef\u88ab\u591a\u8282\u70b9\u53ea\u8bfb\u3001\u53ef\u88ab\u591a\u8282\u70b9\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u603b\u91cf<\/td>\n<td style=\"text-align: left;\">2Gi<\/td>\n<td style=\"text-align: left;\">2Gi\u4ee3\u8868 2G\u7a7a\u95f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120956821.69bcdbbe.png\" alt=\"Kuboard\u5bfc\u5165\u8c03\u6574\u5b58\u50a8\u5377\u53c2\u6570\" \/><\/p>\n<p>\uff088\uff09\u70b9\u51fb<strong>\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p>\u8c03\u6574\u4e92\u8054\u7f51\u5165\u53e3\u53c2\u6570\uff0c\u586b\u5199\u8868\u5355\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u5b57\u6bb5\u540d\u79f0<\/th>\n<th style=\"text-align: left;\">\u586b\u5199\u5185\u5bb9<\/th>\n<th style=\"text-align: left;\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">cloud-eureka\u57df\u540d<\/td>\n<td style=\"text-align: left;\">cloud-eureka.example.demo.eip.work<\/td>\n<td style=\"text-align: left;\">\u4f7f\u7528\u81ea\u5df1\u7684\u57df\u540d<br \/>\u5728\u6d4b\u8bd5\u73af\u5883\u5efa\u8bae\u4f7f\u7528\u57df\u540d\u683c\u5f0f\uff1aworkloadname.namespace-name.cluster-name.domain.com<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8be5\u57df\u540d\u5e94\u8be5\u89e3\u6790\u5230worker\u8282\u70b9\u7684\u5916\u7f51\u5730\u5740\uff0c\u6216\u8005worker\u8282\u70b9 80\/443 \u7aef\u53e3\u5bf9\u5e94\u8d1f\u8f7d\u5747\u8861\u670d\u52a1\u5668\u7684\u5916\u7f51\u5730\u5740<br \/>\n| web-example | web-example.example.demo.eip.work |  |<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121019167.81af1060.png\" alt=\"Kuboard\u5bfc\u5165\u8c03\u6574\u4e92\u8054\u7f51\u5165\u53e3\u53c2\u6570\" \/><\/p>\n<p>\uff089\uff09\u70b9\u51fb<strong>\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121035917.8a2b1320.png\" alt=\"Kuboard\u5bfc\u5165\u5ba1\u6838\" \/><\/p>\n<p>\uff0810\uff09\u70b9\u51fb<strong>\u786e\u5b9a<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121055648.2c6ba8d1.png\" alt=\"Kuboard\u5bfc\u5165\u786e\u5b9a\" \/><\/p>\n<p>\uff0811\uff09\u70b9\u51fb<strong>\u5e94\u7528<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121117514.ef774d3a.png\" alt=\"Kuboard\u5bfc\u5165\u5e94\u7528\" \/><\/p>\n<p>\uff0812\uff09\u70b9\u51fb<strong>\u5b8c\u6210<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121132991.69146097.png\" alt=\"Kuboard\u5bfc\u5165\u5b8c\u6210\" \/><\/p>\n<p>\uff0813\uff09\u70b9\u51fb<strong>\u5df2\u5b8c\u6210<\/strong><\/p>\n<p>\u53ef\u518d\u540d\u79f0\u7a7a\u95f4\u4e2d\u67e5\u770b\u5230\u521a\u624d\u5bfc\u5165\u7684 example \u7684\u6240\u6709\u5de5\u4f5c\u8d1f\u8f7d\u53ca\u5b58\u50a8\u5377\u58f0\u660e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121433809.7a1b4b00.png\" alt=\"Kuboard\u5bfc\u5165\u4fe1\u606f\u603b\u89c8\" \/><\/p>\n<h2>\u9a8c\u8bc1 web-example<\/h2>\n<p>\uff081\uff09\u70b9\u51fb\u5de5\u4f5c\u8d1f\u8f7d web-example<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723121412027.6888452e.png\" alt=\"Kuboard web\u5de5\u4f5c\u8d1f\u8f7d\" \/><\/p>\n<p>\u70b9\u51fb<strong>\u4e92\u8054\u7f51\u5165\u53e3<\/strong>\u4e2d\u7684\u57df\u540d<code>http:\/\/web-example.example.demo.eip.work<\/code><\/p>\n<p>\u663e\u793a Example \u90e8\u7f72\u6210\u529f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190717193548703.5167e3b9.png\" alt=\"Kuboard example\u90e8\u7f72\u6210\u529f\" \/><\/p>\n<blockquote>\n<p>web-example\u5bb9\u5668\u7684\u65e5\u5fd7\u4e2d\u4f1a\u51fa\u73b0\u5982\u4e0b\u5f02\u5e38\uff0c\u9519\u8bef\u539f\u56e0\u662f\uff0cexample\u4f7f\u7528\u4e86\u4e00\u4e2a\u76d1\u63a7\u5957\u4ef6\uff0c\u8be5\u76d1\u63a7\u5957\u4ef6\u8981\u6c42\u5c06\u5bb9\u5668\u6ce8\u518c\u5230<code>monitor-eureka<\/code>\u4e2d\uff0c\u5f53\u4e0b\u6211\u4eec\u5e76\u6ca1\u6709\u5b89\u88c5\u8be5\u76d1\u63a7\u5957\u4ef6\u3002\u6b64\u9519\u8bef\u5e76\u4e0d\u5f71\u54cd example \u7a0b\u5e8f\u7684\u4f7f\u7528\u3002\u6682\u65f6\u5ffd\u7565\u8be5\u5f02\u5e38\u3002<\/p>\n<\/blockquote>\n<pre><code class=\"language-java\">[DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient - Request execution failed with message: java.net.UnknownHostException: monitor-eureka\n[DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - DiscoveryClient_WEB-ADMIN\/web-example-7f668c75db-j7ncx - registration failed Cannot execute request on any known server\ncom.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server\n        at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112)\n        at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56)\n        at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$1.execute(EurekaHttpClientDecorator.java:59)\n        at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)\n        at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56)\n        at com.netflix.discovery.DiscoveryClient.register(DiscoveryClient.java:829)\n        at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:121)\n        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\n        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\n        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n        at java.lang.Thread.run(Thread.java:748)<\/code><\/pre>\n<h2>\u76d1\u63a7 example<\/h2>\n<p>\u5fc5\u987b\u5177\u5907\u5982\u4e0b\u6761\u4ef6\uff1a<\/p>\n<p>\u5df2\u914d\u7f6e\u4e86 NFS StorageClass<br \/>\n\u4f7f\u7528 kuboard-user \u8fd9\u4e2a ServiceAccount \u767b\u5f55 Kuboard \u754c\u9762\uff0ckuboard-user<\/p>\n<p><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/learning\/k8s-intermediate\/persistent\/storage-class.html\">https:\/\/www.kuboard.cn\/learning\/k8s-intermediate\/persistent\/storage-class.html<\/a><\/p>\n<p><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/install\/install-dashboard.html#\u83b7\u53d6token\">https:\/\/www.kuboard.cn\/install\/install-dashboard.html#\u83b7\u53d6token<\/a><\/p>\n<h3>\u5b89\u88c5\u76d1\u63a7\u5957\u4ef6<\/h3>\n<p>\uff081\uff09\u8fdb\u5165 Kuboard \u754c\u9762\u540e\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684<strong>\u8bbe\u7f6e<\/strong>\u6309\u94ae\uff08\u5706\u5f62\u56fe\u6807\uff09\uff0c\u7136\u540e\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\u5bfc\u822a\u5230 <strong>Kuboard<\/strong> &#8211;&gt; <strong>\u5957\u4ef6<\/strong>\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607140056285.94d40641.png\" alt=\"Kuboard \u5957\u4ef6\" \/><\/p>\n<p>\uff082\uff09\u70b9\u51fb\u56fe\u4e2d\u7684<strong>\u67e5\u627e\u5e76\u5b89\u88c5<\/strong>\u6309\u94ae\uff1b<\/p>\n<p>\u53ef\u4ee5\u67e5\u8be2\u5230\u5f53\u524d\u5957\u4ef6\u4ed3\u5e93\u4e2d\u7684\u53ef\u9009\u5957\u4ef6\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<blockquote>\n<p>\u5f53\u524d\u53ea\u63d0\u4f9b\u4e86\u5168\u5c40\u8d44\u6e90\u5c42\u76d1\u63a7\u5957\u4ef6\uff0c\u540e\u7eed\u5c06\u9010\u6e10\u63d0\u4f9b\u66f4\u4e30\u5bcc\u7684\u5957\u4ef6\u529f\u80fd\u3002<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607140930259.b23a9620.png\" alt=\"Kuboard \u67e5\u627e\u5e76\u5b89\u88c5\u5957\u4ef6\" \/><\/p>\n<p>\uff083\uff09\u70b9\u51fb\u6240\u9009\u62e9\u5957\u4ef6\u5bf9\u5e94\u7684<strong>\u5b89\u88c5<\/strong>\u6309\u94ae\uff0c\u53ef\u5c06\u5957\u4ef6\u6240\u9700\u8d44\u6e90\u4ece\u4ed3\u5e93\u4e2d\u52a0\u8f7d\u5230\u60a8\u81ea\u5df1\u7684 Kubernetes \u96c6\u7fa4\uff0c\u5e76\u8fdb\u5165\u8be5\u5957\u4ef6\u7684\u8be6\u60c5\u9875\u9762\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607142558152.12fce427.png\" alt=\"Kuboard \u5168\u5c40\u8d44\u6e90\u5c42\u76d1\u63a7\u5957\u4ef6\" \/><\/p>\n<p>\uff084\uff09\u70b9\u51fb \u5957\u4ef6\u53c2\u6570 Tab \u9875<\/p>\n<ul>\n<li>\u5728<strong>\u5957\u4ef6\u53c2\u6570<\/strong>Tab \u9875\u4e2d\uff0c\u8c03\u6574\u53c2\u6570\uff1b<\/li>\n<li>\u6309\u7167<strong>\u989d\u5916\u6b65\u9aa4<\/strong>\u7684\u63d0\u793a\uff0c\u6267\u884c\u5b89\u88c5\u524d\u7684\u5fc5\u987b\u52a8\u4f5c\uff0c\u5e76\u52fe\u9009<strong>\u786e\u8ba4\u5df2\u5b8c\u6210<\/strong>\u6309\u94ae<\/li>\n<li>\u70b9\u51fb<strong>\u4fdd\u5b58<\/strong>\u6309\u94ae<\/li>\n<\/ul>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607142801812.9b062b82.png\" alt=\"Kuboard \u5957\u4ef6\u53c2\u6570\" \/><\/p>\n<p>\uff085\uff09\u5728<strong>\u5957\u4ef6\u53c2\u6570<\/strong>\u9875\u5b8c\u6210\u4fdd\u5b58\u540e\uff0c\u5c06\u81ea\u52a8\u8fdb\u5165<strong>\u5b89\u88c5\u811a\u672c<\/strong>\u9875\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607142846847.768433bf.png\" alt=\"Kuboard \u5b89\u88c5\u811a\u672c\" \/><\/p>\n<p>\uff086\uff09\u70b9\u51fb<strong>\u5b89\u88c5<\/strong>\u6309\u94ae\uff0c\u8fdb\u5165<strong>\u5de5\u4f5c\u8d1f\u8f7d\u5bfc\u5165<\/strong>\u754c\u9762\uff0c\u5c06\u5957\u4ef6\u6240\u9700\u7684<code>Deployment\/Service\/ClusterRole<\/code>\u7b49\u5bf9\u8c61\u5bfc\u5165\u5230\u60a8\u7684 Kubernetes \u96c6\u7fa4\u4e2d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607142913070.dc55ee4a.png\" alt=\"Kuboard \u5de5\u4f5c\u8d1f\u8f7d\u5bfc\u5165\" \/><\/p>\n<p>\uff087\uff09\u8bf7\u6309\u5411\u5bfc\u63d0\u793a\uff0c\u5b8c\u6210\u5957\u4ef6\u6240\u4f9d\u8d56\u5bf9\u8c61\u7684\u5bfc\u5165\uff1b<\/p>\n<p>\u672c\u6587\u4e0d\u8be6\u7ec6\u63cf\u8ff0\u6b64\u5bfc\u5165\u8fc7\u7a0b\uff0c\u8bf7\u5728\u5411\u5bfc\u7684\u5f15\u5bfc\u4e0b\u5b8c\u6210\u3002<br \/>\n\u5173\u4e8e\u7b2c\u4e94\u6b65\uff0c\u8c03\u6574\u5b58\u50a8\u5377\u53c2\u6570\uff0c\u7279\u522b\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u5efa\u8bae\u4e3a<code>monitor-grafana<\/code>\/<code>monitor-prometheus<\/code>\u5206\u522b\u521b\u5efa\u65b0\u7684\u5b58\u50a8\u5377\u58f0\u660e\uff0c\u9700\u8981\u4e8b\u5148\u5df2\u7ecf\u521b\u5efa\u597d\u4e86 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/cluster\/storage.html\" title=\"StorageClass\">StorageClass<\/a><\/li>\n<li>\u5982\u679c\u5f53\u524d\u6ca1\u6709\u5408\u9002\u7684\u5b58\u50a8\u7c7b\uff0c\u4e3a\u4e86\u6d4b\u8bd5\u5957\u4ef6\u7684\u529f\u80fd\uff0c\u4e5f\u53ef\u4ee5\u5148\u9009\u62e9<code>emptyDir<\/code>\uff0c\u4e4b\u540e\u518d\u8bbe\u7f6e\u5408\u9002\u7684\u5b58\u50a8\u5377\uff08\u6b64\u65f6\uff0c\u5bb9\u5668\u7ec4\u88ab\u5220\u9664\u540e\uff0c\u6240\u6709\u7684\u76d1\u63a7\u6570\u636e\u5c06\u4e22\u5931\uff09<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143002942.f83da846.png\" alt=\"Kuboard \u8c03\u6574\u5b58\u50a8\u5377\u53c2\u6570\" \/><\/p>\n<p>\uff088\uff09\u5b8c\u6210\u5de5\u4f5c\u8d1f\u8f7d\u5bfc\u5165\u540e\uff0cKuboard \u5c06\u81ea\u52a8\u8fdb\u5165\u5957\u4ef6\u7684<strong>\u521d\u59cb\u5316<\/strong>\u9875\u9762<\/p>\n<ul>\n<li><strong>\u521d\u59cb\u5316<\/strong>\u9875\u9762\u5c06\u68c0\u6d4b\u6240\u4f9d\u8d56\u5de5\u4f5c\u8d1f\u8f7d\u7684\u5c31\u7eea\u60c5\u51b5\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143223601.6a4418f9.png\" alt=\"Kuboard \u68c0\u6d4b\u4f9d\u8d56\u5de5\u4f5c\u8d1f\u8f7d\" \/><\/p>\n<p>\u6240\u6709\u88ab\u4f9d\u8d56\u7684\u5de5\u4f5c\u8d1f\u8f7d\u5c31\u7eea\u4e4b\u540e\uff0c\u5c06\u5c55\u793a\u521d\u59cb\u5316\u65f6\u6240\u5f15\u7528\u7684\u8d44\u6e90\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143257409.e34b64d4.png\" alt=\"Kuboard \u5c55\u793a\u5f15\u7528\u8d44\u6e90\" \/><\/p>\n<p>\uff089\uff09\u70b9\u51fb<strong>\u521d\u59cb\u5316<\/strong>\u9875\u9762\u4e2d\u7684<strong>\u6267\u884c\u521d\u59cb\u5316<\/strong>\u6309\u94ae\uff0cKuboard \u5c06\u5b8c\u6210\u5bf9 Grafana \u7684\u521d\u59cb\u5316\u52a8\u4f5c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143321297.f9299953.png\" alt=\"Kuboard \u521d\u59cb\u5316\u5957\u4ef6\" \/><\/p>\n<p>\u70b9\u51fb<strong>\u786e\u5b9a<\/strong>\u540e\uff0c\u5957\u4ef6\u8be6\u60c5\u9875\u5c06\u5c55\u793a\u8be5\u5957\u4ef6\u652f\u6301\u7684<strong>\u6269\u5c55<\/strong>\u4fe1\u606f\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p>\uff0810\uff09<img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143400986.587a7836.png\" alt=\"Kuboard \u5957\u4ef6\u8be6\u60c5\" \/><\/p>\n<h2>\u67e5\u770b\u76d1\u63a7\u4fe1\u606f<\/h2>\n<p>\u5b8c\u6210\u6b64\u5957\u4ef6\u5b89\u88c5\u540e\uff0c\u5c06\u5728 Kuboard \u7684\u8282\u70b9\u8be6\u60c5\u9875\u3001\u5de5\u4f5c\u8d1f\u8f7d\u8be6\u60c5\u9875\u663e\u793a\u5bf9\u5e94\u7684\u76d1\u63a7\u754c\u9762\u5165\u53e3\uff1b<\/p>\n<p>\uff081\uff09\u8282\u70b9\u8be6\u60c5\u9875<\/p>\n<p>\u8282\u70b9\u8be6\u60c5\u9875\u589e\u52a0\u5982\u4e0b\u4e24\u4e2a\u76d1\u63a7\u754c\u9762\u5165\u53e3\uff1a<\/p>\n<ul>\n<li>\u8282\u70b9\u8d44\u6e90\u76d1\u63a7<\/li>\n<li>\u8282\u70b9\u76d1\u63a7\uff08\u542b\u8282\u70b9\u4e0a\u7684\u5bb9\u5668\u7ec4\uff09<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143723089.b0c07542.png\" alt=\"Kuboard \u8282\u70b9\u8be6\u60c5\u9875\u76d1\u63a7\u5165\u53e3\" \/><\/p>\n<p>\uff082\uff09\u5de5\u4f5c\u8d1f\u8f7d\u8be6\u60c5\u9875<\/p>\n<p>\u5de5\u4f5c\u8d1f\u8f7d\u8be6\u60c5\u9875\u589e\u52a0\u5982\u4e0b\u4e09\u4e2a\u76d1\u63a7\u754c\u9762\u5165\u53e3\uff1a<\/p>\n<ul>\n<li>\u5bb9\u5668\u7ec4\u76d1\u63a7<\/li>\n<li>\u6240\u5728\u8282\u70b9\u76d1\u63a7<\/li>\n<li>\u6240\u5728\u8282\u70b9\u76d1\u63a7\uff08\u542b\u8282\u70b9\u4e0a\u7684\u5bb9\u5668\u7ec4\uff09<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143952692.49918eb1.png\" alt=\"Kuboard \u5de5\u4f5c\u8d1f\u8f7d\u8be6\u60c5\u9875\u76d1\u63a7\u5165\u53e3\" \/><\/p>\n<h2>\u76f4\u63a5\u8bbf\u95ee Grafana \u754c\u9762<\/h2>\n<p>\u53ef\u80fd\u60f3\u8981\u81ea\u5b9a\u4e49 Grafana \u7684\u89c4\u5219\uff0c\u6bd4\u5982\u544a\u8b66\u901a\u77e5\u3001\u6388\u6743\u7ba1\u7406\u7b49\uff0c\u5982\u679c\u9700\u8981\u4ee5\u7ba1\u7406\u5458\u7528\u6237\u767b\u5f55\u5230 Grafana \u754c\u9762\uff0c\u70b9\u51fb\u4e0b\u56fe\u4e2d\u7684<strong>Grafana\u4e3b\u9875<\/strong>\u6309\u94ae\uff0c\u5373\u53ef\u4ee5\u5f53\u524d\u767b\u5f55 Kuboard \u7684\u7528\u6237\u767b\u5f55\u5230 Grafana\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607143450664.39859d05.png\" alt=\"Kuboard \u5de5\u4f5c\u8d1f\u8f7d\u8be6\u60c5\u9875\u76d1\u63a7\u5165\u53e3\" \/><\/p>\n<p>\u5173\u4e8e\u5982\u4f55\u901a\u8fc7 KuboardProxy \u8bbf\u95ee Grafana \u754c\u9762\uff0c\u4ee5\u53ca\u5982\u4f55\u5b9e\u73b0 Grafana \u4e0e Kuboard \u7684\u5355\u70b9\u8ba4\u8bc1\uff0c\u8bf7\u53c2\u8003 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/proxy\/auth-proxy.html\" title=\"KuboardProxy - Auth Proxy\">KuboardProxy &#8211; Auth Proxy<\/a><\/p>\n<h2>\u5f00\u53d1\u8005\u6a21\u5f0f<\/h2>\n<p>\u5728 Kuboard \u5957\u4ef6\u7684\u8be6\u60c5\u9875\u9762\uff0c\u53ef\u4ee5\u70b9\u51fb<strong>\u5f00\u53d1\u8005\u6a21\u5f0f<\/strong>\u6309\u94ae\uff0c\u6b64\u65f6\uff0c\u53ef\u4ee5\u4fee\u6539 Kuboard \u5957\u4ef6\u5b89\u88c5\u8fc7\u7a0b\u7684\u5404\u79cd\u811a\u672c\uff0c\u5982\uff1a<\/p>\n<ul>\n<li>\u589e\u52a0\u5957\u4ef6\u53c2\u6570<\/li>\n<li>\u4fee\u6539 YAML \u5b89\u88c5\u811a\u672c<\/li>\n<li>\u4fee\u6539\u521d\u59cb\u5316\u811a\u672c\u3001\u6dfb\u52a0\u521d\u59cb\u5316\u6240\u9700\u8d44\u6e90<\/li>\n<li>\u6dfb\u52a0\u6269\u5c55\uff0c\u4fee\u6539\u6269\u5c55\u811a\u672c\uff0c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u903b\u8f91<\/li>\n<li>\u4fee\u6539\u5957\u4ef6\u7684\u5feb\u901f\u94fe\u63a5<\/li>\n<\/ul>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200607144127342.47fa6d08.png\" alt=\"Kuboard \u5f00\u53d1\u8005\u6a21\u5f0f\" \/><\/p>\n<p>\u8fd8\u53ef\u4ee5\u5c06\u81ea\u5df1\u7684\u5957\u4ef6\u63d0\u4ea4\u5230\u5957\u4ef6\u4ed3\u5e93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0 \u5fc5\u987b\u5177\u5907\u5982\u4e0b\u6761\u4ef6\uff1a Kubernetes \u96c6\u7fa4 \u5bfc\u5165 example \u5fae\u670d\u52a1\u65f6\uff0c\u8981\u6c42 Kubernete [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[483],"class_list":["post-1885","post","type-post","status-publish","format-standard","hentry","category-k8s","tag-kuboard"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1885"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1885\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}