{"id":406,"date":"2022-03-25T13:08:12","date_gmt":"2022-03-25T05:08:12","guid":{"rendered":"https:\/\/www.hgostand.com\/?p=406"},"modified":"2022-03-29T09:03:09","modified_gmt":"2022-03-29T01:03:09","slug":"%e7%94%a8%e6%a0%91%e8%8e%93%e6%b4%be%e6%90%ad%e5%bb%ba%e5%8f%a3%e8%a2%8b%e4%ba%91%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/wite.oxoooo.com\/?p=406","title":{"rendered":"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u5199\u8fd9\u7bc7\u6587\u7ae0\u662f\u4e3a\u4e86\u7ed9\u4f60\u4e00\u4e2a\u501f\u53e3\uff0c\u8ba9\u4f60\u5439\u6389\u90a3\u4e9b\u5fae\u82af\u7247\u4e0a\u7684\u7070\u5c18\uff0c\u8ba9\u4f60\u7684\u53e3\u888b\u5927\u5c0f\u7684\u7845\u7247\u4f5c\u4e3a\u4e16\u754c\u4e0a\u6700\u5c0f\u7684API\u9a71\u52a8\u7684\u4e91\u6765\u5de5\u4f5c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6309\u7167\u672c\u6587\u7684\u8bf4\u660e\uff0c\u4f60\u5c06\u80fd\u591f\u4f7f\u7528REST API\u4ece\u4efb\u4f55\u5730\u65b9\u5411\u4f60\u7684\u53e3\u888b\u4e91\u90e8\u7f72\u8ba1\u5212\u4efb\u52a1\u3001webhook\u63a5\u6536\u5668\u3001\u7f51\u9875\u548c\u529f\u80fd\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-6-1024x577.png\" alt=\"\" class=\"wp-image-407\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-1024x577.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-300x169.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-768x433.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-535x301.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-1536x865.png 1536w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-900x507.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6-500x282.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-6.png 1686w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u7ae0\u5927\u7eb2<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5168\u5c3a\u5bf8\u7684\u4e91\u662f\u4ec0\u4e48\u6837\u5b50\u7684\uff1f<\/li><li>\u4e00\u4e2a\u53e3\u888b\u4e91\u7684\u5b9a\u4e49<\/li><li>\u64e6\u4eae\u4f60\u7684\u6811\u8393\u6d3e<\/li><li>\u4e3aAPI\u9a71\u52a8\u7684\u90e8\u7f72\u8bbe\u7f6efaasd<\/li><li>\u8bd5\u7528\u4e00\u4e2a\u5b58\u50a8\u51fd\u6570<\/li><li>\u63a2\u7d22\u5f02\u6b65\u8c03\u7528\u7cfb\u7edf<\/li><li>\u7528GitHub\u884c\u52a8\u8fdb\u884c\u90e8\u7f72<\/li><li>\u63a2\u7d22\u76d1\u63a7\u548c\u5ea6\u91cf<\/li><li>\u7ed3\u8bba\u548c\u66f4\u591a\u8d44\u6e90<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u5c3a\u5bf8\u7684\u4e91\u662f\u4ec0\u4e48\u6837\u5b50\u7684\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636eNIST\u5bf9\u4e91\u7684\u6700\u7ec8\u5b9a\u4e49&#8221;\u4e91\u8ba1\u7b97\u662f\u4e00\u79cd\u6a21\u5f0f\uff0c\u7528\u4e8e\u5b9e\u73b0\u65e0\u5904\u4e0d\u5728\u7684\u3001\u65b9\u4fbf\u7684\u3001\u6309\u9700\u7684\u7f51\u7edc\u8bbf\u95ee\u53ef\u914d\u7f6e\u7684\u8ba1\u7b97\u8d44\u6e90\uff08\u5982\u7f51\u7edc\u3001\u670d\u52a1\u5668\u3001\u5b58\u50a8\u3001\u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\uff09\u7684\u5171\u4eab\u6c60\uff0c\u53ef\u4ee5\u5728\u6700\u5c0f\u7684\u7ba1\u7406\u52aa\u529b\u6216\u670d\u52a1\u63d0\u4f9b\u5546\u7684\u4e92\u52a8\u4e0b\u5feb\u901f\u914d\u7f6e\u548c\u91ca\u653e\u3002&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u6211\u8bfb\u5230\u8fd9\u4e2a\u5b9a\u4e49\u65f6\uff0c\u4f5c\u8005\u4f3c\u4e4e\u662f\u5728\u63cf\u8ff0\u4e00\u4e2a\u50cfAWS\u3001GCP\u8fd9\u6837\u7684\u7ba1\u7406\u4e91\u4f9b\u5e94\u5546\uff0c\u6216\u4e00\u4e9b\u50cfKubernetes\uff08<a href=\"https:\/\/kubernetes.io\/\uff09\u6216\u4e3b\u8981\u7684\u7ba1\u7406\u7a0b\u5e8f\u4e4b\u4e00\u7684\u53ef\u5b89\u88c5\u8f6f\u4ef6\u3002\">https:\/\/kubernetes.io\/\uff09\u6216\u4e3b\u8981\u7684\u7ba1\u7406\u7a0b\u5e8f\u4e4b\u4e00\u7684\u53ef\u5b89\u88c5\u8f6f\u4ef6\u3002<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u73b0\u5728\uff0c\u6211\u4eec\u4e0d\u80fd\u4ece\u6211\u4eec\u7684\u6811\u8393Pis\u4e0a\u83b7\u5f97AWS\uff0c\u4f46\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u6811\u8393Pis\u96c6\u7fa4\u4e0a\u5b89\u88c5Kubernetes\uff0c\u914d\u7f6e\u4e00\u4e2a\u7f51\u7edc\u5b58\u50a8\u5c42\uff0c\u5e76\u4f7f\u7528netbooting\u6765\u8f7b\u677e\u914d\u7f6e\u548c\u91cd\u65b0\u914d\u7f6e\u4e3b\u673a\uff0c\u4ece\u800c\u76f8\u5f53\u63a5\u8fd1\u5b9a\u4e49\u7684\u5927\u90e8\u5206\u5185\u5bb9\u3002\u6211\u5728\u6211\u7684\u7814\u8ba8\u4f1a\u4e0a\u8c08\u5230\u4e86\u5982\u4f55\u505a\u5230\u8fd9\u4e00\u70b9\u3002\u4f7f\u7528K3s\u7684\u6811\u8393\u6d3e\u7684\u7f51\u7edc\u542f\u52a8\u7814\u8ba8\u4f1a (<a href=\"https:\/\/store.openfaas.com\/l\/netbooting-raspberrypi\">https:\/\/store.openfaas.com\/l\/netbooting-raspberrypi<\/a>)<br>\u4f46\u6211\u4eec\u4e0d\u6253\u7b97\u8fd9\u6837\u505a\uff0c\u539f\u56e0\u6709\u4e8c\u3002\u7b2c\u4e00\u4e2a\u539f\u56e0\u662f\u6811\u8393\u6d3e\u77ed\u7f3a\uff0c\u6240\u4ee5\u8fd9\u5b9e\u9645\u4e0a\u662f\u5728\u4f7f\u7528\u4f60\u73b0\u6709\u7684\u8bbe\u5907\uff0c\u5e76\u5c06\u5176\u7528\u4e8e\u5de5\u4f5c\u3002\u7b2c\u4e8c\u4e2a\u539f\u56e0\u662f\uff0cKubernetes\u6709\u4e00\u4e2a\u4e0d\u5c0f\u7684\u6210\u672c\uff0c\u8fd9\u5bf9\u4e00\u4e2a\u53e3\u888b\u4e91\u6765\u8bf4\u5e76\u4e0d\u5b8c\u5168\u5fc5\u8981\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u4e2a\u8896\u73cd\u7684\u5b9a\u4e49<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5bf9\u4e91\u7684\u5b9a\u4e49\u5c06\u662f\u6309\u6bd4\u4f8b\u7f29\u5c0f\uff0c\u4ee5\u9002\u5e94\u4f60\u7684\u53e3\u888b\uff0c\u5728\u4e0d\u52301GB\u7684\u5185\u5b58\u4e2d\u3002\u6211\u4eec\u4eca\u5929\u6240\u6784\u5efa\u7684\u662f\u4e00\u4e2a\u8fd0\u884c\u6211\u4eec\u7684\u4ee3\u7801\u7684\u5730\u65b9\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7API\u8fdb\u884c\u914d\u7f6e\u2014\u4f7f\u7528\u5bb9\u5668\u8fdb\u884c\u6253\u5305\uff0c\u8fd9\u6837\u5c31\u5f88\u5bb9\u6613\u5b9e\u73b0\u81ea\u52a8\u5316\u548c\u7ef4\u62a4\u3002\u6211\u4eec\u7684\u67b6\u6784\u4e2d\u4f1a\u6709\u4e00\u4e2a\u5355\u70b9\u6545\u969c\uff0c\u4f46\u6211\u4eec\u4f1a\u901a\u8fc7\u4f7f\u7528NVMe SSD\u800c\u4e0d\u662fSD\u5361\u6765\u5e94\u5bf9\uff0c\u8fd9\u5ef6\u957f\u4e86\u6211\u4eec\u7684\u5b58\u50a8\u6545\u969c\u65f6\u95f4\u3002\u8be5\u8f6f\u4ef6\u5f88\u5bb9\u6613\u90e8\u7f72\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u5c06\u5e73\u5747\u6062\u590d\u65f6\u95f4\uff08MTTR\uff09\u51cf\u5c11\u5230\u51e0\u5206\u949f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u5165API\u9a71\u52a8\u7684\u90e8\u7f72<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u5728Twitter\u4e0a\u82b1\u4e86\u592a\u591a\u7684\u65f6\u95f4\uff0c\u7ecf\u5e38\u770b\u5230\u4e00\u4e9b\u6709\u70b9\u50cf\u8fd9\u6837\u7684\u63a8\u6587\u3002<br>&#8220;\u6211\u7528Go\/Python\/Node\u5199\u4e86\u4e00\u4e2aHTTP\u670d\u52a1\u5668\uff0c\u5e76\u628a\u5b83\u90e8\u7f72\u5230\u67d0\u4e2a\u865a\u62df\u673a\u4e0a\uff0c\u4f46\u73b0\u5728\u6211\u4e0d\u77e5\u9053\u5982\u4f55\u8fdc\u7a0b\u91cd\u65b0\u90e8\u7f72\u5b83&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8fc7\u53bb\u7684\u597d\u65e5\u5b50\u91cc\uff0c\u6211\u4eec\u4f1a\u4f7f\u7528FTP\u6216SFTP\u5c06\u4ee3\u7801\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u4f20\u8f93\u5230\u751f\u4ea7\u4e2d\uff0c\u7136\u540e\u901a\u8fc7SSH\u8fde\u63a5\u6216\u63a7\u5236\u9762\u677fUI\u6765\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u3002\u8fd9\u53ef\u80fd\u662f\u5f53\u4eca\u6700\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u4e4b\u4e00\uff0c\u4f46\u5b83\u51e0\u4e4e\u4e0d\u662f &#8220;API\u9a71\u52a8 &#8220;\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u80fd\u628a\u4f60\u7684\u4ee3\u7801\u6253\u5305\u5728\u4e00\u4e2a\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u7528curl\u8bf7\u6c42\u6765\u90e8\u7f72\u65b0\u7684\u7248\u672c\uff0c\u4f1a\u600e\u4e48\u6837\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u80fd\u542c\u8bf4\u8fc7OpenFaaS\uff08<a href=\"https:\/\/openfaas.com\/\uff09--\u6211\u57282016\u5e74\u5f00\u59cb\u7684\u4e00\u4e2a\u9879\u76ee\uff0c\u65e8\u5728\u627e\u5230\u4e00\u79cd\u5728\u4efb\u4f55\u4e91\u4e0a\u8fd0\u884c\u529f\u80fd\u7684\u65b9\u6cd5\uff0c\u5728\u6211\u7ba1\u7406\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u4ee5\u5bb9\u5668\u4e3a\u539f\u59cb\uff0c\u800c\u4e0d\u662f\u538b\u7f29\u6587\u4ef6\u3002\u6211\u60f3\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u6211\u7684\u9700\u6c42\u7684\u8d85\u65f6\uff0c\u800c\u4e0d\u662f\u4f9b\u5e94\u5546\u7684SLA\u7684\u4efb\u4f55\u610f\u4e49\u3002\u6211\u60f3\u4f7f\u7528\u5bb9\u5668\uff0c\u8fd9\u6837\u6211\u5c31\u53ef\u4ee5\u5728\u672c\u5730\u90e8\u7f72\u548c\u6d4b\u8bd5\u6211\u7684\u5de5\u4f5c\u3002\">https:\/\/openfaas.com\/\uff09&#8211;\u6211\u57282016\u5e74\u5f00\u59cb\u7684\u4e00\u4e2a\u9879\u76ee\uff0c\u65e8\u5728\u627e\u5230\u4e00\u79cd\u5728\u4efb\u4f55\u4e91\u4e0a\u8fd0\u884c\u529f\u80fd\u7684\u65b9\u6cd5\uff0c\u5728\u6211\u7ba1\u7406\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u4ee5\u5bb9\u5668\u4e3a\u539f\u59cb\uff0c\u800c\u4e0d\u662f\u538b\u7f29\u6587\u4ef6\u3002\u6211\u60f3\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u6211\u7684\u9700\u6c42\u7684\u8d85\u65f6\uff0c\u800c\u4e0d\u662f\u4f9b\u5e94\u5546\u7684SLA\u7684\u4efb\u4f55\u610f\u4e49\u3002\u6211\u60f3\u4f7f\u7528\u5bb9\u5668\uff0c\u8fd9\u6837\u6211\u5c31\u53ef\u4ee5\u5728\u672c\u5730\u90e8\u7f72\u548c\u6d4b\u8bd5\u6211\u7684\u5de5\u4f5c\u3002<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e5f\u8bb8\u4f60\u5df2\u7ecf\u5c1d\u8bd5\u8fc7OpenFaaS\uff0c\u4e5f\u8bb8\u4f60\u53ea\u662f\u56e0\u4e3a\u6ca1\u6709\u770b\u5230\u4e00\u4e2a\u7528\u4f8b\u800c\u5c06\u5176\u6487\u5f00\uff0c\u6216\u8005\u89c9\u5f97\u4f60 &#8220;\u5fc5\u987b\u4e3a\u65e0\u670d\u52a1\u5668\u505a\u597d\u51c6\u5907&#8221;\uff1f\u5766\u7387\u5730\u8bf4\uff0c\u8fd9\u662f\u6211\u81ea\u5df1\u7684\u9519\uff0c\u56e0\u4e3a\u6211\u5728\u4fe1\u606f\u4f20\u9012\u65b9\u9762\u505a\u5f97\u4e0d\u597d\u3002\u8ba9\u6211\u4eec\u8bd5\u7740\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenFaaS\u662f\u4e00\u4e2a\u8fd0\u884cHTTP\u670d\u52a1\u5668\u7684\u5e73\u53f0\uff0c\u88ab\u6253\u5305\u5728\u5bb9\u5668\u4e2d\uff0c\u6709\u4e00\u4e2a\u7ba1\u7406API\u3002\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u7528\u5b83\u6765\u8fd0\u884c\u6211\u4eec\u7684\u4ee3\u7801\uff0c\u800c\u6211\u4eec\u4eca\u5929\u8981\u63a2\u8ba8\u7684OpenFaaS\u7684\u7248\u672c\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u6709\u72b6\u6001\u7684\u670d\u52a1\uff0c\u6bd4\u5982Postgresql\u3001MongoDB\u3001Redis\u6216\u8005Grafana\u4eea\u8868\u76d8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u67d0\u4eba\u8fd0\u884cHTTP\u670d\u52a1\u5668\u7684\u60f3\u6cd5\u662f\u5982\u6b64\u5f15\u4eba\u6ce8\u76ee\uff0c\u4ee5\u81f3\u4e8e\u8c37\u6b4c\u4e91\u57282018\u5e74\u53d1\u5e03\u4e86 &#8220;Cloud Run&#8221;\uff0c\u5982\u679c\u4f60\u772f\u8d77\u773c\u775b\uff0c\u5b83\u4eec\u770b\u8d77\u6765\u975e\u5e38\u76f8\u4f3c\u3002\u5b83\u662f\u4e00\u79cd\u4ece\u5bb9\u5668\u955c\u50cf\u4e2d\u8fd0\u884cHTTP\u670d\u52a1\u5668\u7684\u65b9\u6cd5\uff0c\u5176\u4ed6\u7684\u5c31\u4e0d\u591a\u8bf4\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenFaaS\u5806\u6808\u6709\u51e0\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u2014\u4e00\u4e2a\u5e26\u6709REST\u7ba1\u7406API\u548c\u5185\u7f6ePrometheus\u76d1\u63a7\u7684\u7f51\u5173\u548c\u4e00\u4e2a\u56f4\u7ed5NATS\u5efa\u7acb\u7684\u961f\u5217\u7cfb\u7edf\uff0c\u7528\u4e8e\u5728\u540e\u53f0\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"302\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-7-1024x302.png\" alt=\"\" class=\"wp-image-408\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7-1024x302.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7-300x88.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7-768x226.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7-535x158.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7-900x265.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7-500x147.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-7.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">OpenFaaS\u7684\u6982\u5ff5\u6027\u6982\u8ff0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a21\u677f\u7cfb\u7edf\u5728\u7528\u5bb9\u5668\u6784\u5efaHTTP\u670d\u52a1\u7684\u8fc7\u7a0b\u4e2d\u627f\u62c5\u4e86\u5927\u91cf\u7684\u5de5\u4f5c\u2014Docker\u6587\u4ef6\u4e0eHTTP\u6846\u67b6\u4e00\u8d77\u88ab\u62bd\u8c61\u51fa\u6765\u3002\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u5904\u7406\u7a0b\u5e8f\uff0c\u5728\u90a3\u91cc\u4f60\u53ef\u4ee5\u586b\u5199\u4f60\u7684\u4ee3\u7801\uff0c\u5e76\u6709\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u5c06\u5176\u6253\u5305\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u529f\u80fd\u5546\u5e97\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5feb\u901f\u6d4f\u89c8\u9884\u5236\u56fe\u50cf\u7684\u65b9\u6cd5\uff0c\u5982\u673a\u5668\u5b66\u4e60\u6a21\u578b\u548c\u7f51\u7edc\u5de5\u5177\uff0c\u5982nmap\u3001curl\u3001hey\u6216nslookup\u3002<br>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u8bbf\u95ee:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>$ faas-cli template store list<br><br>NAME SOURCE DESCRIPTION<br>csharp openfaas Classic C<br>dockerfile openfaas Classic Dockerfile template<br>go openfaas Classic Golang template<br>java8 openfaas Java 8 template<br>java11 openfaas Java 11 template<br>java11-vert-x openfaas Java 11 Vert.x template<br>node14 openfaas HTTP-based Node 14 template<br>node12 openfaas HTTP-based Node 12 template<br>node openfaas Classic NodeJS 8 template<br>php7 openfaas Classic PHP 7 template<br>python openfaas Classic Python 2.7 template<br>python3 openfaas Classic Python 3.6 template<br>python3-dlrs intel Deep Learning Reference Stack v0.4 for ML workloads<br>ruby openfaas Classic Ruby 2.5 template<br>ruby-http openfaas Ruby 2.4 HTTP template<br>python27-flask openfaas Python 2.7 Flask template<br>....<br><br>$ faas-cli template store pull ruby-http<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6216\u8005<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>faas-cli store list<br><br>FUNCTION DESCRIPTION<br>NodeInfo Get info about the machine that you'r...<br>alpine An Alpine Linux shell, set the \"fproc...<br>env Print the environment variables prese...<br>sleep Simulate a 2s duration or pass an X-S...<br>shasum Generate a shasum for the given input<br>Figlet Generate ASCII logos with the figlet CLI<br>curl Use curl for network diagnostics, pas...<br>SentimentAnalysis Python function provides a rating on ...<br>hey HTTP load generator, ApacheBench (ab)...<br>nslookup Query the nameserver for the IP addre...<br>SSL\/TLS cert info Returns SSL\/TLS certificate informati...<br>Colorization Turn black and white photos to color ...<br>Inception This is a forked version of the work ...<br>Have I Been Pwned The Have I Been Pwned function lets y...<br>Face Detection with Pigo Detect faces in images using the Pigo...<br>Tesseract OCR This function brings OCR - Optical Ch...<br>...<br><br>$ faas-cli store deploy hey<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u73b0\u5728\uff0c\u56e0\u4e3aKubernetes\u5bf9\u6211\u4eec\u6765\u8bf4\u592a\u5927\u4e86\uff0c\u6211\u4eec\u5c06\u8fd0\u884c\u4e00\u4e2a\u4e0d\u540c\u7248\u672c\u7684OpenFaaS\uff0c\u53eb\u505a &#8220;faasd&#8221;\u3002\u5168\u5c3a\u5bf8\u7684OpenFaaS\u4ee5Kubernetes\u4e3a\u76ee\u6807\uff0cKubernetes\u901a\u8fc7\u8bb8\u591a\u5c42\u7684\u4e2d\u4ecb\uff0c\u6700\u7ec8\u5728\u4e00\u4e2a\u5bb9\u5668\u4e2d\u8fd0\u884c\u4f60\u7684HTTP\u670d\u52a1\u5668\uff0c\u800cfaasd\u76f4\u63a5\u8fd0\u884c\u4f60\u7684\u5bb9\u5668\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-8-1024x574.png\" alt=\"\" class=\"wp-image-409\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8-1024x574.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8-300x168.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8-768x430.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8-535x300.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8-900x504.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8-500x280.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-8.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6495\u6389\u6240\u6709\u8fd9\u4e9b\u5c42\u7684\u7ed3\u679c\u662f\uff0c\u5b83\u4ecd\u7136\u662fAPI\u9a71\u52a8\u7684\uff0c\u662f\u975e\u5e38\u5feb\u901f\u7684\uff0c\u5b66\u4e60\u66f2\u7ebf\u5927\u5e45\u4e0b\u964d\u3002\u5b83\u4e0d\u518d\u662f\u9ad8\u53ef\u7528\u7684\u3001\u96c6\u7fa4\u7684\u6216\u591a\u8282\u70b9\u7684\uff0c\u6240\u4ee5\u628a\u5b83\u60f3\u5f97\u66f4\u50cf\u4e00\u4e2a\u8bbe\u5907\u3002\u4f60\u5728\u53a8\u623f\u91cc\u67093\u4e2a\u70e4\u9762\u5305\u673a\u6216\u70e4\u7bb1\uff0c\u4ee5\u5907\u5176\u4e2d\u4e00\u4e2a\u53d1\u751f\u6545\u969c\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">aasd\u4e0eKubernetes\u7684\u8ddd\u79bb\u4e5f\u4f7f\u5f97\u5b83\u975e\u5e38\u7a33\u5b9a\u2014\u6ca1\u6709\u4ec0\u4e48\u53ef\u4ee5\u51fa\u9519\u7684\uff0c\u4e5f\u5f88\u5c11\u6709\u7834\u574f\u6027\u7684\u53d8\u5316\u6216 &#8220;\u5f03\u7528 &#8220;\u9700\u8981\u62c5\u5fc3\u7684\u3002\u5347\u7ea7faasd\u8bbe\u5907\u53ea\u662f\u66f4\u6362 &#8220;faasd &#8220;\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u4e5f\u8bb8\u8fd8\u6709containerd\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-9-1024x575.png\" alt=\"\" class=\"wp-image-410\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9-1024x575.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9-300x168.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9-768x431.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9-535x300.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9-900x505.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9-500x281.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-9.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u4e00\u4e9b\u6700\u7ec8\u7528\u6237\u5c06faasd\u800c\u4e0d\u662fOpenFaaS\u90e8\u7f72\u5728Kubernetes\u4e0a\u7528\u4e8e\u751f\u4ea7\u3002faasd\u662f\u4e00\u79cd\u4e3a\u5185\u90e8\u5185\u7f51\u3001\u5ba2\u6237\u9879\u76ee\u6216\u8fb9\u7f18\u8bbe\u5907\u90e8\u7f72\u4ee3\u7801\u7684\u597d\u65b9\u6cd5\u3002\u628a\u5b83\u6253\u5305\u6210\u4e00\u4e2a\u865a\u62df\u673a\uff0c\u88c5\u5165\u4f60\u7684\u529f\u80fd\uff0c\u4f60\u5c31\u51e0\u4e4e\u53ef\u4ee5\u5fd8\u8bb0\u5b83\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u53bb\u5e74\u5728Equinix Metal\u7684Proximity\u6d3b\u52a8\uff08<a href=\"https:\/\/metal.equinix.com\/resources\/events\/proximity\/\uff09\u4e0a\u53d1\u8868\u4e86\u5173\u4e8e\">https:\/\/metal.equinix.com\/resources\/events\/proximity\/\uff09\u4e0a\u53d1\u8868\u4e86\u5173\u4e8e<\/a> &#8220;\u66f4\u63a5\u8fd1\u91d1\u5c5e &#8220;\u7684\u6f14\u8bb2\uff08\u5728\u5806\u6808\u4e2d\u66f4\u4f4e\u7684\u4f4d\u7f6e\uff0c\u8fdc\u79bbKubernetes\uff09\u3002\u8fd9\u6b21\u6f14\u8bb2\u662f\u56f4\u7ed5\u7740faasd\u548c\u6211\u4eec\u53ef\u4ee5\u505a\u7684\u4e8b\u60c5\u6765\u8fdb\u884c\u7684\uff0c\u800c\u8fd9\u4e9b\u4e8b\u60c5\u5728K8s\u4e2d\u662f\u4e0d\u53ef\u80fd\u5b9e\u73b0\u7684\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u80fd\u591f\u4f7f\u51b7\u542f\u52a8\u8fbe\u5230\u4e9a\u79d2\u7ea7\uff0c\u5e76\u5728\u5355\u4e2a\u8282\u70b9\u4e0a\u5b89\u6392100\u500d\u7684\u5bb9\u5668\uff0c\u4f7f\u5176\u66f4\u5177\u6210\u672c\u6548\u76ca\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u64e6\u53bb\u7845\u7684\u7070\u5c18<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u67091GB\u5185\u5b58\u7684Raspberry Pi 3\u7684\u529f\u80fd\uff0c\u6216\u8005Raspberry Pi 4\uff0c\u5b83\u901a\u5e38\u81f3\u5c11\u67092GB\u7684\u5185\u5b58\u53ef\u7528\u3002Raspberry Pi Zero W 2\u4e5f\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u53ea\u6709512MB\u7684\u5185\u5b58\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u63a8\u8350\u4f7f\u7528 &#8220;\u7ecf\u5178 &#8220;\u7684Raspberry Pi 32\u4f4d\u64cd\u4f5c\u7cfb\u7edf\u7cbe\u7b80\u7248\uff08Buster\uff09\u6216Ubuntu Server 20.04\u3002Bullseye\u786e\u5b9e\u53ef\u4ee5\u5de5\u4f5c\uff0c\u4f46\u662f\u64cd\u4f5c\u7cfb\u7edf\u6709\u4e00\u4e9b\u53d8\u5316\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Buster\u6765\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528Linux\u4e3b\u673a\u4e0a\u7684dd\uff0c\u6216\u8005\u50cfetcher.io\u8fd9\u6837\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08<a href=\"https:\/\/etcher.io\/\uff09\uff0c\u5c06\u955c\u50cf\u95ea\u5230SD\u5361\u4e0a\u3002\u6211\u6709\u4e00\u4e2aLinux\u4e3b\u673a\uff0c\u6211\u7528\u5b83\u6765\u95ea\u73b0SD\u5361\uff0c\u56e0\u4e3a\u6211\u7ecf\u5e38\u8fd9\u4e48\u505a\u3002\">https:\/\/etcher.io\/\uff09\uff0c\u5c06\u955c\u50cf\u95ea\u5230SD\u5361\u4e0a\u3002\u6211\u6709\u4e00\u4e2aLinux\u4e3b\u673a\uff0c\u6211\u7528\u5b83\u6765\u95ea\u73b0SD\u5361\uff0c\u56e0\u4e3a\u6211\u7ecf\u5e38\u8fd9\u4e48\u505a\u3002<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u73b0\u5728\u6211\u4eec\u51e0\u4e4e\u5df2\u7ecf\u51c6\u5907\u597d\u542f\u52a8\u548c\u83b7\u5f97\u65e0\u5934\u8bbf\u95ee\uff0c\u6ca1\u6709\u952e\u76d8\u6216\u663e\u793a\u5668\u3002\u5bf9\u4e8eRaspberry Pi\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f60\u5fc5\u987b\u5728\u542f\u52a8\u5206\u533a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3assh\u7684\u6587\u4ef6\u3002\u5bf9\u4e8eUbuntu\uff0cSSH\u5df2\u7ecf\u88ab\u542f\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7ssh\u8fde\u63a5\u5230\u4f60\u7684Raspberry Pi ssh pi@raspberrypi.local \u4e3aRaspberry Pi\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5982\u679c\u4f60\u4f7f\u7528Ubuntu\uff0c\u8fd0\u884cnmap -p 22 192.168.0.0\/24\uff0c\u8fd9\u5c06\u663e\u793a\u4f60\u7f51\u7edc\u4e0a\u7684\u4efb\u4f55\u65b0\u4e3b\u673a\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7SSH\u8fde\u63a5\u5230\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u66f4\u6539\u9ed8\u8ba4\u5bc6\u7801\u548c\u4e3b\u673a\u540d\uff0c\u5bf9\u4e8eRaspberry Pi\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f7f\u7528raspi-config<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5faasd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ece\u8be5SSH\u4f1a\u8bdd\u4e2d\u5b89\u88c5faasd\u662f\u76f8\u5bf9\u7b80\u5355\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>git clone https:\/\/github.com\/openfaas\/faasd --depth=1cd faasd<br><br>.\/hack\/install.sh<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5b89\u88c5\u7684\u6700\u540e\uff0c\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u5982\u4f55\u5bfb\u627e\u5bc6\u7801\u7684\u547d\u4ee4\u3002<br>\u73b0\u5728\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u5c0f\u4e91\u662fAPI\u9a71\u52a8\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u5e94\u8be5\u518d\u76f4\u63a5\u5728\u5b83\u4e0a\u9762\u8fd0\u884c\u4efb\u4f55\u547d\u4ee4\uff0c\u800c\u662f\u4ece\u6211\u4eec\u7684\u7b14\u8bb0\u672c\u4e0a\u628a\u5b83\u4f5c\u4e3a\u4e00\u4e2a\u670d\u52a1\u5668\u4f7f\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5230\u4f60\u7684\u5de5\u4f5c\u7ad9\u53bb\uff0c\u5b89\u88c5OpenFaaS CLI\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>curl -SLs https:\/\/cli.openfaas.com | sudo sh<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u767b\u5f55\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>export OPENFAAS_URL=http:\/\/IP:8080<br>faas-cli login --password-stdin<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u952e\u5165\u524d\u4e00\u4e2a\u4f1a\u8bdd\u7684\u5bc6\u7801\uff0c\u7136\u540e\u70b9\u51fb\u56de\u8f66\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8bd5\u7528\u5546\u5e97\u91cc\u7684\u4e00\u4e2a\u529f\u80fd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u73b0\u5728\u4f60\u53ef\u4ee5\u4ece\u51fd\u6570\u5e93\u4e2d\u90e8\u7f72\u4e00\u4e2a\u6837\u672c\u51fd\u6570\u3002\u8fd9\u662f\u4e00\u4e2a\u963b\u585e\u6027\u547d\u4ee4\uff0c\u53ef\u80fd\u9700\u8981\u51e0\u79d2\u949f\u624d\u80fd\u5b8c\u6210<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>faas-cli store deploy nodeinfo<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u5217\u51fa\u4f60\u7684\u529f\u80fd\uff0c\u63cf\u8ff0\u5b83\u5e76\u8c03\u7528\u5b83\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>$ faas-cli list -v<br>Function Image Invocations Replicas<br>nodeinfo ghcr.io\/openfaas\/nodeinfo:latest 0 1<br><br>$ faas-cli describe nodeinfo<br><br>Name: nodeinfo<br>Status: Ready<br>Replicas: 1<br>Available replicas: 1<br>Invocations: 0<br>Image:<br>Function process: node index.js<br>URL: http:\/\/127.0.0.1:8080\/function\/nodeinfo<br>Async URL: http:\/\/127.0.0.1:8080\/async-function\/nodeinfo<br><br>$ curl http:\/\/127.0.0.1:8080\/function\/nodeinfo<br>Hostname: localhost<br><br>Arch: arm<br>CPUs: 4<br>Total mem: 476MB<br>Platform: linux<br>Uptime: 5319.62<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4efb\u4f55\u51fd\u6570\u90fd\u53ef\u4ee5\u88ab\u5f02\u6b65\u8c03\u7528\uff0c\u8fd9\u5bf9\u4e8e\u957f\u671f\u8fd0\u884c\u7684\u51fd\u6570\u2014\u8ba1\u5212\u4efb\u52a1\u548cwebhook\u63a5\u6536\u5668\u5f88\u91cd\u8981\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>$ curl -d \"\" -i http:\/\/127.0.0.1:8080\/async-function\/nodeinfo<br>HTTP\/1.1 202 Accepted<br>X-Call-Id: 9c766581-965a-4a11-9b6d-9c668cfcc388<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u4f1a\u6536\u5230\u4e00\u4e2aX-Call-Id\uff0c\u53ef\u4ee5\u7528\u6765\u5173\u8054\u8bf7\u6c42\u548c\u54cd\u5e94\u3002\u4e00\u4e2aX-Callback-Url\u662f\u53ef\u9009\u7684\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5c06\u54cd\u5e94\u53d1\u5e03\u5230HTTP bin\uff0c\u6216\u5176\u4ed6\u4e00\u4e9b\u4f60\u62e5\u6709\u7684\u529f\u80fd\uff0c\u4ee5\u521b\u5efa\u4e00\u4e2a\u94fe\u3002<br>\u6bd4\u5982\u8bf4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><br>$ nc -l 8888<br><br>$ curl -d \"\" -H \"X-Callback-Url: http:\/\/192.168.0.86:8888\/\" \\<br>-i http:\/\/127.0.0.1:8080\/async-function\/nodeinfo<br><br>HTTP\/1.1 202 Accepted<br>X-Call-Id: 926c4181-6b8e-4a43-ac9e-ec39807b0695<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u800c\u5728netcat\u4e2d\uff0c\u6211\u4eec\u770b\u5230\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>POST \/ HTTP\/1.1<br>Host: 192.168.0.86:8888<br>User-Agent: Go-http-client\/1.1<br>Content-Length: 88<br>Content-Type: text\/plain; charset=utf-8<br>Date: Wed, 23 Mar 2022 10:44:13 GMT<br>Etag: W\/\"58-zeIRnHjAybZGzdgnZVWGeAGymAI\"<br>Keep-Alive: timeout=5<br>X-Call-Id: 926c4181-6b8e-4a43-ac9e-ec39807b0695<br>X-Duration-Seconds: 0.086076<br>X-Function-Name: nodeinfo<br>X-Function-Status: 200<br>X-Start-Time: 1648032253651730445<br>Accept-Encoding: gzip<br>Connection: close<br><br>Hostname: localhost<br><br>Arch: arm<br>CPUs: 4<br>Total mem: 476MB<br>Platform: linux<br>Uptime: 5577.28<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5efa\u7acb\u4f60\u81ea\u5df1\u7684\u529f\u80fd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u90e8\u7f72\u4e00\u4e2a\u9884\u5b9a\u4e49\u7684HTTP\u670d\u52a1\u5668\uff0c\u57288080\u7aef\u53e3\u76d1\u542c\u8bf7\u6c42\uff0c\u4f7f\u7528\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684Docker\u6587\u4ef6\uff0c\u6216\u8005\u4ece\u5546\u5e97\u91cc\u8d2d\u4e70\u4e00\u4e2aopenfaas\u6a21\u677f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-10-1024x562.png\" alt=\"\" class=\"wp-image-412\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10-1024x562.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10-300x165.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10-768x421.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10-535x293.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10-900x494.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10-500x274.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-10.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5efa\u4e00\u4e2a\u540d\u4e3a &#8220;mystars &#8220;\u7684\u51fd\u6570 &#8211; \u6211\u4eec\u5c06\u7528\u5b83\u6765\u63a5\u6536\u6765\u81eaGitHub\u7684webhooks\uff0c\u5f53\u6709\u4eba\u7ed9\u6211\u4eec\u7684\u67d0\u4e2a\u4ed3\u5e93\u52a0\u661f\u65f6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>export OPENFAAS_PREFIX=\"ghcr.io\/alexellis\"<br>faas-cli new --lang node16 mystars<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>mystars.yml<br>mystars\/handler.js<br>mystars\/handler.json<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mystars.yml\u5b9a\u4e49\u4e86\u5982\u4f55\u6784\u5efa\u548c\u90e8\u7f72\u8be5\u529f\u80fd\u3002<br>mystars\/handler.js\u5b9a\u4e49\u4e86\u5bf9HTTP\u8bf7\u6c42\u7684\u54cd\u5e94\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>'use strict'module.exports = async (event, context) => {<br>const result = {<br>'body': JSON.stringify(event.body),<br>'content-type': event.headers[\"content-type\"]<br>}<br><br>return context<br>.status(200)<br>.succeed(result)<br>}<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e0eAWS Lambda\u975e\u5e38\u76f8\u4f3c\uff0c\u4f60\u53ef\u4ee5\u5728\u7535\u5b50\u4e66\u300aServerles For Everyone Else\u300b\u4e2d\u627e\u5230\u5b8c\u6574\u7684\u6587\u6863\uff0c\u4e5f\u53ef\u4ee5\u5728docs\u4e2d\u627e\u5230\u66f4\u6709\u9650\u7684\u6982\u8ff0\u3002Node.js\u6a21\u677f\uff08of-watchdog\u6a21\u677f\uff09\uff08<a href=\"https:\/\/docs.openfaas.com\/cli\/templates\/#nodejs-templates-of-watchdog-template\uff09\">https:\/\/docs.openfaas.com\/cli\/templates\/#nodejs-templates-of-watchdog-template\uff09<\/a><br>\u7136\u540e\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884ccd mystars\u548c\u8fd0\u884cnpm install &#8211;save\u6765\u5b89\u88c5\u4f60\u53ef\u80fd\u9700\u8981\u7684\u4efb\u4f55NPM\u6a21\u5757\uff0c\u5982octokit\uff08<a href=\"https:\/\/github.com\/octokit\/rest.js\/\uff09\u3002\">https:\/\/github.com\/octokit\/rest.js\/\uff09\u3002<\/a><br>\u8981\u5728\u4f60\u7684Raspberry Pi\u4e0a\u5c1d\u8bd5\u8fd9\u4e2a\u529f\u80fd\uff0c\u8bf7\u5728\u4f60\u81ea\u5df1\u7684\u4e3b\u673a\u4e0a\u4f7f\u7528Docker\u6784\u5efa\u5b83\uff0c\u5c06\u955c\u50cf\u53d1\u5e03\u5230\u4f60\u7684GHCR\u8d26\u6237\uff0c\u7136\u540e\u8fdb\u884c\u90e8\u7f72\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>faas-cli publish -f mystars.yml \\<br>--platforms linux\/amd64,linux\/arm64,linux\/arm\/7<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u60f3\u66f4\u5feb\u5730\u6784\u5efa\uff0c\u4f60\u53ef\u4ee5\u5220\u9664\u5176\u4ed6\u5e73\u53f0\uff0c\u4f46\u4e0a\u8ff0\u4ea4\u53c9\u7f16\u8bd1\u4f60\u7684\u51fd\u6570\uff0c\u4ee5\u8fd0\u884c\u572832\u4f4dARM\u64cd\u4f5c\u7cfb\u7edf\u300164\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Ubuntu\uff09\u548cPC\uff08\u5982\u4f60\u7684\u5de5\u4f5c\u7ad9\/\u7b14\u8bb0\u672c\u7535\u8111\u6216\u666e\u901a\u4e91\u670d\u52a1\u5668\uff09\u3002<br>\u53d1\u5e03\u540e\uff0c\u7528\u4ee5\u4e0b\u65b9\u5f0f\u90e8\u7f72\u8be5\u51fd\u6570\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>faas-cli deploy -f mystars.yml<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u540e\uff0c\u4f60\u53ef\u4ee5\u540c\u6b65\u8c03\u7528\u4f60\u7684\u51fd\u6570\uff0c\u4e5f\u53ef\u4ee5\u5f02\u6b65\u8c03\u7528\uff0c\u5c31\u50cf\u6211\u4eec\u4e4b\u524d\u5bf9nodeinfo\u51fd\u6570\u505a\u7684\u90a3\u6837\u3002<br>\u60f3\u8981\u66f4\u591a\u7684\u4ee3\u7801\u4f8b\u5b50\u5417\uff1f<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5173\u4e8eJavaScript\u548cNode.js\uff0c\u8bf7\u770b\u3002Serverless For Everyone Else (<a href=\"https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else\">https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else<\/a>)<\/li><li>\u5bf9\u4e8eGolang\uff08Go\uff09\uff0c\u89c1\u3002Everyday Go (<a href=\"https:\/\/store.openfaas.com\/l\/everyday-golang\">https:\/\/store.openfaas.com\/l\/everyday-golang<\/a>)\uff0c\u6700\u540e\u4e00\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u7528Go\u7f16\u5199\u7684\u51fd\u6570\u3002<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">OpenFaaS\u7f51\u7ad9\uff08<a href=\"https:\/\/openfaas.com\/blog\/\uff09\u4e0a\u4e5f\u6709\u5f88\u591a\u5173\u4e8e\u4f7f\u7528Python\u3001Java\u3001C#\u3001\u73b0\u6709Dockerfiles\u7b49\u7684\u535a\u6587\u3002\">https:\/\/openfaas.com\/blog\/\uff09\u4e0a\u4e5f\u6709\u5f88\u591a\u5173\u4e8e\u4f7f\u7528Python\u3001Java\u3001C#\u3001\u73b0\u6709Dockerfiles\u7b49\u7684\u535a\u6587\u3002<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u7528GitHub Actions\u7684CI\/CD<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u4e00\u4e2a\u8896\u73cd\u4e91\u6765\u8bf4\uff0c\u6211\u4eec\u5e0c\u671b\u5c3d\u53ef\u80fd\u591a\u5730\u5b9e\u73b0\u81ea\u52a8\u5316\uff0c\u8fd9\u5305\u62ec\u6784\u5efa\u6211\u4eec\u7684\u955c\u50cf\u548c\u90e8\u7f72\u5b83\u4eec\u3002\u6211\u6700\u559c\u6b22\u7684\u89e3\u51b3\u65b9\u6848\u662fGitHub Actions\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4f60\u6700\u719f\u6089\u7684\u7c7b\u4f3c\u6280\u672f\u3002<br>GitHub Actions\uff08<a href=\"https:\/\/github.com\/features\/actions\uff09\uff0c\u52a0\u4e0aGitHub\u7684\u5bb9\u5668\u6ce8\u518c\u4e2d\u5fc3ghcr.io\uff08https:\/\/ghcr.io\/\uff09\uff0c\u4e3a\u6211\u4eec\u7684\u529f\u80fd\u63d0\u4f9b\u4e86\u5b8c\u7f8e\u7684\u7ec4\u5408\u3002\u4efb\u4f55\u516c\u5171\u4ed3\u5e93\u548c\u56fe\u50cf\u90fd\u53ef\u4ee5\u81ea\u7531\u6784\u5efa\u3001\u5b58\u50a8\u548c\u90e8\u7f72\u3002\">https:\/\/github.com\/features\/actions\uff09\uff0c\u52a0\u4e0aGitHub\u7684\u5bb9\u5668\u6ce8\u518c\u4e2d\u5fc3ghcr.io\uff08https:\/\/ghcr.io\/\uff09\uff0c\u4e3a\u6211\u4eec\u7684\u529f\u80fd\u63d0\u4f9b\u4e86\u5b8c\u7f8e\u7684\u7ec4\u5408\u3002\u4efb\u4f55\u516c\u5171\u4ed3\u5e93\u548c\u56fe\u50cf\u90fd\u53ef\u4ee5\u81ea\u7531\u6784\u5efa\u3001\u5b58\u50a8\u548c\u90e8\u7f72\u3002<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4e00\u4e2a\u7b80\u5355\u7684\u7ba1\u9053\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5b89\u88c5faas-cli\uff08<a href=\"https:\/\/github.com\/openfaas\/faas-cli\uff09\uff0c\u62c9\u4e0b\u6211\u4eec\u9700\u8981\u7684\u6a21\u677f\u5e76\u53d1\u5e03\u6211\u4eec\u7684\u5bb9\u5668\u955c\u50cf\u3002\">https:\/\/github.com\/openfaas\/faas-cli\uff09\uff0c\u62c9\u4e0b\u6211\u4eec\u9700\u8981\u7684\u6a21\u677f\u5e76\u53d1\u5e03\u6211\u4eec\u7684\u5bb9\u5668\u955c\u50cf\u3002<\/a><br>\u6211\u628a\u6784\u5efa\u548c\u90e8\u7f72\u5206\u5f00\u4e86\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u7ed3\u5408\u8d77\u6765\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0e\u5176\u4f7f\u7528mystars.yml\uff0c\u4e0d\u5982\u5c06\u8be5\u6587\u4ef6\u91cd\u547d\u540d\u4e3astack.yml\uff0c\u8fd9\u6837\u6211\u4eec\u5728\u6784\u5efa\u4e2d\u5c31\u5c11\u4e86\u4e00\u4e2a\u9700\u8981\u914d\u7f6e\u7684\u4e1c\u897f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>name: buildon:push:branches:- '*'pull_request:branches:- '*'permissions:actions: readchecks: writecontents: readpackages: writejobs:build:runs-on: ubuntu-lateststeps:- uses: actions\/checkout@masterwith:fetch-depth: 1- name: Get faas-clirun: curl -sLSf https:\/\/cli.openfaas.com | sudo sh- name: Set up QEMUuses: docker\/setup-qemu-action@v1- name: Set up Docker Buildxuses: docker\/setup-buildx-action@v1- name: Get TAGid: get_tagrun: echo ::set-output name=TAG::latest-dev- name: Get Repo Ownerid: get_repo_ownerrun: ><br>echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} |<br>tr '[:upper:]' '[:lower:]') - name: Login to Container Registryuses: docker\/login-action@v1with:username: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}registry: ghcr.io- name: Publish functionsrun: ><br>OWNER=\"${{ steps.get_repo_owner.outputs.repo_owner }}\"<br>TAG=\"latest\"<br>faas-cli publish<br>--extra-tag ${{ github.sha }}<br>--platforms linux\/arm\/v7<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u66ff\u6362\u5806\u6808.yml\u4e2d\u4f60\u7684\u5bb9\u5668\u955c\u50cf\u7684\u9ed8\u8ba4\u6807\u7b7e &#8220;\u6700\u65b0&#8221;\uff0c\u5e76\u5c06\u5b57\u6bb5\uff1aimage: <a href=\"http:\/\/ghcr.io\/alexellis\/mystars:latest\u6539\u4e3aimage\">ghcr.io\/alexellis\/mystars:latest\u6539\u4e3aimage<\/a>: <a href=\"http:\/\/ghcr.io\/alexellis\/mystars:${TAG:-latest}\u3002\">ghcr.io\/alexellis\/mystars:${TAG:-latest}\u3002<\/a><br>\u63a5\u4e0b\u6765\u7684\u90e8\u5206\u662f\u90e8\u7f72\u8be5\u529f\u80fd\u3002\u6bcf\u5f53\u6211\u5728GitHub repo\u4e2d\u521b\u5efa\u4e00\u4e2a\u7248\u672c\u65f6\uff0c\u5b83\u5c31\u4f1a\u8fd0\u884c\uff0c\u5e76\u5c06\u4f7f\u7528\u63a8\u9001\u5230GHCR\u7684SHA\u90e8\u7f72\u6700\u65b0\u7684\u955c\u50cf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>name: publishon:push:tags:- '*'permissions:actions: readchecks: writecontents: readpackages: readjobs:publish:runs-on: ubuntu-lateststeps:- uses: actions\/checkout@masterwith:fetch-depth: 1- name: Get faas-clirun: curl -sLSf https:\/\/cli.openfaas.com | sudo sh- name: Pull template definitionsrun: faas-cli template pull- name: Get TAGid: get_tagrun: echo ::set-output name=TAG::latest-dev- name: Get Repo Ownerid: get_repo_ownerrun: ><br>echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} |<br>tr '[:upper:]' '[:lower:]') - name: Login to Container Registryuses: docker\/login-action@v1with:username: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}registry: ghcr.io- name: Loginrun: ><br>echo ${{secrets.OPENFAAS_PASSWORD}} |<br>faas-cli login --gateway ${{secrets.OPENFAAS_URL}} --password-stdin - name: Deployrun: ><br>OWNER=\"${{ steps.get_repo_owner.outputs.repo_owner }}\"<br>TAG=\"${{ github.sha }}\"<br>faas-cli deploy --gateway ${{secrets.OPENFAAS_URL}}<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The above examples are from <a href=\"https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else\">Serverless For Everyone Else<\/a>, you can see the example repo here: <a href=\"https:\/\/github.com\/alexellis\/faasd-example\">alexellis\/faasd-example<\/a><br>\u6700\u540e\u4e00\u90e8\u5206&#8211;\u90e8\u7f72\u53ef\u4ee5\u901a\u8fc7inlets HTTPS\u96a7\u9053\uff08<a href=\"https:\/\/inlets.dev\/\uff09\u8fdb\u884c\u3002\">https:\/\/inlets.dev\/\uff09\u8fdb\u884c\u3002<\/a><br>\u4f60\u7684inlets URL\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u540d\u4e3aOPENFAAS_URL\u7684\u79d8\u5bc6\u4ee5\u53caOPENFAAS_PASSWORD\u4e2d\u7684OpenFaaS API\u7684\u5bc6\u7801\u8fdb\u884c\u914d\u7f6e\u3002<br>\u5173\u4e8e\u5165\u53e3\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5f53\u4f60\u7684ISP\u4e0d\u7ed9\u4f60\u4e00\u4e2a\u9759\u6001IP\u65f6 (<a href=\"https:\/\/inlets.dev\/blog\/2021\/04\/13\/your-isp-wont-give-you-a-static-ip.html\">https:\/\/inlets.dev\/blog\/2021\/04\/13\/your-isp-wont-give-you-a-static-ip.html<\/a>)<\/li><li>\u81ea\u52a8\u5316\u7684HTTP\u96a7\u9053\u670d\u52a1\u5668 (<a href=\"https:\/\/docs.inlets.dev\/tutorial\/automated-http-server\/\">https:\/\/docs.inlets.dev\/tutorial\/automated-http-server\/<\/a>)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u4f8b\u5b50\u6765\u81eaServerless For Everyone Else (<a href=\"https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else\">https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else<\/a>)\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u770b\u5230\u4f8b\u5b50repo\uff1aalexellis\/faasd-example (<a href=\"https:\/\/github.com\/alexellis\/faasd-example\">https:\/\/github.com\/alexellis\/faasd-example<\/a>)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e6\u53d1\u4f60\u7684\u529f\u80fd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u8bbe\u7f6e\u4e86\u4e00\u4e2ainlets\u96a7\u9053\uff0c\u90a3\u4e48\u4f60\u5c31\u4f1a\u6709\u4e00\u4e2a\u7528\u4e8eOpenFaaS API\u7684HTTPS URL\uff0c\u5e76\u6709\u53ef\u80fd\u5728\u6b64\u57fa\u7840\u4e0a\u4e3a\u4f60\u7684\u529f\u80fd\u8bbe\u7f6e\u4e00\u4e9b\u81ea\u5b9a\u4e49\u57df\u540d\u3002<br>\u4f8b\u5982\uff0c\u5728\u6211\u7684Treasure Trove\u529f\u80fd\u4e2d\uff0cinsiders.alexellis.io\u57df\u540d\u6620\u5c04\u5230OpenFaaS\u7684<a href=\"http:\/\/127.0.0.1:8080\/function\/trove\u3002\">http:\/\/127.0.0.1:8080\/function\/trove\u3002<\/a><br>\u56e0\u6b64\uff0c\u4f60\u53ef\u4ee5\u4e3a\u4f20\u5165\u7684webhooks\u63d0\u4f9b\u4e00\u4e2a\u5916\u90e8\u7cfb\u7edf\u7684URL\u2014\u6765\u81eaStripe\u3001PayPal\u3001GitHub\u3001Strava\u7b49\uff0c\u6216\u8005\u4f60\u53ef\u4ee5\u5206\u4eab\u4f60\u7684\u81ea\u5b9a\u4e49\u57df\u540d\u7684URL\uff0c\u5c31\u50cf\u6211\u5bf9Treasure Trove\u505a\u7684\u90a3\u6837\u3002\u5728\u6211\u4e0a\u9762\u63d0\u5230\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u63d0\u4f9b\u4e86\u4e00\u4e2aURL\u7ed9IFTTT\uff0c\u7528\u6765\u53d1\u9001JSON\u683c\u5f0f\u7684\u63a8\u6587\uff0c\u7136\u540e\u5728\u53d1\u9001\u5230\u4e00\u4e2aDiscord\u9891\u9053\u524d\u8fdb\u884c\u8fc7\u6ee4\u3002<br>\u8fd9\u53d6\u51b3\u4e8e\u4f60\u662f\u5426\u8981\u4f7f\u7528\u540c\u6b65\u6216\u5f02\u6b65\u7684URL\u3002\u5982\u679c\u4f60\u7684\u529f\u80fd\u5f88\u6162\uff0c\u90a3\u4e48\u53d1\u7aef\u7cfb\u7edf\u53ef\u80fd\u4f1a\u91cd\u8bd5\u6d88\u606f\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5f02\u6b65URL\u4f1a\u66f4\u597d\u3002<br>UI\u7684\u670d\u52a1\u7aef\u53e3\u662f8080\uff0c\u4f46\u53ef\u4ee5\u653e\u5728\u4e00\u4e2aTLS\u7ec8\u6b62\u7684\u53cd\u5411\u4ee3\u7406\u540e\u9762\uff0c\u5982Caddy\u6216Nginx\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-11-1024x640.png\" alt=\"\" class=\"wp-image-413\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11-1024x640.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11-300x187.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11-768x480.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11-535x334.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11-900x562.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11-500x312.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-11.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728HTTP\u4e4b\u540e\uff0c\u7b2c\u4e8c\u79cd\u6700\u6d41\u884c\u7684\u8c03\u7528\u51fd\u6570\u7684\u65b9\u5f0f\u662f\u901a\u8fc7\u4e00\u4e2acron\u65f6\u95f4\u8868\u3002<br>\u60f3\u8c61\u4e00\u4e0b\uff0c\u4f60\u6709\u4e00\u4e2a\u51fd\u6570\uff0c\u6bcf5\u5206\u949f\u8fd0\u884c\u4e00\u6b21\uff0c\u5728\u67e5\u8be2\u4e86\u6570\u636e\u5e93\u7684\u5f85\u5b9a\u884c\u540e\uff0c\u53d1\u9001\u5bc6\u7801\u91cd\u7f6e\u90ae\u4ef6\u3002<br>\u5b83\u53ef\u80fd\u770b\u8d77\u6765\u6709\u70b9\u50cf\u8fd9\u6837\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>version: 1.0provider:name: openfaasgateway: http:\/\/127.0.0.1:8080functions:mystars:lang: node16handler: .\/mystarsimage: ghcr.io\/alexellis\/send-password-resets:latesttopic: cron-functionschedule: \"*\/5 * * * *\"secrets:- aws-sqs-secret-key- aws-sqs-secret-token- postgresql-username- postgresql-passwordenvironment:db_name: resets<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u4e86\u4ee3\u7801\u4e4b\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u63d0\u4f9b\u4e00\u4e9b\u79d8\u5bc6\u548c\u73af\u5883\u53d8\u91cf\u6765\u914d\u7f6e\u8fd9\u4e2a\u529f\u80fd\u3002<br>\u4f60\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91faasd\u7684docker-compose.yaml\uff08<a href=\"https:\/\/github.com\/openfaas\/faasd\/blob\/master\/docker-compose.yaml\uff09\u6587\u4ef6\uff0c\u5c06\u6709\u72b6\u6001\u7684\u5bb9\u5668\u6dfb\u52a0\u5230faasd\u4e2d\u3002\u4e0d\u8981\u88ab\u8fd9\u4e2a\u540d\u5b57\u6240\u8ff7\u60d1\uff0cDocker\u548cCompose\u5e76\u6ca1\u6709\u5728faasd\u4e2d\u4f7f\u7528\uff0c\u4f46\u6211\u4eec\u786e\u5b9e\u4f7f\u7528\u4e86\u540c\u6837\u719f\u6089\u7684\u89c4\u8303\u6765\u5b9a\u4e49\u8fd0\u884c\u7684\u5185\u5bb9\u3002\">https:\/\/github.com\/openfaas\/faasd\/blob\/master\/docker-compose.yaml\uff09\u6587\u4ef6\uff0c\u5c06\u6709\u72b6\u6001\u7684\u5bb9\u5668\u6dfb\u52a0\u5230faasd\u4e2d\u3002\u4e0d\u8981\u88ab\u8fd9\u4e2a\u540d\u5b57\u6240\u8ff7\u60d1\uff0cDocker\u548cCompose\u5e76\u6ca1\u6709\u5728faasd\u4e2d\u4f7f\u7528\uff0c\u4f46\u6211\u4eec\u786e\u5b9e\u4f7f\u7528\u4e86\u540c\u6837\u719f\u6089\u7684\u89c4\u8303\u6765\u5b9a\u4e49\u8fd0\u884c\u7684\u5185\u5bb9\u3002<\/a><br>\u4e0b\u9762\u662f\u6211\u4eec\u5982\u4f55\u6dfb\u52a0NATS\uff0c\u7528\u4e00\u4e2abind-mount\u4f7f\u5b83\u7684\u6570\u636e\u5728\u91cd\u542f\u6216\u91cd\u65b0\u542f\u52a8\u4e4b\u95f4\u4fdd\u6301\u4e0d\u53d8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>nats:image: docker.io\/library\/nats-streaming:0.22.0user: \"65534\"command:- \"\/nats-streaming-server\"- \"-m\"- \"8222\"- \"--store=file\"- \"--dir=\/nats\"- \"--cluster_id=faas-cluster\"volumes:- type: bindsource: .\/natstarget: \/nats<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u5728\u300aServerless For Everyone Else\u300b\uff08<a href=\"https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else\uff09\u4e2d\u4e86\u89e3\u5982\u4f55\u914d\u7f6ecron\u65f6\u95f4\u8868\u3001\u6709\u72b6\u6001\u670d\u52a1\u3001\u79d8\u5bc6\u548c\u73af\u5883\u53d8\u91cf\u3002\">https:\/\/store.openfaas.com\/l\/serverless-for-everyone-else\uff09\u4e2d\u4e86\u89e3\u5982\u4f55\u914d\u7f6ecron\u65f6\u95f4\u8868\u3001\u6709\u72b6\u6001\u670d\u52a1\u3001\u79d8\u5bc6\u548c\u73af\u5883\u53d8\u91cf\u3002<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u76d1\u6d4b<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>OpenFaaS\u4ee5Prometheus\u683c\u5f0f\u4e3a\u81ea\u5df1\u7684API\u548c\u4f60\u901a\u8fc7OpenFaaS\u7f51\u5173\u8c03\u7528\u7684\u4efb\u4f55\u51fd\u6570\u53d1\u5c04\u5ea6\u91cf\u3002<\/li><li>\u6d4f\u89c8\u6587\u6863\u4e2d\u7684\u5ea6\u91cf\u6807\u51c6\u3002OpenFaaS\u6307\u6807 (<a href=\"https:\/\/docs.openfaas.com\/architecture\/metrics\/\">https:\/\/docs.openfaas.com\/architecture\/metrics\/<\/a>)<\/li><li>\u6211\u5efa\u7acb\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u4eea\u8868\u76d8\u6b63\u5728\u76d1\u63a7\u51e0\u4e2a\u5173\u952e\u529f\u80fd\u3002<\/li><li>Derek (<a href=\"https:\/\/github.com\/alexellis\/derek\">https:\/\/github.com\/alexellis\/derek<\/a>) &#8211; \u5b89\u88c5\u5728GitHub\u7684\u5404\u4e2a\u7ec4\u7ec7\u4e0a\uff0c\u5fb7\u91cc\u514b\u901a\u8fc7\u51cf\u5c11\u91cd\u590d\u6027\u5de5\u4f5c\u6765\u5e2e\u52a9\u51cf\u5c11\u7ef4\u62a4\u8005\u7684\u75b2\u52b3\u3002<\/li><li>Treasure Trove (<a href=\"https:\/\/insiders.alexellis.io\/\">https:\/\/insiders.alexellis.io\/<\/a>) &#8211; \u6211\u4e3aGitHub\u8d5e\u52a9\u5546\u63d0\u4f9b\u7684\u95e8\u6237 &#8211; \u53ef\u4ee5\u8bbf\u95ee\u6211\u6240\u6709\u7684\u6280\u672f\u5199\u4f5c\uff0c\u65f6\u95f4\u53ef\u4ee5\u8ffd\u6eaf\u52302019\u5e74\uff0c\u5e76\u4e14\u6211\u7684\u7535\u5b50\u4e66\u6709\u6298\u6263<\/li><li>Filter-tweets &#8211; \u7531If This Then That (IFTTT)\u89e6\u53d1 (<a href=\"https:\/\/ifttt.com\/\">https:\/\/ifttt.com\/<\/a>) &#8211; \u8fd9\u4e2a\u51fd\u6570\u8bfb\u53d6JSON\u4e3b\u4f53\uff0c\u8fc7\u6ee4\u6389\u5783\u573e\u4fe1\u606f\u548copenfaas\u8d26\u6237\u6216\u6211\u81ea\u5df1\u7684\u63a8\u6587\uff0c\u7136\u540e\u5c06\u4fe1\u606f\u8f6c\u53d1\u5230\u4e00\u4e2adiscord\u9891\u9053\u3002<\/li><li>Stars &#8211; \u4f5c\u4e3awebhook\u5b89\u88c5\u5728inlets\u3001openfaas GitHub\u7ec4\u7ec7\u548c\u6211\u7684\u4e00\u4e9b\u4e2a\u4eba\u4ed3\u5e93\u4e0a\u3002\u5b83\u63a5\u6536\u6765\u81eaGitHub\u7684JSON\u4e8b\u4ef6\uff0c\u5e76\u5c06\u5176\u7ffb\u8bd1\u6210\u683c\u5f0f\u826f\u597d\u7684Discord\u6d88\u606f\u3002<\/li><li><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"388\" src=\"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/image-12-1024x388.png\" alt=\"\" class=\"wp-image-414\" srcset=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-1024x388.png 1024w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-300x114.png 300w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-768x291.png 768w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-535x202.png 535w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-1536x581.png 1536w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-900x341.png 900w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12-500x189.png 500w, https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/image-12.png 1773w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4ee3\u7801\u4eceGitHub\u6536\u5230\u65e0\u6cd5\u5904\u7406\u7684\u4e8b\u4ef6\u65f6\uff0c\u8fd9\u4e9b\u9519\u8bef\u6216\u975e200\/300\u7684\u4fe1\u606f\u6765\u81ea\u5fb7\u91cc\u514b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002<\/p>\n","protected":false},"author":2,"featured_media":417,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[37],"class_list":["post-406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technews","tag-37","col-md-12"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1 - WITE<\/title>\n<meta name=\"description\" content=\"\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wite.oxoooo.com\/?p=406\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1 - WITE\" \/>\n<meta property=\"og:description\" content=\"\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wite.oxoooo.com\/?p=406\" \/>\n<meta property=\"og:site_name\" content=\"WITE\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-25T05:08:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-29T01:03:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/download-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"474\" \/>\n\t<meta property=\"og:image:height\" content=\"265\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"hgostand\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"hgostand\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406\"},\"author\":{\"name\":\"hgostand\",\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/#\\\/schema\\\/person\\\/00c6377b90c41a8d0789bd572010a7ea\"},\"headline\":\"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1\",\"datePublished\":\"2022-03-25T05:08:12+00:00\",\"dateModified\":\"2022-03-29T01:03:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406\"},\"wordCount\":483,\"publisher\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/#\\\/schema\\\/person\\\/00c6377b90c41a8d0789bd572010a7ea\"},\"image\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wite.oxoooo.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/download-1.jpg\",\"keywords\":[\"\u6811\u8393\u6d3e\"],\"articleSection\":[\"\u65f6\u523b\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406\",\"url\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406\",\"name\":\"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1 - WITE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wite.oxoooo.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/download-1.jpg\",\"datePublished\":\"2022-03-25T05:08:12+00:00\",\"dateModified\":\"2022-03-29T01:03:09+00:00\",\"description\":\"\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#primaryimage\",\"url\":\"https:\\\/\\\/wite.oxoooo.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/download-1.jpg\",\"contentUrl\":\"https:\\\/\\\/wite.oxoooo.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/download-1.jpg\",\"width\":474,\"height\":265},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/?p=406#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/wite.oxoooo.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/#website\",\"url\":\"https:\\\/\\\/wite.oxoooo.com\\\/\",\"name\":\"WITE\",\"description\":\"\u805a\u7126\u6280\u672f\u9886\u57df\u521b\u65b0\",\"publisher\":{\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/#\\\/schema\\\/person\\\/00c6377b90c41a8d0789bd572010a7ea\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wite.oxoooo.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wite.oxoooo.com\\\/#\\\/schema\\\/person\\\/00c6377b90c41a8d0789bd572010a7ea\",\"name\":\"hgostand\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.hgostand.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/\u8d44\u6e90-4@4x.png\",\"url\":\"https:\\\/\\\/www.hgostand.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/\u8d44\u6e90-4@4x.png\",\"contentUrl\":\"https:\\\/\\\/www.hgostand.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/\u8d44\u6e90-4@4x.png\",\"width\":824,\"height\":618,\"caption\":\"hgostand\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.hgostand.com\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/\u8d44\u6e90-4@4x.png\"},\"url\":\"https:\\\/\\\/wite.oxoooo.com\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1 - WITE","description":"\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002","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:\/\/wite.oxoooo.com\/?p=406","og_locale":"zh_CN","og_type":"article","og_title":"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1 - WITE","og_description":"\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002","og_url":"https:\/\/wite.oxoooo.com\/?p=406","og_site_name":"WITE","article_published_time":"2022-03-25T05:08:12+00:00","article_modified_time":"2022-03-29T01:03:09+00:00","og_image":[{"width":474,"height":265,"url":"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/download-1.jpg","type":"image\/jpeg"}],"author":"hgostand","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"hgostand","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wite.oxoooo.com\/?p=406#article","isPartOf":{"@id":"https:\/\/wite.oxoooo.com\/?p=406"},"author":{"name":"hgostand","@id":"https:\/\/wite.oxoooo.com\/#\/schema\/person\/00c6377b90c41a8d0789bd572010a7ea"},"headline":"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1","datePublished":"2022-03-25T05:08:12+00:00","dateModified":"2022-03-29T01:03:09+00:00","mainEntityOfPage":{"@id":"https:\/\/wite.oxoooo.com\/?p=406"},"wordCount":483,"publisher":{"@id":"https:\/\/wite.oxoooo.com\/#\/schema\/person\/00c6377b90c41a8d0789bd572010a7ea"},"image":{"@id":"https:\/\/wite.oxoooo.com\/?p=406#primaryimage"},"thumbnailUrl":"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/download-1.jpg","keywords":["\u6811\u8393\u6d3e"],"articleSection":["\u65f6\u523b"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/wite.oxoooo.com\/?p=406","url":"https:\/\/wite.oxoooo.com\/?p=406","name":"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1 - WITE","isPartOf":{"@id":"https:\/\/wite.oxoooo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wite.oxoooo.com\/?p=406#primaryimage"},"image":{"@id":"https:\/\/wite.oxoooo.com\/?p=406#primaryimage"},"thumbnailUrl":"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/download-1.jpg","datePublished":"2022-03-25T05:08:12+00:00","dateModified":"2022-03-29T01:03:09+00:00","description":"\u6211\u4eec\u4e2d\u7684\u8bb8\u591a\u4eba\u81f3\u5c11\u62e5\u6709\u4e00\u4e2a\u6811\u8393\u6d3e\uff0c\u5982\u679c\u5b83\u4e0d\u4f5c\u4e3a\u4e00\u4e2a\u5a92\u4f53\u64ad\u653e\u5668\u3001\u590d\u53e4\u6e38\u620f\u673a\u3001\u963b\u6b62\u5e7f\u544a\u6216\u62a5\u544a\u5929\u6c14\uff0c\u90a3\u4e48\u5b83\u5f88\u53ef\u80fd\u5728\u79ef\u805a\u7070\u5c18\u3002","breadcrumb":{"@id":"https:\/\/wite.oxoooo.com\/?p=406#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wite.oxoooo.com\/?p=406"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/wite.oxoooo.com\/?p=406#primaryimage","url":"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/download-1.jpg","contentUrl":"https:\/\/wite.oxoooo.com\/wp-content\/uploads\/2022\/03\/download-1.jpg","width":474,"height":265},{"@type":"BreadcrumbList","@id":"https:\/\/wite.oxoooo.com\/?p=406#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/wite.oxoooo.com\/"},{"@type":"ListItem","position":2,"name":"\u7528\u6811\u8393\u6d3e\u642d\u5efa\u53e3\u888b\u4e91\u670d\u52a1"}]},{"@type":"WebSite","@id":"https:\/\/wite.oxoooo.com\/#website","url":"https:\/\/wite.oxoooo.com\/","name":"WITE","description":"\u805a\u7126\u6280\u672f\u9886\u57df\u521b\u65b0","publisher":{"@id":"https:\/\/wite.oxoooo.com\/#\/schema\/person\/00c6377b90c41a8d0789bd572010a7ea"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wite.oxoooo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/wite.oxoooo.com\/#\/schema\/person\/00c6377b90c41a8d0789bd572010a7ea","name":"hgostand","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/\u8d44\u6e90-4@4x.png","url":"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/\u8d44\u6e90-4@4x.png","contentUrl":"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/\u8d44\u6e90-4@4x.png","width":824,"height":618,"caption":"hgostand"},"logo":{"@id":"https:\/\/www.hgostand.com\/wp-content\/uploads\/2022\/03\/\u8d44\u6e90-4@4x.png"},"url":"https:\/\/wite.oxoooo.com\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=406"}],"version-history":[{"count":3,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":416,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions\/416"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=\/wp\/v2\/media\/417"}],"wp:attachment":[{"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wite.oxoooo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}