Httpget\u63a2\u6d4b\u65b9\u5f0f\u7684yaml\u6587\u4ef6\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n
spec: \r\n containers: \r\n - name: liveness \r\n image: k8s.gcr.io\/liveness \r\n livenessProbe: #\u91c7\u7528livenessProbe\u673a\u5236\u63a2\u6d4b \r\n httpGet: #\u91c7\u7528httpget\u7684\u65b9\u5f0f \r\n scheme:HTTP #\u6307\u5b9a\u534f\u8bae\uff0c\u4e5f\u652f\u6301https \r\n path: \/healthz #\u68c0\u6d4b\u662f\u5426\u53ef\u4ee5\u8bbf\u95ee\u5230\u7f51\u9875\u6839\u76ee\u5f55\u4e0b\u7684healthz\u7f51\u9875\u6587\u4ef6 \r\n port: 8080 #\u76d1\u542c\u7aef\u53e3\u662f8080 \r\n initialDelaySeconds: 3 #\u5bb9\u5668\u8fd0\u884c3\u79d2\u540e\u5f00\u59cb\u63a2\u6d4b \r\n periodSeconds: 3 #\u63a2\u6d4b\u9891\u7387\u4e3a3\u79d2\r\n<\/pre>\n\u4e0a\u8ff0\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u63a2\u6d4b\u65b9\u5f0f\u4e3a\u9879\u5bb9\u5668\u53d1\u9001HTTP GET\u8bf7\u6c42\uff0c\u8bf7\u6c42\u7684\u662f8080\u7aef\u53e3\u4e0b\u7684healthz\u6587\u4ef6\uff0c\u8fd4\u56de\u4efb\u4f55\u5927\u4e8e\u6216\u7b49\u4e8e200\u4e14\u5c0f\u4e8e400\u7684\u72b6\u6001\u7801\u8868\u793a\u6210\u529f\u3002\u4efb\u4f55\u5176\u4ed6\u4ee3\u7801\u8868\u793a\u5f02\u5e38\u3002<\/p>\n
3\uff09tcpSocket\uff1a \u901a\u8fc7\u5bb9\u5668\u7684IP\u548cPort\u6267\u884cTCP\u68c0\u67e5\uff0c\u5982\u679c\u80fd\u591f\u5efa\u7acbTCP\u8fde\u63a5\uff0c\u5219\u8868\u660e\u5bb9\u5668\u5065\u5eb7\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4e0eHTTPget\u7684\u63a2\u6d4b\u673a\u5236\u6709\u4e9b\u7c7b\u4f3c\uff0ctcpsocket\u5065\u5eb7\u68c0\u67e5\u9002\u7528\u4e8eTCP\u4e1a\u52a1\u3002<\/p>\n
tcpSocket\u63a2\u6d4b\u65b9\u5f0f\u7684yaml\u6587\u4ef6\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n
spec: \r\n containers: \r\n - name: goproxy \r\n image: k8s.gcr.io\/goproxy:0.1 \r\n ports: \r\n- containerPort: 8080<\/pre>\n#\u8fd9\u91cc\u4e24\u79cd\u63a2\u6d4b\u673a\u5236\u90fd\u7528\u4e0a\u4e86\uff0c\u90fd\u662f\u4e3a\u4e86\u548c\u5bb9\u5668\u76848080\u7aef\u53e3\u5efa\u7acbTCP\u8fde\u63a5<\/p>\n
readinessProbe: \r\n tcpSocket: \r\n port: 8080 \r\n initialDelaySeconds: 5\r\n periodSeconds: 10 \r\n livenessProbe: \r\n tcpSocket: \r\n<\/pre>\n\u5728\u4e0a\u8ff0\u7684yaml\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u4e24\u7c7b\u63a2\u9488\u90fd\u4f7f\u7528\u4e86\uff0c\u5728\u5bb9\u5668\u542f\u52a85\u79d2\u540e\uff0ckubelet\u5c06\u53d1\u9001\u7b2c\u4e00\u4e2areadinessProbe\u63a2\u9488\uff0c\u8fd9\u5c06\u8fde\u63a5\u5bb9\u5668\u76848080\u7aef\u53e3\uff0c\u5982\u679c\u63a2\u6d4b\u6210\u529f\uff0c\u5219\u8be5pod\u4e3a\u5065\u5eb7\uff0c\u5341\u79d2\u540e\uff0ckubelet\u5c06\u8fdb\u884c\u7b2c\u4e8c\u6b21\u8fde\u63a5\u3002<\/p>\n
\u9664\u4e86readinessProbe\u63a2\u9488\u5916\uff0c\u5728\u5bb9\u5668\u542f\u52a815\u79d2\u540e\uff0ckubelet\u5c06\u53d1\u9001\u7b2c\u4e00\u4e2alivenessProbe\u63a2\u9488\uff0c\u4ecd\u7136\u5c1d\u8bd5\u8fde\u63a5\u5bb9\u5668\u76848080\u7aef\u53e3\uff0c\u5982\u679c\u8fde\u63a5\u5931\u8d25\uff0c\u5219\u91cd\u542f\u5bb9\u5668\u3002<\/p>\n
\u63a2\u9488\u63a2\u6d4b\u7684\u7ed3\u679c\u65e0\u5916\u4e4e\u4ee5\u4e0b\u4e09\u8005\u4e4b\u4e00\uff1a<\/p>\n
Success\uff1aContainer\u901a\u8fc7\u4e86\u68c0\u67e5\uff1b
\nFailure\uff1aContainer\u6ca1\u6709\u901a\u8fc7\u68c0\u67e5\uff1b
\nUnknown\uff1a\u6ca1\u6709\u6267\u884c\u68c0\u67e5\uff0c\u56e0\u6b64\u4e0d\u91c7\u53d6\u4efb\u4f55\u63aa\u65bd\uff08\u901a\u5e38\u662f\u6211\u4eec\u6ca1\u6709\u5b9a\u4e49\u63a2\u9488\u68c0\u6d4b\uff0c\u9ed8\u8ba4\u4e3a\u6210\u529f\uff09\u3002
\n\u82e5\u89c9\u5f97\u4e0a\u9762\u8fd8\u4e0d\u591f\u900f\u5f7b\uff0c\u53ef\u4ee5\u79fb\u6b65\u5176\u5b98\u7f51\u6587\u6863\uff1a<\/p>\n
\u200b\u200b https:\/\/kubernetes.io\/docs\/tasks\/configure-pod-container\/configure-liveness-readiness-startup-probes\/\u200b\u200b<\/p>\n
\u4e94\u3001 \u5982\u4f55\u63a7\u5236\u6eda\u52a8\u66f4\u65b0\u8fc7\u7a0b\uff1f<\/strong><\/div>\n\u7b54\uff1a\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u67e5\u770b\u5230\u66f4\u65b0\u65f6\u53ef\u4ee5\u63a7\u5236\u7684\u53c2\u6570\uff1a<\/p>\n
[root@master yaml]# kubectl explain deploy.spec.strategy.rollingUpdate<\/pre>\nmaxSurge\uff1a\u3000\u6b64\u53c2\u6570\u63a7\u5236\u6eda\u52a8\u66f4\u65b0\u8fc7\u7a0b\uff0c\u526f\u672c\u603b\u6570\u8d85\u8fc7\u9884\u671fpod\u6570\u91cf\u7684\u4e0a\u9650\u3002\u53ef\u4ee5\u662f\u767e\u5206\u6bd4\uff0c\u4e5f\u53ef\u4ee5\u662f\u5177\u4f53\u7684\u503c\u3002\u9ed8\u8ba4\u4e3a1\u3002<\/p>\n
\uff08\u4e0a\u8ff0\u53c2\u6570\u7684\u4f5c\u7528\u5c31\u662f\u5728\u66f4\u65b0\u8fc7\u7a0b\u4e2d\uff0c\u503c\u82e5\u4e3a3\uff0c\u90a3\u4e48\u4e0d\u7ba1\u4e09\u4e03\u4e8c\u4e00\uff0c\u5148\u8fd0\u884c\u4e09\u4e2apod\uff0c\u7528\u4e8e\u66ff\u6362\u65e7\u7684pod\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff09<\/p>\n
maxUnavailable\uff1a \u6b64\u53c2\u6570\u63a7\u5236\u6eda\u52a8\u66f4\u65b0\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u53ef\u7528\u7684Pod\u7684\u6570\u91cf\u3002<\/p>\n
\uff08\u8fd9\u4e2a\u503c\u548c\u4e0a\u9762\u7684\u503c\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff1a\u6211\u6709\u5341\u4e2apod\uff0c\u4f46\u662f\u5728\u66f4\u65b0\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u5141\u8bb8\u8fd9\u5341\u4e2apod\u4e2d\u6700\u591a\u6709\u4e09\u4e2a\u4e0d\u53ef\u7528\uff0c\u90a3\u4e48\u5c31\u5c06\u8fd9\u4e2a\u53c2\u6570\u7684\u503c\u8bbe\u7f6e\u4e3a3\uff0c\u5728\u66f4\u65b0\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ea\u8981\u4e0d\u53ef\u7528\u7684pod\u6570\u91cf\u5c0f\u4e8e\u6216\u7b49\u4e8e3\uff0c\u90a3\u4e48\u66f4\u65b0\u8fc7\u7a0b\u5c31\u4e0d\u4f1a\u505c\u6b62\uff09\u3002<\/p>\n
[yji]\u516d\u3001K8s\u4e2d\u955c\u50cf\u7684\u4e0b\u8f7d\u7b56\u7565\u662f\u4ec0\u4e48\uff1f[\/yiji]
\n\u7b54\uff1a\u53ef\u901a\u8fc7\u547d\u4ee4\u201ckubectl explain pod.spec.containers\u201d\u6765\u67e5\u770bimagePullPolicy\u8fd9\u884c\u7684\u89e3\u91ca\u3002<\/p>\n
K8s\u7684\u955c\u50cf\u4e0b\u8f7d\u7b56\u7565\u6709\u4e09\u79cd\uff1aAlways\u3001Never\u3001IFNotPresent\uff1b<\/p>\n
Always\uff1a\u955c\u50cf\u6807\u7b7e\u4e3alatest\u65f6\uff0c\u603b\u662f\u4ece\u6307\u5b9a\u7684\u4ed3\u5e93\u4e2d\u83b7\u53d6\u955c\u50cf\uff1b
\nNever\uff1a\u7981\u6b62\u4ece\u4ed3\u5e93\u4e2d\u4e0b\u8f7d\u955c\u50cf\uff0c\u4e5f\u5c31\u662f\u8bf4\u53ea\u80fd\u4f7f\u7528\u672c\u5730\u955c\u50cf\uff1b
\nIfNotPresent\uff1a\u4ec5\u5f53\u672c\u5730\u6ca1\u6709\u5bf9\u5e94\u955c\u50cf\u65f6\uff0c\u624d\u4ece\u76ee\u6807\u4ed3\u5e93\u4e2d\u4e0b\u8f7d\u3002
\n\u9ed8\u8ba4\u7684\u955c\u50cf\u4e0b\u8f7d\u7b56\u7565\u662f\uff1a\u5f53\u955c\u50cf\u6807\u7b7e\u662flatest\u65f6\uff0c\u9ed8\u8ba4\u7b56\u7565\u662fAlways\uff1b\u5f53\u955c\u50cf\u6807\u7b7e\u662f\u81ea\u5b9a\u4e49\u65f6\uff08\u4e5f\u5c31\u662f\u6807\u7b7e\u4e0d\u662flatest\uff09\uff0c\u90a3\u4e48\u9ed8\u8ba4\u7b56\u7565\u662fIfNotPresent\u3002<\/p>\n
\u4e03\u3001 image\u7684\u72b6\u6001\u6709\u54ea\u4e9b\uff1f<\/strong><\/div>\nRunning\uff1aPod\u6240\u9700\u7684\u5bb9\u5668\u5df2\u7ecf\u88ab\u6210\u529f\u8c03\u5ea6\u5230\u67d0\u4e2a\u8282\u70b9\uff0c\u4e14\u5df2\u7ecf\u6210\u529f\u8fd0\u884c\uff0c
\nPending\uff1aAPIserver\u521b\u5efa\u4e86pod\u8d44\u6e90\u5bf9\u8c61\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b58\u5165etcd\u4e2d\uff0c\u4f46\u5b83\u5c1a\u672a\u88ab\u8c03\u5ea6\u5b8c\u6210\u6216\u8005\u4ecd\u7136\u5904\u4e8e\u4ed3\u5e93\u4e2d\u4e0b\u8f7d\u955c\u50cf\u7684\u8fc7\u7a0b
\nUnknown\uff1aAPIserver\u65e0\u6cd5\u6b63\u5e38\u83b7\u53d6\u5230pod\u5bf9\u8c61\u7684\u72b6\u6001\uff0c\u901a\u5e38\u662f\u5176\u65e0\u6cd5\u4e0e\u6240\u5728\u5de5\u4f5c\u8282\u70b9\u7684kubelet\u901a\u4fe1\u6240\u81f4\u3002<\/p>\n
\u516b\u3001 pod\u7684\u91cd\u542f\u7b56\u7565\u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n\u7b54\uff1a\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4`kubectl explain pod.spec\u67e5\u770bpod\u7684\u91cd\u542f\u7b56\u7565\u3002\uff08restartPolicy\u5b57\u6bb5\uff09<\/p>\n
Always\uff1a\u4f46\u51e1pod\u5bf9\u8c61\u7ec8\u6b62\u5c31\u91cd\u542f\uff0c\u6b64\u4e3a\u9ed8\u8ba4\u7b56\u7565\u3002
\nOnFailure\uff1a\u4ec5\u5728pod\u5bf9\u8c61\u51fa\u73b0\u9519\u8bef\u65f6\u624d\u91cd\u542f<\/p>\n
\u4e5d\u3001 Service\u8fd9\u79cd\u8d44\u6e90\u5bf9\u8c61\u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n\u7b54\uff1a\u7528\u6765\u7ed9\u76f8\u540c\u7684\u591a\u4e2apod\u5bf9\u8c61\u63d0\u4f9b\u4e00\u4e2a\u56fa\u5b9a\u7684\u7edf\u4e00\u8bbf\u95ee\u63a5\u53e3\uff0c\u5e38\u7528\u4e8e\u670d\u52a1\u53d1\u73b0\u548c\u670d\u52a1\u8bbf\u95ee\u3002<\/p>\n
\u5341\u3001\u7248\u672c\u56de\u6eda\u76f8\u5173\u7684\u547d\u4ee4\uff1f<\/strong><\/div>\n[root@master httpd-web]# kubectl apply -f httpd2-deploy1.yaml --record \r\n#\u8fd0\u884cyaml\u6587\u4ef6\uff0c\u5e76\u8bb0\u5f55\u7248\u672c\u4fe1\u606f\uff1b \r\n[root@master httpd-web]# kubectl rollout history deployment httpd-devploy1 \r\n#\u67e5\u770b\u8be5deployment\u7684\u5386\u53f2\u7248\u672c \r\n[root@master httpd-web]# kubectl rollout undo deployment httpd-devploy1 --to-revision=1 \r\n#\u6267\u884c\u56de\u6eda\u64cd\u4f5c\uff0c\u6307\u5b9a\u56de\u6eda\u5230\u7248\u672c1 \r\n#\u5728yaml\u6587\u4ef6\u7684spec\u5b57\u6bb5\u4e2d\uff0c\u53ef\u4ee5\u5199\u4ee5\u4e0b\u9009\u9879\uff08\u7528\u4e8e\u9650\u5236\u6700\u591a\u8bb0\u5f55\u591a\u5c11\u4e2a\u5386\u53f2\u7248\u672c\uff09\uff1a \r\nspec: \r\n revisionHistoryLimit: 5 \r\n#\u8fd9\u4e2a\u5b57\u6bb5\u901a\u8fc7 kubectl explain deploy.spec \u547d\u4ee4\u627e\u5230revisionHistoryLimit \u884c\u83b7\u5f97\r\n<\/pre>\n\u5341\u4e00\u3001 \u6807\u7b7e\u4e0e\u6807\u7b7e\u9009\u62e9\u5668\u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n\u6807\u7b7e\uff1a\u662f\u5f53\u76f8\u540c\u7c7b\u578b\u7684\u8d44\u6e90\u5bf9\u8c61\u8d8a\u6765\u8d8a\u591a\u7684\u65f6\u5019\uff0c\u4e3a\u4e86\u66f4\u597d\u7684\u7ba1\u7406\uff0c\u53ef\u4ee5\u6309\u7167\u6807\u7b7e\u5c06\u5176\u5206\u4e3a\u4e00\u4e2a\u7ec4\uff0c\u4e3a\u7684\u662f\u63d0\u5347\u8d44\u6e90\u5bf9\u8c61\u7684\u7ba1\u7406\u6548\u7387\u3002<\/p>\n
\u6807\u7b7e\u9009\u62e9\u5668\uff1a\u5c31\u662f\u6807\u7b7e\u7684\u67e5\u8be2\u8fc7\u6ee4\u6761\u4ef6\u3002\u76ee\u524dAPI\u652f\u6301\u4e24\u79cd\u6807\u7b7e\u9009\u62e9\u5668\uff1a<\/p>\n
\u57fa\u4e8e\u7b49\u503c\u5173\u7cfb\u7684\uff0c\u5982\uff1a\u201c=\u201d\u3001\u201c\u201d\u201c==\u201d\u3001\u201c\uff01=\u201d\uff08\u6ce8\uff1a\u201c==\u201d\u4e5f\u662f\u7b49\u4e8e\u7684\u610f\u601d\uff0cyaml\u6587\u4ef6\u4e2d\u7684matchLabels\u5b57\u6bb5\uff09\uff1b
\n\u57fa\u4e8e\u96c6\u5408\u7684\uff0c\u5982\uff1ain\u3001notin\u3001exists\uff08yaml\u6587\u4ef6\u4e2d\u7684matchExpressions\u5b57\u6bb5\uff09\uff1b
\n\u6ce8\uff1ain:\u5728\u8fd9\u4e2a\u96c6\u5408\u4e2d\uff1bnotin\uff1a\u4e0d\u5728\u8fd9\u4e2a\u96c6\u5408\u4e2d\uff1bexists\uff1a\u8981\u4e48\u5168\u5728\uff08exists\uff09\u8fd9\u4e2a\u96c6\u5408\u4e2d\uff0c\u8981\u4e48\u90fd\u4e0d\u5728\uff08notexists\uff09\uff1b<\/p>\n
\u4f7f\u7528\u6807\u7b7e\u9009\u62e9\u5668\u7684\u64cd\u4f5c\u903b\u8f91\uff1a<\/p>\n
\u5728\u4f7f\u7528\u57fa\u4e8e\u96c6\u5408\u7684\u6807\u7b7e\u9009\u62e9\u5668\u540c\u65f6\u6307\u5b9a\u591a\u4e2a\u9009\u62e9\u5668\u4e4b\u95f4\u7684\u903b\u8f91\u5173\u7cfb\u4e3a\u201c\u4e0e\u201d\u64cd\u4f5c\uff08\u6bd4\u5982\uff1a- {key: name,operator: In,values: [zhangsan,lisi]} \uff0c\u90a3\u4e48\u53ea\u8981\u62e5\u6709\u8fd9\u4e24\u4e2a\u503c\u7684\u8d44\u6e90\uff0c\u90fd\u4f1a\u88ab\u9009\u4e2d\uff09\uff1b
\n\u4f7f\u7528\u7a7a\u503c\u7684\u6807\u7b7e\u9009\u62e9\u5668\uff0c\u610f\u5473\u7740\u6bcf\u4e2a\u8d44\u6e90\u5bf9\u8c61\u90fd\u88ab\u9009\u4e2d\uff08\u5982\uff1a\u6807\u7b7e\u9009\u62e9\u5668\u7684\u952e\u662f\u201cA\u201d\uff0c\u4e24\u4e2a\u8d44\u6e90\u5bf9\u8c61\u540c\u65f6\u62e5\u6709A\u8fd9\u4e2a\u952e\uff0c\u4f46\u662f\u503c\u4e0d\u4e00\u6837\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4f7f\u7528\u7a7a\u503c\u7684\u6807\u7b7e\u9009\u62e9\u5668\uff0c\u90a3\u4e48\u5c06\u540c\u65f6\u9009\u4e2d\u8fd9\u4e24\u4e2a\u8d44\u6e90\u5bf9\u8c61\uff09
\n\u7a7a\u7684\u6807\u7b7e\u9009\u62e9\u5668\uff08\u6ce8\u610f\u4e0d\u662f\u4e0a\u9762\u8bf4\u7684\u7a7a\u503c\uff0c\u800c\u662f\u7a7a\u7684\uff0c\u90fd\u6ca1\u6709\u5b9a\u4e49\u952e\u7684\u540d\u79f0\uff09\uff0c\u5c06\u65e0\u6cd5\u9009\u62e9\u51fa\u4efb\u4f55\u8d44\u6e90\uff1b
\n\u5728\u57fa\u4e8e\u96c6\u5408\u7684\u9009\u62e9\u5668\u4e2d\uff0c\u4f7f\u7528\u201cIn\u201d\u6216\u8005\u201cNotin\u201d\u64cd\u4f5c\u65f6\uff0c\u5176values\u53ef\u4ee5\u4e3a\u7a7a\uff0c\u4f46\u662f\u5982\u679c\u4e3a\u7a7a\uff0c\u8fd9\u4e2a\u6807\u7b7e\u9009\u62e9\u5668\uff0c\u5c31\u6ca1\u6709\u4efb\u4f55\u610f\u4e49\u4e86\u3002<\/p>\n
\u4e24\u79cd\u6807\u7b7e\u9009\u62e9\u5668\u7c7b\u578b\uff08\u57fa\u4e8e\u7b49\u503c\u3001\u57fa\u4e8e\u96c6\u5408\u7684\u4e66\u5199\u65b9\u6cd5\uff09\uff1a<\/p>\n
selector: \r\n matchLabels: #\u57fa\u4e8e\u7b49\u503c \r\n app: nginx \r\n matchExpressions: #\u57fa\u4e8e\u96c6\u5408 \r\n - {key: name,operator: In,values: [zhangsan,lisi]} #key\u3001operator\u3001values\u8fd9\u4e09\u4e2a\u5b57\u6bb5\u662f\u56fa\u5b9a\u7684 \r\n - {key: age,operator: Exists,values:} #\u5982\u679c\u6307\u5b9a\u4e3aexists\uff0c\u90a3\u4e48values\u7684\u503c\u4e00\u5b9a\u8981\u4e3a\u7a7a\r\n<\/pre>\n\u5341\u4e8c\u3001 \u5e38\u7528\u7684\u6807\u7b7e\u5206\u7c7b\u6709\u54ea\u4e9b\uff1f<\/strong><\/span><\/div>\n\u6807\u7b7e\u5206\u7c7b\u662f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7684\uff0c\u4f46\u662f\u4e3a\u4e86\u80fd\u4f7f\u4ed6\u4eba\u53ef\u4ee5\u8fbe\u5230\u4e00\u76ee\u4e86\u7136\u7684\u6548\u679c\uff0c\u4e00\u822c\u4f1a\u4f7f\u7528\u4ee5\u4e0b\u4e00\u4e9b\u5206\u7c7b\uff1a<\/p>\n
\u7248\u672c\u7c7b\u6807\u7b7e\uff08release\uff09\uff1astable\uff08\u7a33\u5b9a\u7248\uff09\u3001canary\uff08\u91d1\u4e1d\u96c0\u7248\u672c\uff0c\u53ef\u4ee5\u5c06\u5176\u79f0\u4e4b\u4e3a\u6d4b\u8bd5\u7248\u4e2d\u7684\u6d4b\u8bd5\u7248\uff09\u3001beta\uff08\u6d4b\u8bd5\u7248\uff09\uff1b
\n\u73af\u5883\u7c7b\u6807\u7b7e\uff08environment\uff09\uff1adev\uff08\u5f00\u53d1\uff09\u3001qa\uff08\u6d4b\u8bd5\uff09\u3001production\uff08\u751f\u4ea7\uff09\u3001op\uff08\u8fd0\u7ef4\uff09\uff1b
\n\u5e94\u7528\u7c7b\uff08app\uff09\uff1aui\u3001as\u3001pc\u3001sc\uff1b
\n\u67b6\u6784\u7c7b\uff08tier\uff09\uff1afrontend\uff08\u524d\u7aef\uff09\u3001backend\uff08\u540e\u7aef\uff09\u3001cache\uff08\u7f13\u5b58\uff09\uff1b
\n\u5206\u533a\u6807\u7b7e\uff08partition\uff09\uff1acustomerA\uff08\u5ba2\u6237A\uff09\u3001customerB\uff08\u5ba2\u6237B\uff09\uff1b
\n\u54c1\u63a7\u7ea7\u522b\uff08Track\uff09\uff1adaily\uff08\u6bcf\u5929\uff09\u3001weekly\uff08\u6bcf\u5468\uff09\u3002<\/p>\n
\u5341\u4e09\u3001 \u6709\u51e0\u79cd\u67e5\u770b\u6807\u7b7e\u7684\u65b9\u5f0f\uff1f<\/strong><\/div>\n\u7b54\uff1a\u5e38\u7528\u7684\u6709\u4ee5\u4e0b\u4e09\u79cd\u67e5\u770b\u65b9\u5f0f\uff1a<\/p>\n
[root@master ~]# kubectl get pod --show-labels #\u67e5\u770bpod\uff0c\u5e76\u4e14\u663e\u793a\u6807\u7b7e\u5185\u5bb9 \r\n[root@master ~]# kubectl get pod -L env,tier #\u663e\u793a\u8d44\u6e90\u5bf9\u8c61\u6807\u7b7e\u7684\u503c \r\n[root@master ~]# kubectl get pod -l env,tier #\u53ea\u663e\u793a\u7b26\u5408\u952e\u503c\u8d44\u6e90\u5bf9\u8c61\u7684pod\uff0c\u800c\u201c-L\u201d\u662f\u663e\u793a\u6240\u6709\u7684pod\r\n<\/pre>\n\u5341\u56db\u3001 \u6dfb\u52a0\u3001\u4fee\u6539\u3001\u5220\u9664\u6807\u7b7e\u7684\u547d\u4ee4\uff1f<\/strong><\/div>\n#\u5bf9pod\u6807\u7b7e\u7684\u64cd\u4f5c \r\n[root@master ~]# kubectl label pod label-pod abc=123 #\u7ed9\u540d\u4e3alabel-pod\u7684pod\u6dfb\u52a0\u6807\u7b7e \r\n[root@master ~]# kubectl label pod label-pod abc=456 --overwrite #\u4fee\u6539\u540d\u4e3alabel-pod\u7684\u6807\u7b7e \r\n[root@master ~]# kubectl label pod label-pod abc- #\u5220\u9664\u540d\u4e3alabel-pod\u7684\u6807\u7b7e \r\n[root@master ~]# kubectl get pod --show-labels \r\n#\u5bf9node\u8282\u70b9\u7684\u6807\u7b7e\u64cd\u4f5c \r\n[root@master ~]# kubectl label nodes node01 disk=ssd #\u7ed9\u8282\u70b9node01\u6dfb\u52a0disk\u6807\u7b7e \r\n[root@master ~]# kubectl label nodes node01 disk=sss \u2013overwrite #\u4fee\u6539\u8282\u70b9node01\u7684\u6807\u7b7e \r\n[root@master ~]# kubectl label nodes node01 disk- #\u5220\u9664\u8282\u70b9node01\u7684disk\u6807\u7b7e\r\n<\/pre>\n\u5341\u4e94\u3001 DaemonSet\u8d44\u6e90\u5bf9\u8c61\u7684\u7279\u6027\uff1f<\/strong><\/div>\nDaemonSet\u8fd9\u79cd\u8d44\u6e90\u5bf9\u8c61\u4f1a\u5728\u6bcf\u4e2ak8s\u96c6\u7fa4\u4e2d\u7684\u8282\u70b9\u4e0a\u8fd0\u884c\uff0c\u5e76\u4e14\u6bcf\u4e2a\u8282\u70b9\u53ea\u80fd\u8fd0\u884c\u4e00\u4e2apod\uff0c\u8fd9\u662f\u5b83\u548cdeployment\u8d44\u6e90\u5bf9\u8c61\u7684\u6700\u5927\u4e5f\u662f\u552f\u4e00\u7684\u533a\u522b\u3002\u6240\u4ee5\uff0c\u5728\u5176yaml\u6587\u4ef6\u4e2d\uff0c\u4e0d\u652f\u6301\u5b9a\u4e49replicas\uff0c\u9664\u6b64\u4e4b\u5916\uff0c\u4e0eDeployment\u3001RS\u7b49\u8d44\u6e90\u5bf9\u8c61\u7684\u5199\u6cd5\u76f8\u540c\u3002<\/p>\n
\u5b83\u7684\u4e00\u822c\u4f7f\u7528\u573a\u666f\u5982\u4e0b\uff1a<\/p>\n
\u5728\u53bb\u505a\u6bcf\u4e2a\u8282\u70b9\u7684\u65e5\u5fd7\u6536\u96c6\u5de5\u4f5c\uff1b
\n\u76d1\u63a7\u6bcf\u4e2a\u8282\u70b9\u7684\u7684\u8fd0\u884c\u72b6\u6001\uff1b
\n\u5341\u516d\u3001 \u8bf4\u8bf4\u4f60\u5bf9Job\u8fd9\u79cd\u8d44\u6e90\u5bf9\u8c61\u7684\u4e86\u89e3\uff1f
\n\u7b54\uff1aJob\u4e0e\u5176\u4ed6\u670d\u52a1\u7c7b\u5bb9\u5668\u4e0d\u540c\uff0cJob\u662f\u4e00\u79cd\u5de5\u4f5c\u7c7b\u5bb9\u5668\uff08\u4e00\u822c\u7528\u4e8e\u505a\u4e00\u6b21\u6027\u4efb\u52a1\uff09\u3002\u4f7f\u7528\u5e38\u89c1\u4e0d\u591a\uff0c\u53ef\u4ee5\u5ffd\u7565\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n
#\u63d0\u9ad8Job\u6267\u884c\u6548\u7387\u7684\u65b9\u6cd5\uff1a \r\nspec: \r\n parallelism: 2 #\u4e00\u6b21\u8fd0\u884c2\u4e2a \r\n completions: 8 #\u6700\u591a\u8fd0\u884c8\u4e2a \r\n template: \r\nmetadata:\r\n<\/pre>\n\u5341\u4e03\u3001\u63cf\u8ff0\u4e00\u4e0bpod\u7684\u751f\u547d\u5468\u671f\u6709\u54ea\u4e9b\u72b6\u6001\uff1f<\/strong><\/div>\nPending\uff1a\u8868\u793apod\u5df2\u7ecf\u88ab\u540c\u610f\u521b\u5efa\uff0c\u6b63\u5728\u7b49\u5f85kube-scheduler\u9009\u62e9\u5408\u9002\u7684\u8282\u70b9\u521b\u5efa\uff0c\u4e00\u822c\u662f\u5728\u51c6\u5907\u955c\u50cf\uff1b
\nRunning\uff1a\u8868\u793apod\u4e2d\u6240\u6709\u7684\u5bb9\u5668\u5df2\u7ecf\u88ab\u521b\u5efa\uff0c\u5e76\u4e14\u81f3\u5c11\u6709\u4e00\u4e2a\u5bb9\u5668\u6b63\u5728\u8fd0\u884c\u6216\u8005\u662f\u6b63\u5728\u542f\u52a8\u6216\u8005\u662f\u6b63\u5728\u91cd\u542f\uff1b
\nSucceeded\uff1a\u8868\u793a\u6240\u6709\u5bb9\u5668\u5df2\u7ecf\u6210\u529f\u7ec8\u6b62\uff0c\u5e76\u4e14\u4e0d\u4f1a\u518d\u542f\u52a8\uff1b
\nFailed\uff1a\u8868\u793apod\u4e2d\u6240\u6709\u5bb9\u5668\u90fd\u662f\u975e0\uff08\u4e0d\u6b63\u5e38\uff09\u72b6\u6001\u9000\u51fa\uff1b
\nUnknown\uff1a\u8868\u793a\u65e0\u6cd5\u8bfb\u53d6Pod\u72b6\u6001\uff0c\u901a\u5e38\u662fkube-controller-manager\u65e0\u6cd5\u4e0ePod\u901a\u4fe1\u3002<\/p>\n
\u5341\u516b\u3001 \u521b\u5efa\u4e00\u4e2apod\u7684\u6d41\u7a0b\u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n\u5ba2\u6237\u7aef\u63d0\u4ea4Pod\u7684\u914d\u7f6e\u4fe1\u606f\uff08\u53ef\u4ee5\u662fyaml\u6587\u4ef6\u5b9a\u4e49\u597d\u7684\u4fe1\u606f\uff09\u5230kube-apiserver\uff1b
\nApiserver\u6536\u5230\u6307\u4ee4\u540e\uff0c\u901a\u77e5\u7ed9controller-manager\u521b\u5efa\u4e00\u4e2a\u8d44\u6e90\u5bf9\u8c61\uff1b
\nController-manager\u901a\u8fc7api-server\u5c06pod\u7684\u914d\u7f6e\u4fe1\u606f\u5b58\u50a8\u5230ETCD\u6570\u636e\u4e2d\u5fc3\u4e2d\uff1b
\nKube-scheduler\u68c0\u6d4b\u5230pod\u4fe1\u606f\u4f1a\u5f00\u59cb\u8c03\u5ea6\u9884\u9009\uff0c\u4f1a\u5148\u8fc7\u6ee4\u6389\u4e0d\u7b26\u5408Pod\u8d44\u6e90\u914d\u7f6e\u8981\u6c42\u7684\u8282\u70b9\uff0c\u7136\u540e\u5f00\u59cb\u8c03\u5ea6\u8c03\u4f18\uff0c\u4e3b\u8981\u662f\u6311\u9009\u51fa\u66f4\u9002\u5408\u8fd0\u884cpod\u7684\u8282\u70b9\uff0c\u7136\u540e\u5c06pod\u7684\u8d44\u6e90\u914d\u7f6e\u5355\u53d1\u9001\u5230node\u8282\u70b9\u4e0a\u7684kubelet\u7ec4\u4ef6\u4e0a\u3002
\nKubelet\u6839\u636escheduler\u53d1\u6765\u7684\u8d44\u6e90\u914d\u7f6e\u5355\u8fd0\u884cpod\uff0c\u8fd0\u884c\u6210\u529f\u540e\uff0c\u5c06pod\u7684\u8fd0\u884c\u4fe1\u606f\u8fd4\u56de\u7ed9scheduler\uff0cscheduler\u5c06\u8fd4\u56de\u7684pod\u8fd0\u884c\u72b6\u51b5\u7684\u4fe1\u606f\u5b58\u50a8\u5230etcd\u6570\u636e\u4e2d\u5fc3\u3002
\n[\/yiji]\u5341\u4e5d\u3001 \u5220\u9664\u4e00\u4e2aPod\u4f1a\u53d1\u751f\u4ec0\u4e48\u4e8b\u60c5\uff1f[\/yiji]
\n\u7b54\uff1aKube-apiserver\u4f1a\u63a5\u53d7\u5230\u7528\u6237\u7684\u5220\u9664\u6307\u4ee4\uff0c\u9ed8\u8ba4\u670930\u79d2\u65f6\u95f4\u7b49\u5f85\u4f18\u96c5\u9000\u51fa\uff0c\u8d85\u8fc730\u79d2\u4f1a\u88ab\u6807\u8bb0\u4e3a\u6b7b\u4ea1\u72b6\u6001\uff0c\u6b64\u65f6Pod\u7684\u72b6\u6001Terminating\uff0ckubelet\u770b\u5230pod\u6807\u8bb0\u4e3aTerminating\u5c31\u5f00\u59cb\u4e86\u5173\u95edPod\u7684\u5de5\u4f5c\uff1b<\/p>\n
\u5173\u95ed\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n
pod\u4eceservice\u7684endpoint\u5217\u8868\u4e2d\u88ab\u79fb\u9664\uff1b
\n\u5982\u679c\u8be5pod\u5b9a\u4e49\u4e86\u4e00\u4e2a\u505c\u6b62\u524d\u7684\u94a9\u5b50\uff0c\u5176\u4f1a\u5728pod\u5185\u90e8\u88ab\u8c03\u7528\uff0c\u505c\u6b62\u94a9\u5b50\u4e00\u822c\u5b9a\u4e49\u4e86\u5982\u4f55\u4f18\u96c5\u7684\u7ed3\u675f\u8fdb\u7a0b\uff1b
\n\u8fdb\u7a0b\u88ab\u53d1\u9001TERM\u4fe1\u53f7\uff08kill -14\uff09
\n\u5f53\u8d85\u8fc7\u4f18\u96c5\u9000\u51fa\u7684\u65f6\u95f4\u540e\uff0cPod\u4e2d\u7684\u6240\u6709\u8fdb\u7a0b\u90fd\u4f1a\u88ab\u53d1\u9001SIGKILL\u4fe1\u53f7\uff08kill -9\uff09\u3002<\/p>\n
\u4e8c\u5341\u3001 K8s\u7684Service\u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n\u7b54\uff1aPod\u6bcf\u6b21\u91cd\u542f\u6216\u8005\u91cd\u65b0\u90e8\u7f72\uff0c\u5176IP\u5730\u5740\u90fd\u4f1a\u4ea7\u751f\u53d8\u5316\uff0c\u8fd9\u4f7f\u5f97pod\u95f4\u901a\u4fe1\u548cpod\u4e0e\u5916\u90e8\u901a\u4fe1\u53d8\u5f97\u56f0\u96be\uff0c\u8fd9\u65f6\u5019\uff0c\u5c31\u9700\u8981Service\u4e3apod\u63d0\u4f9b\u4e00\u4e2a\u56fa\u5b9a\u7684\u5165\u53e3\u3002<\/p>\n
Service\u7684Endpoint\u5217\u8868\u901a\u5e38\u7ed1\u5b9a\u4e86\u4e00\u7ec4\u76f8\u540c\u914d\u7f6e\u7684pod\uff0c\u901a\u8fc7\u8d1f\u8f7d\u5747\u8861\u7684\u65b9\u5f0f\u628a\u5916\u754c\u8bf7\u6c42\u5206\u914d\u5230\u591a\u4e2apod\u4e0a<\/p>\n
\u4e8c\u5341\u4e00\u3001 k8s\u662f\u600e\u4e48\u8fdb\u884c\u670d\u52a1\u6ce8\u518c\u7684\uff1f<\/strong><\/div>\n\u7b54\uff1aPod\u542f\u52a8\u540e\u4f1a\u52a0\u8f7d\u5f53\u524d\u73af\u5883\u6240\u6709Service\u4fe1\u606f\uff0c\u4ee5\u4fbf\u4e0d\u540cPod\u6839\u636eService\u540d\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n
\u4e8c\u5341\u4e8c\u3001 k8s\u96c6\u7fa4\u5916\u6d41\u91cf\u600e\u4e48\u8bbf\u95eePod\uff1f<\/strong><\/div>\n\u7b54\uff1a\u53ef\u4ee5\u901a\u8fc7Service\u7684NodePort\u65b9\u5f0f\u8bbf\u95ee\uff0c\u4f1a\u5728\u6240\u6709\u8282\u70b9\u76d1\u542c\u540c\u4e00\u4e2a\u7aef\u53e3\uff0c\u6bd4\u5982\uff1a30000\uff0c\u8bbf\u95ee\u8282\u70b9\u7684\u6d41\u91cf\u4f1a\u88ab\u91cd\u5b9a\u5411\u5230\u5bf9\u5e94\u7684Service\u4e0a\u9762\u3002<\/p>\n
\u4e8c\u5341\u4e09\u3001 k8s\u6570\u636e\u6301\u4e45\u5316\u7684\u65b9\u5f0f\u6709\u54ea\u4e9b\uff1f<\/strong><\/div>\n\u7b54\uff1a<\/p>\n
1\uff09EmptyDir\uff08\u7a7a\u76ee\u5f55\uff09<\/strong><\/span><\/div>\n\u6ca1\u6709\u6307\u5b9a\u8981\u6302\u8f7d\u5bbf\u4e3b\u673a\u4e0a\u7684\u67d0\u4e2a\u76ee\u5f55\uff0c\u76f4\u63a5\u7531Pod\u5185\u90e8\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u4e0a\u3002\u7c7b\u4f3c\u4e8edocker\u4e2d\u7684manager volume\u3002<\/p>\n
\u4e3b\u8981\u4f7f\u7528\u573a\u666f\uff1a
\n\u53ea\u9700\u8981\u4e34\u65f6\u5c06\u6570\u636e\u4fdd\u5b58\u5728\u78c1\u76d8\u4e0a\uff0c\u6bd4\u5982\u5728\u5408\u5e76\/\u6392\u5e8f\u7b97\u6cd5\u4e2d\uff1b
\n\u4f5c\u4e3a\u4e24\u4e2a\u5bb9\u5668\u7684\u5171\u4eab\u5b58\u50a8\uff0c\u4f7f\u5f97\u7b2c\u4e00\u4e2a\u5185\u5bb9\u7ba1\u7406\u7684\u5bb9\u5668\u53ef\u4ee5\u5c06\u751f\u6210\u7684\u6570\u636e\u5b58\u5165\u5176\u4e2d\uff0c\u540c\u65f6\u7531\u540c\u4e00\u4e2awebserver\u5bb9\u5668\u5bf9\u5916\u63d0\u4f9b\u8fd9\u4e9b\u9875\u9762\u3002
\nemptyDir\u7684\u7279\u6027\uff1a
\n\u540c\u4e2apod\u91cc\u9762\u7684\u4e0d\u540c\u5bb9\u5668\uff0c\u5171\u4eab\u540c\u4e00\u4e2a\u6301\u4e45\u5316\u76ee\u5f55\uff0c\u5f53pod\u8282\u70b9\u5220\u9664\u65f6\uff0cvolume\u7684\u6570\u636e\u4e5f\u4f1a\u88ab\u5220\u9664\u3002\u5982\u679c\u4ec5\u4ec5\u662f\u5bb9\u5668\u88ab\u9500\u6bc1\uff0cpod\u8fd8\u5728\uff0c\u5219\u4e0d\u4f1a\u5f71\u54cdvolume\u4e2d\u7684\u6570\u636e\u3002<\/p>\n
\u603b\u7ed3\u6765\u8bf4\uff1aemptyDir\u7684\u6570\u636e\u6301\u4e45\u5316\u7684\u751f\u547d\u5468\u671f\u548c\u4f7f\u7528\u7684pod\u4e00\u81f4\u3002\u4e00\u822c\u662f\u4f5c\u4e3a\u4e34\u65f6\u5b58\u50a8\u4f7f\u7528\u3002<\/p>\n
2\uff09Hostpath<\/strong><\/span><\/div>\n\u5c06\u5bbf\u4e3b\u673a\u4e0a\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u6216\u6587\u4ef6\u6302\u8f7d\u5230\u5bb9\u5668\u5185\u90e8\u3002\u7c7b\u4f3c\u4e8edocker\u4e2d\u7684bind mount\u6302\u8f7d\u65b9\u5f0f\u3002<\/p>\n
\u8fd9\u79cd\u6570\u636e\u6301\u4e45\u5316\u65b9\u5f0f\uff0c\u8fd0\u7528\u573a\u666f\u4e0d\u591a\uff0c\u56e0\u4e3a\u5b83\u589e\u52a0\u4e86pod\u4e0e\u8282\u70b9\u4e4b\u95f4\u7684\u8026\u5408\u3002<\/p>\n
\u4e00\u822c\u5bf9\u4e8ek8s\u96c6\u7fa4\u672c\u8eab\u7684\u6570\u636e\u6301\u4e45\u5316\u548cdocker\u672c\u8eab\u7684\u6570\u636e\u6301\u4e45\u5316\u4f1a\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u81ea\u884c\u53c2\u8003apiService\u7684yaml\u6587\u4ef6\uff0c\u4f4d\u4e8e\uff1a\/etc\/kubernetes\/main\u2026\u76ee\u5f55\u4e0b\u3002<\/p>\n
3\uff09PersistentVolume\uff08\u7b80\u79f0PV\uff09<\/strong><\/span><\/div>\n\u57fa\u4e8eNFS\u670d\u52a1\u7684PV\uff0c\u4e5f\u53ef\u4ee5\u57fa\u4e8eGFS\u7684PV\u3002\u5b83\u7684\u4f5c\u7528\u662f\u7edf\u4e00\u6570\u636e\u6301\u4e45\u5316\u76ee\u5f55\uff0c\u65b9\u4fbf\u7ba1\u7406\u3002<\/p>\n
\u5728\u4e00\u4e2aPV\u7684yaml\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u5bf9\u5176\u914d\u7f6ePV\u7684\u5927\u5c0f\uff0c\u6307\u5b9aPV\u7684\u8bbf\u95ee\u6a21\u5f0f\uff1a<\/p>\n
ReadWriteOnce\uff1a\u53ea\u80fd\u4ee5\u8bfb\u5199\u7684\u65b9\u5f0f\u6302\u8f7d\u5230\u5355\u4e2a\u8282\u70b9\uff1b
\nReadOnlyMany\uff1a\u80fd\u4ee5\u53ea\u8bfb\u7684\u65b9\u5f0f\u6302\u8f7d\u5230\u591a\u4e2a\u8282\u70b9\uff1b
\nReadWriteMany\uff1a\u80fd\u4ee5\u8bfb\u5199\u7684\u65b9\u5f0f\u6302\u8f7d\u5230\u591a\u4e2a\u8282\u70b9\u3002\u4ee5\u53ca\u6307\u5b9apv\u7684\u56de\u6536\u7b56\u7565\uff1a
\nrecycle\uff1a\u6e05\u9664PV\u7684\u6570\u636e\uff0c\u7136\u540e\u81ea\u52a8\u56de\u6536\uff1b
\nRetain\uff1a\u9700\u8981\u624b\u52a8\u56de\u6536\uff1b
\ndelete\uff1a\u5220\u9664\u4e91\u5b58\u50a8\u8d44\u6e90\uff0c\u4e91\u5b58\u50a8\u4e13\u7528\uff1b
\nPS\uff1a\u8fd9\u91cc\u7684\u56de\u6536\u7b56\u7565\u6307\u7684\u662f\u5728PV\u88ab\u5220\u9664\u540e\uff0c\u5728\u8fd9\u4e2aPV\u4e0b\u6240\u5b58\u50a8\u7684\u6e90\u6587\u4ef6\u662f\u5426\u5220\u9664\uff09\u3002<\/p>\n
\u82e5\u9700\u4f7f\u7528PV\uff0c\u90a3\u4e48\u8fd8\u6709\u4e00\u4e2a\u91cd\u8981\u7684\u6982\u5ff5\uff1aPVC\uff0cPVC\u662f\u5411PV\u7533\u8bf7\u5e94\u7528\u6240\u9700\u7684\u5bb9\u91cf\u5927\u5c0f\uff0cK8s\u96c6\u7fa4\u4e2d\u53ef\u80fd\u4f1a\u6709\u591a\u4e2aPV\uff0cPVC\u548cPV\u82e5\u8981\u5173\u8054\uff0c\u5176\u5b9a\u4e49\u7684\u8bbf\u95ee\u6a21\u5f0f\u5fc5\u987b\u4e00\u81f4\u3002\u5b9a\u4e49\u7684storageClassName\u4e5f\u5fc5\u987b\u4e00\u81f4\uff0c\u82e5\u7fa4\u96c6\u4e2d\u5b58\u5728\u76f8\u540c\u7684\uff08\u540d\u5b57\u3001\u8bbf\u95ee\u6a21\u5f0f\u90fd\u4e00\u81f4\uff09\u4e24\u4e2aPV\uff0c\u90a3\u4e48PVC\u4f1a\u9009\u62e9\u5411\u5b83\u6240\u9700\u5bb9\u91cf\u63a5\u8fd1\u7684PV\u53bb\u7533\u8bf7\uff0c\u6216\u8005\u968f\u673a\u7533\u8bf7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u7b54\uff1aKubenetes\u662f\u4e00\u4e2a\u9488\u5bf9\u5bb9\u5668\u5e94\u7528\uff0c\u8fdb\u884c\u81ea\u52a8\u90e8\u7f72\uff0c\u5f39\u6027\u4f38\u7f29\u548c\u7ba1\u7406\u7684\u5f00\u6e90\u7cfb\u7edf\u3002\u4e3b\u8981\u529f\u80fd\u662f\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u5bb9\u5668\u7f16 […]<\/p>\n","protected":false},"author":1469,"featured_media":240702,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-240699","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/240699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=240699"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/240699\/revisions"}],"predecessor-version":[{"id":240829,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/240699\/revisions\/240829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/240702"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=240699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=240699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=240699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}