{"id":498,"date":"2020-02-17T16:39:26","date_gmt":"2020-02-17T08:39:26","guid":{"rendered":"https:\/\/www.yinyubo.cn\/?p=498"},"modified":"2022-05-17T09:41:53","modified_gmt":"2022-05-17T01:41:53","slug":"k8s-5","status":"publish","type":"post","link":"https:\/\/www.yinyubo.com\/?p=498","title":{"rendered":"\u6253\u9020K8S\u4e0eJenkins\u7684\u6301\u7eed\u96c6\u6210\u7cfb\u7edf-CI\u90e8\u5206"},"content":{"rendered":"<h1>\u8bf4\u660e<\/h1>\n<p>\u6301\u7eed\u96c6\u6210\u7cfb\u7edf\u5305\u62ecCI\u548cCD\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u91cc\uff0c\u6211\u4eec\u53ea\u8ba8\u8bbaCI\u7684\u5b9e\u73b0\u3002\u5173\u4e8eK8S\uff0cJenkins\uff0c\u79c1\u6709\u4ed3\u5e93\u7684\u5b89\u88c5\u8fd9\u91cc\u4e0d\u8fdb\u884c\u8bf4\u660e\uff0c\u53ea\u8bb2\u89e3\u5982\u4f55\u5c06\u8fd9\u4e9b\u5de5\u5177\u7ec4\u5408\u5728\u4e00\u8d77\u3002<\/p>\n<h1>1.\u62e5\u6709\u4e00\u4e2aK8S\u96c6\u7fa4<\/h1>\n<p>\u6211\u7684\u73af\u5883\u662f6\u53f0\u865a\u62df\u673a\uff0c3\u53f0Master\uff0c3\u53f0Slaver\u3002\u5982\u4e0b\u56fe\u6240\u793a<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-515 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-1-1.png\" alt=\"\" width=\"207\" height=\"157\" \/><br \/>\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\u56fe\uff1a<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-516 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-2-3.png\" alt=\"\" width=\"351\" height=\"121\" \/><\/p>\n<h1>2.Jenkins\u4e2d\u5b89\u88c5\u597d\u4e86kubernetes\u63d2\u4ef6<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-517 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-3-2-1024x425.png\" alt=\"\" width=\"900\" height=\"374\" \/><br \/>\u5b89\u88c5\u597d\u4e4b\u540e\uff0c\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\uff0c\u80fd\u591f\u6dfb\u52a0kubernetes\u4fe1\u606f<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-518 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-4-1.png\" alt=\"\" width=\"477\" height=\"219\" \/><\/p>\n<h1 id=\"id-\u642d\u5efa\u57fa\u4e8eK8S\u7684JenkinsCI\u6d41\u6c34\u7ebf\u590d\u76d8-3.\u6839\u636eJenkins\u7684\u914d\u7f6e\u8981\u6c42\uff0c\u53bbK8S\u5e73\u53f0\u4e0a\u627e\u5230\u5bf9\u5e94\u7684\u4fe1\u606f\u3002\u586b\u5165Jenkins\u4e2d\">3.\u6839\u636eJenkins\u7684\u914d\u7f6e\u8981\u6c42\uff0c\u53bb\u81ea\u5df1\u7684K8S\u5e73\u53f0\u4e0a\u627e\u5230\u5bf9\u5e94\u7684\u4fe1\u606f\u3002\u586b\u5165Jenkins\u4e2d<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-499 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-11-1-1024x452.png\" alt=\"\" width=\"900\" height=\"397\" \/><br \/>\u6211\u4eec\u6839\u636e\u56fe\u4e2d\u7684\u8981\u6c42\uff0c\u53ef\u4ee5\u5728K8S\u91cc\u8fdb\u884c\u4e00\u4e2a\u4e2a\u7684\u67e5\u627e\u6211\u4eec\u60f3\u8981\u7684\u4fe1\u606f<\/p>\n<table class=\"confluenceTable tablesorter tablesorter-default\" role=\"grid\"><colgroup> <col \/> <col \/><\/colgroup>\n<thead>\n<tr class=\"tablesorter-headerRow\" role=\"row\">\n<th class=\"confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted\" tabindex=\"0\" role=\"columnheader\" scope=\"col\" data-column=\"0\" aria-disabled=\"false\" aria-sort=\"none\" aria-label=\"\u5b57\u6bb5: No sort applied, activate to apply an ascending sort\">\n<div class=\"tablesorter-header-inner\">\u5b57\u6bb5<\/div>\n<\/th>\n<th class=\"confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted\" tabindex=\"0\" role=\"columnheader\" scope=\"col\" data-column=\"1\" aria-disabled=\"false\" aria-sort=\"none\" aria-label=\"\u67e5\u627e\u65b9\u6cd5: No sort applied, activate to apply an ascending sort\">\n<div class=\"tablesorter-header-inner\">\u67e5\u627e\u65b9\u6cd5<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody aria-live=\"polite\" aria-relevant=\"all\">\n<tr role=\"row\">\n<td class=\"confluenceTd\">Kubernetes \u5730\u5740<\/td>\n<td class=\"confluenceTd\">\n<div class=\"content-wrapper\">IP\u5730\u5740\u662f\u5728keepalived\u91cc\u914d\u7f6e\u7684\u865a\u62dfIP<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-502 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-9-2.png\" alt=\"\" width=\"384\" height=\"607\" \/><br \/>\u5728\u642d\u5efak8S\u5e73\u53f0\u65f6\uff0c\u7528\u5230\u4e86haproxy\uff0c\u5f53\u65f6\u6307\u5411\u4e86**443\u7aef\u53e3<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-503 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-7.png\" alt=\"\" width=\"546\" height=\"105\" \/><\/div>\n<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\" colspan=\"1\">kubernetes\u540d\u79f0<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\u968f\u610f\u586b\u5199<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\">kubernetes\u547d\u540d\u7a7a\u95f4<\/td>\n<td class=\"confluenceTd\">\u9700\u8981\u5728K8S\u91cc\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\uff0c\u7136\u540e\u5728\u8fd9\u4e2a\u5730\u65b9\u4f7f\u7528<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\">\u51ed\u636e<\/td>\n<td class=\"confluenceTd\">\n<div class=\"content-wrapper\">1.\u8fdb\u5165K8S\u673a\u5668\u4e0a\uff0c\u8f93\u5165\u547d\u4ee4kubectl config view &#8211;minify &#8211;flatten\u67e5\u770b\u51ed\u636e<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-501 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-11-2.png\" alt=\"\" width=\"467\" height=\"649\" \/><br \/>2.\u628a\u51ed\u636e\u4fe1\u606f\u590d\u5236\u6210\u4e00\u4e2a\u6587\u4ef6<br \/><span class=\"confluence-embedded-file-wrapper confluence-embedded-manual-size\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-520 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-12.png\" alt=\"\" width=\"121\" height=\"106\" \/><\/span><br \/>3.\u5728Jenkins\u91cc\u4e0a\u4f20\u8fd9\u4e2a\u6587\u4ef6<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-521 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-10-2.png\" alt=\"\" width=\"727\" height=\"329\" \/><br \/>4.\u8fd9\u4e2a\u51ed\u636e\u4fe1\u606f\u5373\u53ef\u5728Jenkins\u914d\u7f6e\u91cc\u4f7f\u7528<\/div>\n<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\" colspan=\"1\">JENKINS\u5730\u5740<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\u914d\u7f6e\u672c\u6b21\u4f7f\u7528\u7684Jenkins\u7684url\u5373\u53ef<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\" colspan=\"1\">Pod Retention<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\u9009\u62e9Never\uff0cJenkins\u4efb\u52a1\u5b8c\u6210\u540e\u5c31\u5220\u9664pod<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"id-\u642d\u5efa\u57fa\u4e8eK8S\u7684JenkinsCI\u6d41\u6c34\u7ebf\u590d\u76d8-4.\u6dfb\u52a0\u79c1\u6709\u5bc6\u94a5\u7528\u4e8e\u62c9\u53d6\u6211\u4eec\u7684docker\u79c1\u6709\u955c\u50cf\">4.\u6dfb\u52a0\u79c1\u6709\u5bc6\u94a5\u7528\u4e8e\u62c9\u53d6\u6211\u4eec\u7684docker\u79c1\u6709\u955c\u50cf<\/h1>\n<pre class=\"table-wrap EnlighterJSRAW\" data-enlighter-language=\"golang\">\u5728K8S\u91cc\u8f93\u5165\u5982\u4e0b\u547d\u4ee4<br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">kubectl create secret docker-registry repo-k8s \\<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">-n k8s-jx \\<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">--docker-server='repo.local:5000' \\<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">--docker-username='<\/code><\/pre>\n<a class=\"external-link\" href=\"http:\/\/zhenwei.li\/\" rel=\"nofollow\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">zhenwei.li<\/code><\/a>\n<pre class=\"table-wrap EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">' \\<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">--docker-password='*******' \\<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">--docker-email='357244849@qq<\/code><\/pre>\n<a class=\"external-link\" href=\"http:\/\/sfere-elec.com\/\" rel=\"nofollow\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">.com<\/code><\/a>\n<pre class=\"table-wrap EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">'<\/code><\/pre>\n<h1 id=\"id-\u642d\u5efa\u57fa\u4e8eK8S\u7684JenkinsCI\u6d41\u6c34\u7ebf\u590d\u76d8-5.\u5728Jenkins\u91cc\u7f16\u5199\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u6d41\u6c34\u7ebf\u4efb\u52a1\u3002\u6765\u6d4b\u8bd5Jenkins\u662f\u5426\u53ef\u4ee5\u62c9\u8d77K8S\u7684\u8282\u70b9\uff0c\u4ea7\u751fpod\">5.\u5728Jenkins\u91cc\u7f16\u5199\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u6d41\u6c34\u7ebf\u4efb\u52a1\u3002\u6765\u6d4b\u8bd5Jenkins\u662f\u5426\u53ef\u4ee5\u62c9\u8d77K8S\u7684\u8282\u70b9\uff0c\u4ea7\u751fpod<\/h1>\n<p>5.1.\u4ecegithub\u4e0a\u6284\u4e00\u6bb5\u4ee3\u7801\u793a\u4f8b\u4e0b\u6765<a class=\"external-link\" href=\"https:\/\/github.com\/jenkinsci\/kubernetes-plugin\/blob\/master\/src\/test\/resources\/org\/csanchez\/jenkins\/plugins\/kubernetes\/pipeline\/jnlpWorkingDir.groovy\" rel=\"nofollow\">https:\/\/github.com\/jenkinsci\/kubernetes-plugin\/blob\/master\/src\/test\/resources\/org\/csanchez\/jenkins\/plugins\/kubernetes\/pipeline\/jnlpWorkingDir.groovy<\/a><\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_498715\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"lang:python decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">podTemplate(label:'jnlp-slave',cloud: 'kubernetes',containers: [\n    containerTemplate(name: 'busybox', image: 'nginx:latest', ttyEnabled: true)\n],imagePullSecrets:['secret\/repok8s']) {\n    node ('jnlp-slave') {\n        stage('Run') {\n            sh 'env | sort'\n            container('busybox') {\n                sh 'echo \"hello\"'\n                sh 'pwd'\n                sh 'ls'\n            }\n        }\n    }\n}<\/code><\/pre>\n<p>5.2\u521b\u5efa\u4e00\u4e2a\u6d41\u6c34\u7ebf\u4efb\u52a1<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-522 size-large\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-13-2-1024x393.png\" alt=\"\" width=\"900\" height=\"345\" \/><br \/>5.3\u8fd0\u884c\u8fd9\u4e2a\u6d41\u6c34\u7ebf\u4efb\u52a1\uff0c\u67e5\u770b\u7ed3\u679c<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-523 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-15.png\" alt=\"\" width=\"978\" height=\"511\" \/><br \/>5.4\u5728K8S\u4e0a\u8f93\u5165\u67e5\u627epod\u7684\u547d\u4ee4,\u5e94\u8be5\u4f1a\u53d1\u73b0\u6709\u4e00\u4e2apod\u88ab\u8fd0\u884c\u8d77\u6765\u4e86\uff0c\u540d\u5b57\u4e2d\u542b\u6709jnlp-slave\u7684\u5b57\u6837\uff0c2\/2\u8fd0\u884c\u4e24\u4e2a\u5bb9\u5668\uff0c\u4e00\u4e2a\u662fjnlp\u5bb9\u5668\uff0c\u4e00\u4e2a\u662fbusybox\u5bb9\u5668<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_248427\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"lang:python decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">kubectl get pods --all-namespaces -o wide\n<\/code><\/pre>\n<h1 id=\"id-\u642d\u5efa\u57fa\u4e8eK8S\u7684JenkinsCI\u6d41\u6c34\u7ebf\u590d\u76d8-6.\u5728\u4ee3\u7801\u4ed3\u5e93\u4e2d\u6dfb\u52a0CI\u6240\u9700\u8981\u7684Jenkinsfile\u548cBuildPod.yaml\u7b49\u6d41\u6c34\u7ebf\u6587\u4ef6\">6.\u5728\u4ee3\u7801\u4ed3\u5e93\u4e2d\u6dfb\u52a0CI\u6240\u9700\u8981\u7684Jenkinsfile\u548cBuildPod.yaml\u7b49\u6d41\u6c34\u7ebf\u6587\u4ef6<\/h1>\n<table class=\"confluenceTable tablesorter tablesorter-default\" role=\"grid\"><colgroup> <col \/> <col \/><\/colgroup>\n<thead>\n<tr class=\"tablesorter-headerRow\" role=\"row\">\n<th class=\"confluenceTh tablesorter-header sortableHeader tablesorter-headerDesc\" tabindex=\"0\" role=\"columnheader\" scope=\"col\" data-column=\"0\" aria-disabled=\"false\" aria-sort=\"descending\" aria-label=\"\u6587\u4ef6\u540d: Descending sort applied, activate to apply an ascending sort\">\n<div class=\"tablesorter-header-inner\">\u6587\u4ef6\u540d<\/div>\n<\/th>\n<th class=\"confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted\" tabindex=\"0\" role=\"columnheader\" scope=\"col\" data-column=\"1\" aria-disabled=\"false\" aria-sort=\"none\" aria-label=\"\u7528\u5904: No sort applied, activate to apply an ascending sort\">\n<div class=\"tablesorter-header-inner\">\u7528\u5904<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody aria-live=\"polite\" aria-relevant=\"all\">\n<tr role=\"row\">\n<td class=\"confluenceTd\" colspan=\"1\">sonar-project.properties<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\u5b9a\u4e49\u4ee3\u7801\u9700\u8981\u6267\u884c\u4ec0\u4e48\u8bed\u8a00\u7684\u626b\u63cf\uff0c\u54ea\u4e9b\u76ee\u5f55\u9700\u8981\u5254\u9664<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\" colspan=\"1\">JenkinsfileTag<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\u5b9a\u4e49\u6253tag\u64cd\u4f5c\u5bf9\u5e94\u7684\u6d41\u6c34\u7ebf\u884c\u4e3a<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\">Jenkinsfile<\/td>\n<td class=\"confluenceTd\">\u5b9a\u4e49\u4ee3\u7801\u63d0\u4ea4\u4e0e\u5408\u5e76\u7684\u6d41\u6c34\u7ebf\u884c\u4e3a<\/td>\n<\/tr>\n<tr role=\"row\">\n<td class=\"confluenceTd\" colspan=\"1\">BuildPod.yaml<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">K8S\u4ea7\u751f\u7684pod\u4e2d\uff0c\u5305\u542b\u54ea\u4e9b\u5bb9\u5668\uff0c\u5bb9\u5668\u7684\u73af\u5883\u53d8\u91cf\u7b49\u53c2\u6570\u8bbe\u7f6e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"id-\u642d\u5efa\u57fa\u4e8eK8S\u7684JenkinsCI\u6d41\u6c34\u7ebf\u590d\u76d8-7.BuildPod.yaml\u4e2d\u9700\u8981\u5305\u542b\u54ea\u4e9b\u5185\u5bb9\uff08\u4ee5\u524d\u7aef\u4ee3\u7801\u4e3e\u4f8b\uff09\">7.BuildPod.yaml\u4e2d\u9700\u8981\u5305\u542b\u54ea\u4e9b\u5185\u5bb9\uff08\u4ee5nodejs\u4ee3\u7801\u4e3e\u4f8b\uff09<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-505 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-16-2.png\" alt=\"\" width=\"919\" height=\"868\" \/><\/p>\n<h1 id=\"id-\u642d\u5efa\u57fa\u4e8eK8S\u7684JenkinsCI\u6d41\u6c34\u7ebf\u590d\u76d8-8.Jenkinsfile\u4e2d\u9700\u8981\u5305\u542b\u54ea\u4e9b\u5185\u5bb9\">8.Jenkinsfile\u4e2d\u9700\u8981\u5305\u542b\u54ea\u4e9b\u5185\u5bb9<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-506 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-18-1.png\" alt=\"\" width=\"969\" height=\"526\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-507 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-19.png\" alt=\"\" width=\"976\" height=\"767\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-508 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-20.png\" alt=\"\" width=\"986\" height=\"776\" \/><\/p>\n<h1>\u6700\u540e\u5728Jenkins\u91cc\u67e5\u770b\u8fd0\u884c\u6548\u679c<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-524 \" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-21.png\" alt=\"\" width=\"838\" height=\"498\" \/><br \/>\u00a0<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf4\u660e \u6301\u7eed\u96c6\u6210\u7cfb\u7edf\u5305\u62ecCI\u548cCD\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u91cc\uff0c\u6211\u4eec\u53ea\u8ba8\u8bbaCI\u7684\u5b9e\u73b0\u3002\u5173\u4e8eK8S\uff0cJenkins\uff0c\u79c1\u6709\u4ed3\u5e93\u7684\u5b89 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-k8s","category-sonarqube"],"_links":{"self":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=498"}],"version-history":[{"count":2,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/498\/revisions"}],"predecessor-version":[{"id":1078,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/498\/revisions\/1078"}],"wp:attachment":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}