{"id":148778,"date":"2019-07-09T08:35:00","date_gmt":"2019-07-09T00:35:00","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=148778"},"modified":"2019-06-24T09:37:09","modified_gmt":"2019-06-24T01:37:09","slug":"kubernetes-1-15-kubernetes-api","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kubernetes-1-15-kubernetes-api.html","title":{"rendered":"Kubernetes 1.15 \u53d1\u5e03"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6628\u5929\uff0cKubernetes\u56e2\u961f\u5ba3\u5e03\u53d1\u5e03Kubernetes 1.15\uff0c\u5176\u4e2d\u5305\u62ec25\u4e2a\u589e\u5f3a\u529f\u80fd\uff0c\u5305\u62ec2\u4e2a\u79fb\u52a8\u5230\u7a33\u5b9a\u7248\uff0c13\u4e2abeta\u7248\u548c10\u4e2aalpha\u7248\u3002 \u6b64\u7248\u672c\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\u56f4\u7ed5\u6838\u5fc3Kubernetes API\u7684\u53ef\u6269\u5c55\u6027\uff0c\u96c6\u7fa4\u751f\u547d\u5468\u671f\u7a33\u5b9a\u6027\u548c\u53ef\u7528\u6027\u6539\u8fdb\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8fd9\u662fKubernetes\u4eca\u5e74\u7684\u7b2c\u4e8c\u6b21\u53d1\u5e03\u3002 \u4e09\u4e2a\u6708\u524d\u53d1\u5e03\u7684\u524d\u4e00\u4e2aKubernetes 1.14\u7248\u672c\u670910\u4e2a\u7a33\u5b9a\u7684\u589e\u5f3a\u529f\u80fd - \u8fd9\u662f\u4e00\u4e2a\u7248\u672c\u4e2d\u663e\u793a\u7684\u6700\u7a33\u5b9a\u7684\u7279\u6027\u3002<\/p>\n

\"\"<\/p>\n

Kubernetes\u7684\u56e2\u961f\u8d1f\u8d23\u4ebaClaire Laurence\u8868\u793a\uff0c\u5728\u8fd9\u4e2a\u7248\u672c\u4e2d\uff0c\u201c\u6211\u4eec\u5df2\u7ecf\u6709\u76f8\u5f53\u591a\u7684\u529f\u80fd\u5728beta\u7248\u4e2d\u53d6\u5f97\u8fdb\u5c55\u3002\u6211\u8ba4\u4e3a\uff0c\u968f\u7740\u8fd9\u4e9b\u6d4b\u8bd5\u7248\u548c\u6d4b\u8bd5\u7248\u529f\u80fd\u7684\u8fdb\u5c55\uff0c\u6211\u4eec\u5df2\u7ecf\u770b\u5230\u4e86\u5f88\u591a\uff0c\u5728\u8868\u660e\u8fd9\u4e9b\u529f\u80fd\u662f\u7a33\u5b9a\u7684\u4e4b\u524d\uff0c\u6211\u4eec\u4f1a\u7ee7\u7eed\u5173\u6ce8\u7a33\u5b9a\u6027\u548c\u6574\u4f53\u6539\u8fdb\u3002\u201d<\/p>\n

\u8ba9\u6211\u4eec\u7b80\u8981\u5730\u770b\u4e00\u4e0b\u6240\u6709\u7684\u65b0\u7279\u6027\u548c\u66f4\u65b0\u3002<\/p>\n

\uff031\u6838\u5fc3Kubernetes API\u7684\u53ef\u6269\u5c55\u6027<\/strong><\/p>\n

CustomResourceDefinitions\u65b0\u5f00\u53d1\u7684\u4e3b\u9898\u662f\u6570\u636e\u4e00\u81f4\u6027\u548c\u539f\u751f\u884c\u4e3a\u3002 Kubernetes\u56e2\u961f\u5e0c\u671b\u7528\u6237\u4e0d\u8981\u6ce8\u610f\u4ea4\u4e92\u662f\u4f7f\u7528CustomResource\u8fd8\u662f\u4f7f\u7528Golang\u672c\u673a\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u4ecev1.15\u5f00\u59cb\uff0cKubernetes\u5c06\u9488\u5bf9\u79f0\u4e3a\u201c\u7ed3\u6784\u6a21\u5f0f\u201d\u7684\u9650\u5236\u68c0\u67e5\u6bcf\u4e2a\u6a21\u5f0f\u3002\u8fd9\u4f1a\u5f3a\u5236CustomResource\u4e2d\u6bcf\u4e2a\u5b57\u6bb5\u7684\u975e\u591a\u6001\u548c\u5b8c\u6574\u7c7b\u578b\u3002<\/p>\n

\u5728\u4e94\u4e2a\u589e\u5f3a\u529f\u80fd\u4e2d\uff0c'CustomResourceDefinition Defaulting'\u662falpha\u7248\u672c\u3002\u5b83\u662f\u4f7f\u7528OpenAPI\u9a8c\u8bc1\u6a21\u5f0f\u4e2d\u7684default\u5173\u952e\u5b57\u6307\u5b9a\u7684\u3002\u5bf9\u4e8e\u7ed3\u6784\u6a21\u5f0f\uff0c\u9ed8\u8ba4\u5c06\u5728Kubernetes 1.15\u4e2d\u4ee5alpha\u5f62\u5f0f\u63d0\u4f9b\u3002\u5176\u4ed6\u56db\u9879\u589e\u5f3a\u529f\u80fd\u5904\u4e8e\u6d4b\u8bd5\u9636\u6bb5\uff0c\u5305\u62ec\uff1a<\/p>\n

CustomResourceDefinition Webhook\u8f6c\u6362<\/p>\n

\u5728Kubernetes\u4e2d\uff0cCustomResourceDefinitions\u53ef\u4ee5\u5373\u65f6\u5728\u4e0d\u540c\u7248\u672c\u4e4b\u95f4\u8fdb\u884c\u8f6c\u6362\uff0c\u5c31\u50cf\u7528\u6237\u957f\u671f\u4f7f\u7528\u672c\u673a\u8d44\u6e90\u4e00\u6837\u3002<\/p>\n

CustomResourceDefinition OpenAPI Publishing<\/p>\n

\u7528\u4e8eCRD\u7684OpenAPI\u53d1\u5e03\u5c06\u4ee5Kubernetes 1.15\u4f5c\u4e3a\u6d4b\u8bd5\u7248\u63d0\u4f9b\uff0c\u4f46\u4ec5\u9002\u7528\u4e8e\u7ed3\u6784\u6a21\u5f0f\u3002<\/p>\n

CustomResourceDefinitions\u4fee\u526a<\/p>\n

\u4fee\u526a\u662f\u81ea\u52a8\u5220\u9664\u53d1\u9001\u5230Kubernetes API\u7684\u5bf9\u8c61\u4e2d\u7684\u672a\u77e5\u5b57\u6bb5\u3002\u5982\u679c\u672a\u5728OpenAPI\u9a8c\u8bc1\u6a21\u5f0f\u4e2d\u6307\u5b9a\u5b57\u6bb5\uff0c\u5219\u8be5\u5b57\u6bb5\u662f\u672a\u77e5\u7684\u3002\u5b83\u5f3a\u5236\u53ea\u5c06CRD\u5f00\u53d1\u4eba\u5458\u6307\u5b9a\u7684\u6570\u636e\u7ed3\u6784\u6301\u4e45\u4fdd\u5b58\u5230etcd\u3002\u8fd9\u662f\u672c\u673a\u8d44\u6e90\u7684\u884c\u4e3a\uff0c\u4e5f\u53ef\u7528\u4e8eCRD\uff0c\u4eceKubernetes 1.15\u5f00\u59cb\u6d4b\u8bd5\u3002<\/p>\n

\u5165\u573aWebhook\u91cd\u65b0\u5b89\u7f6e\u548c\u6539\u8fdb<\/p>\n

\u5728\u65e9\u671f\u7248\u672c\u4e2d\uff0c\u53d8\u5f02webhooks\u4ec5\u6309\u5b57\u6bcd\u987a\u5e8f\u8c03\u7528\u4e00\u6b21\u3002\u8f83\u65e9\u7684\u8fd0\u884cwebhook\u65e0\u6cd5\u5bf9webhook\u7684\u8f93\u51fa\u505a\u51fa\u53cd\u5e94\uff0c\u540e\u8005\u5728\u94fe\u4e2d\u79f0\u4e3a\u3002\u4f7f\u7528Kubernetes 1.15\uff0c\u901a\u8fc7\u6307\u5b9areinvocationPolicy\uff1aIfNeeded\uff0c\u53d8\u5f02webhook\u53ef\u4ee5\u9009\u62e9\u52a0\u5165\u81f3\u5c11\u4e00\u6b21\u91cd\u65b0\u8c03\u7528\u3002\u5982\u679c\u540e\u6765\u7684\u53d8\u5f02webhook\u4fee\u6539\u4e86\u5bf9\u8c61\uff0c\u90a3\u4e48\u65e9\u671f\u7684webhook\u5c06\u83b7\u5f97\u7b2c\u4e8c\u6b21\u673a\u4f1a\u3002<\/p>\n

\uff032\u96c6\u7fa4\u751f\u547d\u5468\u671f\u7a33\u5b9a\u6027\u548c\u53ef\u7528\u6027\u6539\u8fdb<\/strong><\/p>\n

\u96c6\u7fa4\u751f\u547d\u5468\u671f\u6784\u5efa\u5757kubeadm\u7ee7\u7eed\u63a5\u6536\u529f\u80fd\u548c\u7a33\u5b9a\u6027\u5de5\u4f5c\uff0c\u8fd9\u662f\u6709\u6548\u5f15\u5bfc\u751f\u4ea7\u96c6\u7fa4\u6240\u9700\u7684\u3002<\/p>\n