{"id":35835,"date":"2023-06-28T07:14:39","date_gmt":"2023-03-15T05:46:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/"},"modified":"2024-04-30T11:02:22","modified_gmt":"2024-04-30T03:02:22","slug":"knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/","title":{"rendered":"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347"},"content":{"rendered":"<p>\u5728\u63cf\u8ff0Knative\u65f6\u7ecf\u5e38\u4f1a\u5f3a\u8c03\u5b83\u662f\u65e0\u670d\u52a1\u5668\u6784\u5efa\u5757\uff0c\u4f46\u662f\u6709\u4eba\u8ba4\u4e3a\uff0cKubernetes\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\u5f00\u53d1\u4eba\u5458\u3001\u8fd0\u8425\u7ba1\u7406\u4eba\u5458\u7b49\u53ef\u80fd\u6ca1\u6709\u5b8c\u5168\u4e86\u89e3\u5230\u5b83\u5bf9\u4ed6\u4eec\u7684\u65b9\u4fbf\u4e4b\u5904\u3002<\/p>\n<p>\u5728\u8c08\u8bba\u4e2d\u670d\u52a1\u5668\u65e0\u5173\u548c\u62bd\u8c61\u5316\u8fd9\u4e2a\u4ece\u201c\u8bcd\u6c47\u610f\u5473\u5230\u7684\u4e1c\u897f\u201d\u4f1a\u56e0\u4eba\u800c\u5f02\uff0c\u800c\u6ca1\u6709\u5171\u540c\u7684\u7406\u89e3\uff0c\u800c\u6ca1\u6709\u5177\u4f53\u9a8c\u8bc1\uff0c\u8fd9\u662f\u975e\u5e38\u53ef\u60dc\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u8fd9\u662f\u5bf9Ahmet Alp Balkan\uff08@ahmetb\uff09\u7684\u6587\u7ae0\u300aKnative = Kubernetes Networking++\u300b\u7684\u65e5\u6587\u7ffb\u8bd1\u3002\u672c\u6587\u89e3\u91ca\u4e86Knative\u5982\u4f55\u89e3\u51b3\u5728\u5f00\u53d1Kubernetes\u5fae\u670d\u52a1\u65f6\u9047\u5230\u7684\u95ee\u9898\u3002\u5b83\u8fd8\u5728Kubernetes Podcast\uff0378\u4e2d\u7684\u201c\u4e00\u5468\u65b0\u95fb\u201d\u8282\u76ee\u4e2d\u88ab\u63d0\u53ca\u8fc7\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709\u5174\u8da3\uff0c\u4e5f\u53ef\u4ee5\u8bd5\u8bd5\u6211\u4eec\u5236\u4f5c\u7684\u4e00\u4e2a\u7528\u65e5\u8bed\u4e00\u6b21\u6027\u5c1d\u8bd5\u8bf4\u660e\u5185\u5bb9\u7684\u5de5\u4f5c\u574a\u3002\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u6709\u4e00\u4e2a\u540d\u4e3a&#8221;build-your-own-platform-with-knative&#8221;\u7684\u5de5\u4f5c\u574a\uff0c\u4f60\u4e5f\u53ef\u4ee5\u770b\u770b\u3002<\/p>\n<h1>Knative\u662fKubernetes\u7f51\u7edc\u7684\u589e\u5f3a\u7248\u3002<\/h1>\n<p>Knative\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u901a\u5e38\u3001\u00abKubernetes\u4e0a\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u00bb\u306e\u305f\u3081\u306e\u69cb\u6210\u8981\u7d20\u3068\u3057\u3066\u8aac\u660e\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u610f\u5473\u5408\u3044\u306e\u7d50\u679c\u3068\u3057\u3066\u3001\u307b\u3068\u3093\u3069\u306eKubernetes\u30e6\u30fc\u30b6\u30fc\u306f\u3001Knative\u304c\u975e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u4f55\u304c\u3067\u304d\u308b\u304b\u3092\u8a8d\u8b58\u3057\u3066\u3044\u307e\u305b\u3093\u3002Knative\u306fKubernetes\u4e0a\u306e\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u306a\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306e\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6539\u5584\u3057\u307e\u3059\u3002<\/p>\n<p>\u00ab\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u00bb\u3092\u3057\u3070\u3089\u304f\u8107\u306b\u7f6e\u3044\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u307b\u3068\u3093\u3069\u306eKubernetes\u30e6\u30fc\u30b6\u30fc\u306f12\u30d5\u30a1\u30af\u30bf\u30fc\u30a2\u30c3\u30d7\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u306b\u5f93\u3063\u3066\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3092\u66f8\u304d\u307e\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u306f\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u3067\u3001\u30ea\u30af\u30a8\u30b9\u30c8\/RPC\u8d8a\u3057\u306b\u901a\u4fe1\u3059\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>Kubernetes\u306f\u305d\u306e\u3088\u3046\u306a\u6027\u8cea\u306e\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u3057\u3066\u9069\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u3067\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002\u7d44\u307f\u8fbc\u307f\u306eKubernetes\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u80fd\u306f\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306e\u4e16\u754c\u3067\u5fc5\u8981\u3068\u306a\u308b\u3044\u304f\u3064\u304b\u306e\u5171\u901a\u306e\u30bf\u30b9\u30af\u306b\u4e0d\u5341\u5206\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b2\u3064\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\uff08Deployment\u3001Service\uff09\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">HTTP\/gRPC\u306e\u30ea\u30af\u30a8\u30b9\u30c8\/RPC\u5358\u4f4d\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u304c\u306a\u30441<\/ul>\n<\/li>\n<\/ul>\n<p>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u5206\u5272\u304c\u306a\u304f\u3001\u30d6\u30eb\u30fc\u30b0\u30ea\u30fc\u30f3\u30c7\u30d7\u30ed\u30a4\u304c\u7c21\u5358\u306b\u3067\u304d\u306a\u3044<br \/>\nCPU\/\u30e1\u30e2\u30ea\u30fc\u30d9\u30fc\u30b9\u306e\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\uff08\u305f\u3044\u3066\u3044\u30b9\u30b1\u30fc\u30eb\u304c\u9045\u304f\u3001\u6c42\u3081\u3066\u3044\u308b\u3082\u306e\u3067\u306f\u306a\u3044\uff09<br \/>\n\u540c\u6642\u5b9f\u884c\u6570\u5236\u5fa1\u304c\u306a\u3044\uff08\u4f8b: Pod\u6bce\u306e\u6700\u5927\u30ea\u30af\u30a8\u30b9\u30c8\u6570\uff09<\/p>\n<p>Kubernetes\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fKnative Serving\u306fKubernetes\u306e\u3053\u308c\u3089\u306e\u77ed\u6240\u306b\u76f4\u63a5\u5bfe\u51e6\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Kubernetes\u306eService\u3068Deployment\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u00abService\u00bb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">HTTP\/gPRC\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u5358\u4f4d\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30af\u30a8\u30b9\u30c8\u30d9\u30fc\u30b9\u306e\u8fc5\u901f\u306a\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3001\u7d20\u65e9\u3044\u53cd\u5fdc<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Service\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u305f\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u5206\u5272\uff08\u30d6\u30eb\u30fc\u30b0\u30ea\u30fc\u30f3\u30c7\u30d7\u30ed\u30a4\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u8fc5\u901f\u306a\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u306f\u3059\u3050\u306b\u4f7f\u3048\u3001\u9ad8\u5ea6\u306b\u8a2d\u5b9a\u53ef\u80fd<\/ul>\n<\/li>\n<\/ul>\n<p>0 Pod\u3078\u306e\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\uff08\u30b5\u30b9\u30da\u30f3\u30c9\uff09\u30680\u304b\u3089N Pod\u3078\u306e\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\uff08\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30b7\u30e7\u30f3\uff09\u3082\u8a2d\u5b9a\u3067\u304d\u308b<br \/>\n\u540c\u6642\u5b9f\u884c\u6570\u5236\u5fa1\uff08Pod\u6bce\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u5236\u9650\uff09<\/p>\n<p>\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09HTTP\u30e1\u30c8\u30ea\u30af\u30b9\uff08\u30ec\u30a4\u30c6\u30f3\u30b7\u30fc\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u306a\u3069\uff09\u306e\u81ea\u52d5\u76e3\u8996\u30b5\u30dd\u30fc\u30c8<br \/>\n\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09\u81ea\u52d5TLS\u8a3c\u660e\u66f8\u3068\u5916\u90e8\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u7d42\u7aef<\/p>\n<p>\u5728\u5806\u6808\u7684\u5173\u952e\u8def\u5f84\u4e0a\u91c7\u7528\u50cfKnative\u8fd9\u6837\u7684\u65b0\u7ec4\u4ef6\u662f\u4e00\u4e2a\u8270\u96be\u7684\u51b3\u5b9a\u3002Knative\u9879\u76ee\u6d89\u53ca\u4e00\u4e9b\u65b9\u9762\uff0c\u53ef\u80fd\u4f1a\u6539\u53d8\u5bf9\u6b64\u7684\u770b\u6cd5\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Knative\u306fv1.0\u9593\u8fd1\u3067\u00ab\u5b89\u5b9a\u00bb\u3057\u3064\u3064\u3042\u308a\u3001\u5f37\u56fa\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u30022<\/ul>\n<\/li>\n<\/ul>\n<p>Knative\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u3067\u3059\u3002Serving\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u307f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<br \/>\nKnative\u306fIstio\u306b\u4f9d\u5b58\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002Knative\u306f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u5206\u5272\u306b\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u304c\u3001Gloo\u3084Ambassador\u306e\u3088\u3046\u306a\u4ee3\u66ff\u624b\u6bb5\u3001\u307e\u305f\u306fKourier\u306a\u3069\u306eKnative\u5c02\u7528\u306b\u69cb\u7bc9\u3055\u308c\u305f\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u30d7\u30ed\u30ad\u30b7\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h1>Knative &#8220;Service&#8221; \u7684API<\/h1>\n<p>Knative\u5c06Kubernetes Deployment\u548cService\u5408\u5e76\u4e3a\u5355\u4e00\u7684Service\u7c7b\u578b\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u306aKubernetes\u306eDeployment\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u306f\u3001apiVersion \/ kind\u3092\u5909\u66f4\u3057\u3001\u3044\u304f\u3064\u304b\u306e\u4e0d\u8981\u306a\u90e8\u5206\u3092\u30c8\u30ea\u30df\u30f3\u30b0\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u975e\u5e38\u306b\u7c21\u5358\u306bKnative\u306b\u79fb\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c1\"># \u5909\u66f4\u524d:<\/span>\r\n<span class=\"na\">apiVersion<\/span><span class=\"pi\">:<\/span> <span class=\"s\">apps\/v1<\/span>\r\n<span class=\"na\">kind<\/span><span class=\"pi\">:<\/span> <span class=\"s\">Deployment<\/span>\r\n\r\n<span class=\"c1\"># \u5909\u66f4\u5f8c:<\/span>\r\n<span class=\"na\">apiVersion<\/span><span class=\"pi\">:<\/span> <span class=\"s\">serving.knative.dev\/v1<\/span>\r\n<span class=\"na\">kind<\/span><span class=\"pi\">:<\/span> <span class=\"s\">Service<\/span>\r\n<\/code><\/pre>\n<p>Knative Service\u3092\u66f4\u65b0\u3059\u308b\u305f\u3073\u306b\u3001\u65b0\u3057\u3044Revision\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002Revision\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u3042\u308a\u3001\u30c7\u30d7\u30ed\u30a4\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u5f37\u5236\u7684\u306b\u6301\u3064\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3046\u3059\u308b\u3068\u3001Revision\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ed\u30fc\u30eb\u30a2\u30a6\u30c8\u4e2d\u306b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5206\u5272\u3057\u305f\u308a\u3001\u5358\u7d14\u306b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Knative Serving\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u5176\u4ed6API\uff0c\u8fd9\u4e9bAPI\u662f\u4ed6\u4eec\u65e5\u5e38\u5de5\u4f5c\u4e2d\u5f88\u5c11\u9047\u5230\u7684\u3002\u4f8b\u5982\uff0c\u5b83\u63d0\u4f9b\u4e86\u5c06\u4ee3\u7801\u548c\u914d\u7f6e\u5206\u79bb\u7684\u529f\u80fd\uff08\u9075\u5faa12\u56e0\u7d20\u5e94\u7528\u7684\u539f\u5219\uff09\u3002<\/p>\n<h1>Knative\u7684\u81ea\u52a8\u7f29\u653e<\/h1>\n<p>\u5982\u679c\u4f5c\u4e3a\u5f00\u53d1\u8005\uff0c\u5728Kubernetes\u4e2d\u8ba9\u5fae\u670d\u52a1\u81ea\u52a8\u6269\u5c55\u8fd9\u4e2a\u95ee\u9898\u4ee4\u4eba\u56f0\u6270\uff0c\u90a3\u80af\u5b9a\u6709\u8db3\u591f\u7684\u7406\u7531\u3002<\/p>\n<p>Kubernetes\u306e\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u306f\u3001\u4e3b\u306bHorizo\u200b\u200bntal Pod Autoscaler\u3092\u4f7f\u7528\u3057\u3066\u884c\u308f\u308c\u307e\u3059\u3002HPA\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067CPU\/\u30e1\u30e2\u30ea\u30fc\u4f7f\u7528\u91cf\uff08\u307e\u305f\u306f\u30ab\u30b9\u30bf\u30e0\u30e1\u30c8\u30ea\u30af\u30b9\uff09\u3092\u78ba\u8a8d\u3057\u3001\u9577\u3044\u6642\u9593\u67a0\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u7a81\u7136\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30d1\u30a4\u30af\u3078\u306e\u53cd\u5fdc\u306f\u9045\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001Knative\u306e\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u306f\u00ab\u51e6\u7406\u4e2d\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u00bb\uff08\u540c\u6642\u5b9f\u884c\u6027\uff09\u306b\u3088\u3063\u3066\u99c6\u52d5\u3055\u308c\u307e\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u304c\u51e6\u7406\u3067\u304d\u308b\u3088\u308a\u3082\u591a\u304f\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u7a81\u7136\u53d7\u3051\u53d6\u3063\u305f\u5834\u5408\u3001Knative\u306f\u3088\u308a\u77ed\u3044\u6642\u9593\u67a0\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u3088\u308a\u591a\u304f\u306ePod\u3092\u3059\u3070\u3084\u304f\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u53cd\u5fdc\u304c\u8fc5\u901f\u3067\u3059\u3002<\/p>\n<p>Knative\u306fPod\u306b\u6765\u308b\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u628a\u63e1\u3057\u3066\u3044\u307e\u3059\u30023Knative\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30bd\u30d5\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u3067\u3042\u308b\u00ab\u30bf\u30fc\u30b2\u30c3\u30c8\u540c\u6642\u5b9f\u884c\u00bb\u30ec\u30d9\u30eb\u3001\u307e\u305f\u306f\u5404Pod\u306b\u9001\u4fe1\u3055\u308c\u308b\u6700\u5927\u306e\u5b9f\u884c\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u4fdd\u8a3c\u3059\u308b\u30cf\u30fc\u30c9\u00ab\u540c\u6642\u5b9f\u884c\u00bb\u5236\u9650\u3092\u6301\u3064\u3088\u3046\u306b\u30a2\u30d7\u30ea\u3092\u69cb\u6210\u3067\u304d\u307e\u3059\u3002\u4e26\u884c\u51e6\u7406\u306e\u8a2d\u5b9a\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u3001Knative\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30e9\u30fc\u306f\u53d7\u4fe1\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53b3\u5bc6\u306b\u76e3\u8996\u3057\u3001\u8ffd\u52a0\u3059\u308bPod\u306e\u6570\u3092\u3059\u3070\u3084\u304f\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u5728\u5e94\u7528\u7a0b\u5e8f\u6269\u5c55\u671f\u95f4\uff0cKnative\u5c06\u4fdd\u7559\u63a5\u6536\u5230\u7684\u8bf7\u6c42\uff0c\u5e76\u5c06\u8bf7\u6c42\u4ee3\u7406\u5230\u65b0\u7684Pod\uff0c\u800c\u4e0d\u4f1a\u4e22\u5f03\u8bf7\u6c42\u3002\u8fd9\u5728Kubernetes\u4e2d\u662f\u4e0d\u53ef\u80fd\u7684\u3002<\/p>\n<p>\u4f5c\u4e3a\u5f00\u53d1\u8005\uff0c\u6211\u66f4\u5e0c\u671b\u80fd\u591f\u7528\u4e00\u884c\u914d\u7f6e\u5199\u4e0a\u300c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u540c\u65f6\u5904\u740620\u4e2a\u8bf7\u6c42\u300d\uff0c\u800c\u4e0d\u662f\u5728\u5197\u957f\u7684HorizontalPodAutoscaling\u6e05\u5355\u4e2d\u5199\u4e0a\u300c\u4ee5\u5e73\u574770\uff05\u7684CPU\u4f7f\u7528\u7387\u4e3a\u76ee\u6807\uff0c\u57281\u523030\u4e2aPod\u4e4b\u95f4\u8fdb\u884c\u6269\u5c55\u5e94\u7528\u7a0b\u5e8f\u300d\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001Knative\u306f\u3057\u3070\u3089\u304f\u306e\u9593\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u53d7\u4fe1\u3057\u306a\u3044\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u3057\u3066\u00ab0 Pod\u3078\u306e\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u00bb\u3092\u63d0\u4f9b\u3057\u307e\u3059\uff08Kubernetes\u306f\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u3053\u308c\u3092\u884c\u3046\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u30934\uff09\u3002\u3053\u308c\u306f\u3001Knative activator\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u73fe\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u65b9\u5f0f\u3067\u30aa\u30f3\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u300c\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u300d\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u7c21\u5358\u306b\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6709\u5173Knative\u81ea\u52a8\u7f29\u653e\u5668\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u6b64\u535a\u5ba2\u6587\u7ae0\u3001\u6b64\u6587\u6863\u548c\u6b64\u793a\u4f8b\u3002<\/p>\n<h1>\u4f5c\u4e3aKubernetes\u7684Knative<\/h1>\n<p>\u901a\u8fc7\u4f7f\u7528Knative\u90e8\u7f72\u7684\u5e94\u7528\u7a0b\u5e8f\u4ecd\u7136\u662fKubernetes\u670d\u52a1\u3002\u5b83\u53ef\u4ee5\u8fde\u63a5\u5230\u5176\u4ed6Kubernetes\u670d\u52a1\uff0c\u5e76\u53ef\u4ee5\u4f7f\u7528\u672c\u5730Kubernetes\u670d\u52a1\u53d1\u73b0\u8fdb\u884c\u8fde\u63a5\u3002<\/p>\n<p>Knative Services\u4f1a\u4f5c\u4e3aKubernetes Deployment\u8fdb\u884c\u90e8\u7f72\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7Knative Service\u5bf9\u8c61\uff08\u4f8b\u5982\uff09\u7ee7\u7eed\u6307\u5b9aPodSpec\u7684\u503c\uff08\u73af\u5883\u53d8\u91cf\u3001\u5377\u6302\u8f7d\u3001\u5176\u4ed6\u7ec6\u8282\uff09\u3002<\/p>\n<p>\u5bf9\u4e8eKubernetes\u5f00\u53d1\u8005\u6765\u8bf4\uff0cKnative\u8fdb\u5165\u95e8\u69db\u975e\u5e38\u4f4e\u3002\u4f7f\u7528\u50cfAnthos\u4e0a\u7684Cloud Run\u8fd9\u6837\u7684\u6258\u7ba1\u670d\u52a1\uff0c\u60a8\u53ef\u4ee5\u5728\u4e91\u7aef\u548c\u672c\u5730\u4f7f\u7528\u6258\u7ba1\u7684Knative\u8bbe\u7f6e\u8fdb\u884c\u96c6\u7fa4\u7ba1\u7406\u3002<\/p>\n<p>\u6211\u8ba4\u4e3a\u5f88\u591aKubernetes\u7528\u6237\u76ee\u524d\u90fd\u6ca1\u6709\u610f\u8bc6\u5230Knative\u9879\u76ee\u5bf9\u4ed6\u4eec\u7684\u5e2e\u52a9\u3002\u5982\u679c\u4f60\u5bf9Knative\u7684\u89e3\u91ca\u6ee1\u610f\u7684\u8bdd\uff0c\u8bf7\u544a\u8bc9\u6211\u3002\u6211\u60f3\u7ee7\u7eed\u5199\u5173\u4e8eKnative\u7684\u6587\u7ae0\u3002<\/p>\n<div>\n<p>\u7531\u4e8eKubernetes\u53ea\u8bc6\u522bTCP\u6d41\u91cf\uff0c\u6240\u4ee5\u5bf9\u4e8e\u6bcf\u4e2a\u8bf7\u6c42\u5b83\u5e76\u4e0d\u77e5\u9053\u4efb\u4f55\u4fe1\u606f\u3002<\/p>\n<p>Google Cloud Platform\u3001Red Hat\u548cIBM Cloud\u5df2\u7ecf\u5c06Knative\u4f5c\u4e3a\u670d\u52a1\u63d0\u4f9b\u3002<\/p>\n<p>Knative\u901a\u8fc7\u63d2\u5165\u8fb9\u8f66\u4ee3\u7406\uff08queue-proxy\uff09\u6765\u5b9e\u73b0\u5e76\u53d1\u63a7\u5236\u3002<\/p>\n<p>\u540c\u6837\u5730\uff0cAzure\u7684Osiris\u9879\u76ee\u4e5f\u63d0\u4f9b\u4e86\u63a7\u5236\u5668\uff0c\u4ee5\u5b9e\u73b0\u5bf90 Pod\u7684\u7f29\u5bb9\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u63cf\u8ff0Knative\u65f6\u7ecf\u5e38\u4f1a\u5f3a\u8c03\u5b83\u662f\u65e0\u670d\u52a1\u5668\u6784\u5efa\u5757\uff0c\u4f46\u662f\u6709\u4eba\u8ba4\u4e3a\uff0cKubernetes\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\u5f00\u53d1 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-35835","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347\" \/>\n<meta property=\"og:description\" content=\"\u5728\u63cf\u8ff0Knative\u65f6\u7ecf\u5e38\u4f1a\u5f3a\u8c03\u5b83\u662f\u65e0\u670d\u52a1\u5668\u6784\u5efa\u5757\uff0c\u4f46\u662f\u6709\u4eba\u8ba4\u4e3a\uff0cKubernetes\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\u5f00\u53d1 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-15T05:46:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T03:02:22+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/\",\"name\":\"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-15T05:46:40+00:00\",\"dateModified\":\"2024-04-30T03:02:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347\/","og_locale":"zh_CN","og_type":"article","og_title":"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347","og_description":"\u5728\u63cf\u8ff0Knative\u65f6\u7ecf\u5e38\u4f1a\u5f3a\u8c03\u5b83\u662f\u65e0\u670d\u52a1\u5668\u6784\u5efa\u5757\uff0c\u4f46\u662f\u6709\u4eba\u8ba4\u4e3a\uff0cKubernetes\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\u5f00\u53d1 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-15T05:46:40+00:00","article_modified_time":"2024-04-30T03:02:22+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/","name":"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-15T05:46:40+00:00","dateModified":"2024-04-30T03:02:22+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Knative= Kubernetes\u7f51\u7edc\u7684\u5168\u65b0\u63d0\u5347"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/knative-kubernetes%e7%bd%91%e7%bb%9c%e7%9a%84%e5%85%a8%e6%96%b0%e6%8f%90%e5%8d%87\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=35835"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35835\/revisions"}],"predecessor-version":[{"id":91515,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35835\/revisions\/91515"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=35835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=35835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=35835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}