{"id":534,"date":"2020-01-18T00:27:52","date_gmt":"2020-01-17T16:27:52","guid":{"rendered":"https:\/\/www.myway5.com\/?p=534"},"modified":"2023-07-05T21:34:38","modified_gmt":"2023-07-05T13:34:38","slug":"container-signal","status":"publish","type":"post","link":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/","title":{"rendered":"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349"},"content":{"rendered":"<h2>\u4e00\u3001\u95ee\u9898\u63cf\u8ff0<\/h2>\n<p>\u9879\u76ee\u4e2d\u4f7f\u7528\u4e86 argo \u5728 kubernetes \u96c6\u7fa4\u4e2d\u505a\u5de5\u4f5c\u6d41\u7684\u8c03\u5ea6\u3002argo \u63d0\u4f9b\u4e86\u5de5\u4f5c\u6d41\u7684\u505c\u6b62\u529f\u80fd\uff0c\u5176\u539f\u7406\u5927\u81f4\u662f\u68c0\u67e5\u6b63\u5728\u8fd0\u884c\u7684 Pod\uff0c\u5411\u8be5 Pod \u4e2d\u7684 wait \u5bb9\u5668\u53d1\u9001 USR2 \u4fe1\u53f7\uff0cwait \u5bb9\u5668\u6536\u5230 USR2 \u4fe1\u53f7\u540e\uff0c\u5728\u4e3b\u673a\u4e0a\u7684\u8c03\u7528 <code>docker kill --signal TERM main_container_id<\/code> \u6765\u505c\u6b62\u6211\u4eec\u7684\u7a0b\u5e8f\u5bb9\u5668, \u5982\u679c 10s \u540e\u5bb9\u5668\u8fd8\u672a\u505c\u6b62\uff0c\u5219\u53d1\u9001 SIGKILL \u6765\u5f3a\u5236\u7ec8\u6b62\u3002\u4f46\u662f\u6211\u5728\u5b9e\u73b0 argo \u5de5\u4f5c\u6d41\u4e2d\u8c03\u5ea6 <code>tfjob<\/code> \u65f6\u51fa\u73b0\u4e86\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png\" alt=\"argo_scheduler_tfjob\" \/><\/p>\n<p>\u5728argo\u505c\u6b62\u5de5\u4f5c\u6d41\u65f6\uff0c\u6b63\u5728\u8fd0\u884c\u7684 step2 \u4e2d\u7684 manager \u76d1\u542c\u4e86 TERM \u4fe1\u53f7\uff0c\u4ee5\u4fbf\u5728\u5de5\u4f5c\u6d41\u505c\u6b62\u65f6\u540c\u6b65\u505c\u6b62 tfjob\u3002\u4f46\u662f\u4e8b\u5b9e\u60c5\u51b5\u5374\u662f manager \u9000\u51fa\u4e86\uff0c\u4f46\u662f\u6ca1\u6709\u6536\u5230\u4efb\u4f55\u7684 TERM \u4fe1\u53f7\u3002<\/p>\n<h2>\u4e8c\u3001\u95ee\u9898\u5256\u6790<\/h2>\n<p>\u68c0\u67e5\u8fd9\u4e2a\u95ee\u9898\u7684\u7b2c\u4e00\u6b65\u662f\u5f04\u6e05\u695a <code>docker kill<\/code> \u80cc\u540e\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u5b98\u7f51\u7684\u8d44\u6599\u4e2d\u6709\u4ee5\u4e0b\u7684\u63cf\u8ff0\uff1a<\/p>\n<blockquote><p>\n  Note: ENTRYPOINT and CMD in the shell form run as a subcommand of \/bin\/sh -c, which does not pass signals. This means that the executable is not the container\u2019s PID 1 and does not receive Unix signals.\n<\/p><\/blockquote>\n<p>\u5f53\u6211\u4eec\u7528 <code>sh<\/code> \u6267\u884c\u4e00\u6bb5 shell script \u65f6\uff0c\u5728 shell script \u4e2d\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684 PID \u4e0d\u662f1\uff0c\u5e76\u4e14 sh \u4e5f\u4e0d\u4f1a\u5e2e\u5fd9\u8f6c\u53d1 TERM \u4fe1\u53f7\uff0c\u5bfc\u81f4\u6211\u4eec\u7684\u53ef\u6267\u884c\u6587\u4ef6\u65e0\u6cd5\u63a5\u6536\u5230\u7ec8\u6b62\u4fe1\u53f7\uff0c\u5e76\u6267\u884c\u6e05\u7406\u903b\u8f91\u3002<\/p>\n<p>\u6211\u4eec\u7684 manager \u786e\u5b9e\u662f\u7528\u4e86\u4e00\u6bb5 shell script \u6765\u542f\u52a8\u7684\uff0c\u53ef\u80fd\u5c31\u662f\u56e0\u4e3a\u8fd9\u4e2a\u539f\u56e0\u5bfc\u81f4\u65e0\u6cd5\u6536\u5230 TERM \u4fe1\u53f7\u3002<\/p>\n<h2>\u4e09\u3001\u95ee\u9898\u590d\u73b0<\/h2>\n<p>\u6211\u5199\u4e86\u4e00\u6bb5\u5f88\u7b80\u5355\u7684 go \u7a0b\u5e8f\uff0c\u76d1\u542c\u4e86 TERM \u4fe1\u53f7\uff0c\u7136\u540e\u6253\u5370\u4e00\u6bb5\u6587\u5b57\u3002<\/p>\n<pre><code class=\"language-go line-numbers\">package main\n\nimport (\n    \"log\"\n    \"os\"\n    \"os\/signal\"\n    \"syscall\"\n)\n\nfunc main() {\n    sigs := make(chan os.Signal, 1)\n    signal.Notify(sigs, syscall.SIGTERM, syscall.SIGINT)\n\n    s, ok := &lt;-sigs\n    if !ok {\n        log.Println(\"\u4fe1\u53f7\u63a5\u6536\u51fa\u9519\")\n        os.Exit(1)\n    }\n\n    log.Println(\"\u6536\u5230\u4fe1\u53f7:\", s.String())\n}\n<\/code><\/pre>\n<p>\u6211\u7684 Dockerfile \u5982\u4e0b:<\/p>\n<pre><code class=\"language-Dockerfile line-numbers\">FROM alpine:latest\nLABEL maintainr=\"jiangpengfei &lt;jiangpengfei12@gmail.com&gt;\"\n\nCOPY main \/usr\/bin\/main\nCOPY run.sh \/usr\/bin\/run.sh\nRUN chmod +x \/usr\/bin\/main &amp;&amp; chmod +x \/usr\/bin\/run.sh\n\nCMD [\"sh\", \"-c\", \"\/usr\/bin\/run.sh\"]\n<\/code><\/pre>\n<p>run.sh \u5982\u4e0b:<\/p>\n<pre><code class=\"language-shell line-numbers\">#!\/bin\/sh\n\/usr\/bin\/main\n<\/code><\/pre>\n<p>\u6267\u884c\u8fd9\u4e2a\u5bb9\u5668\u540e\uff0c\u67e5\u770b\u5bb9\u5668\u5185\u7684\u8fdb\u7a0b\uff1a<\/p>\n<pre><code class=\"line-numbers\">PID   USER     TIME  COMMAND\n    1 root      0:00 {busybox} ash \/usr\/bin\/run.sh\n    6 root      0:00 \/usr\/bin\/main\n   12 root      0:00 sh\n   17 root      0:00 ps\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u53d1\u73b0\uff0c<code>run.sh<\/code> \u662f PID \u4e3a1, <code>main<\/code> \u7a0b\u5e8f\u662f6\u3002\u6b64\u65f6\u6211\u4eec\u4f7f\u7528 <code>docker kill --signal TERM main_container_id<\/code> \u6765\u505c\u6b62\u5bb9\u5668\uff0c\u53d1\u73b0\u786e\u5b9e\u662f\u6ca1\u6709\u53cd\u5e94\u7684\u3002\u56e0\u4e3a TERM \u4fe1\u53f7\u4f1a\u53d1\u9001\u7ed9 PID \u4e3a 1 \u7684\u8fdb\u7a0b\u3002\u540c\u65f6\u4e5f\u56e0\u4e3a sh \u4e0d\u54cd\u5e94 TERM \u4fe1\u53f7\uff0c\u4e5f\u4e0d\u4f1a\u8f6c\u53d1\u8be5\u4fe1\u53f7\u7ed9\u5b50\u8fdb\u7a0b\uff0c\u6240\u4ee5\u5bb9\u5668\u4e5f\u4e0d\u4f1a\u9000\u51fa\u3002\u5982\u679c\u6211\u4eec\u4f7f\u7528 <code>docker stop<\/code> \u9000\u51fa\u7684\u8bdd\uff0c\u4f1a\u53d1\u73b0\u5f88\u6162\uff0c\u8fd9\u662f\u56e0\u4e3a <code>docker stop<\/code> \u4f1a\u5c1d\u8bd5\u5148\u7528 TERM \u4fe1\u53f7\u6765\u7ec8\u6b62\u8fdb\u7a0b\uff0c\u4e00\u6bb5\u65f6\u95f4\u540e\u53d1\u73b0\u6ca1\u6709\u9000\u51fa\u7684\u8bdd\u518d\u4f7f\u7528 KILL \u4fe1\u53f7\u3002<\/p>\n<h2>\u56db\u3001\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>\u8fd9\u4e2a\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u6709\u5f88\u591a\uff0c\u8981\u4e48\u8ba9\u6211\u4eec\u7684\u7a0b\u5e8f\u8fdb\u7a0b\u6210\u4e3a PID 1\uff0c\u8981\u4e48\u8ba9 PID \u4e3a 1 \u7684\u8fdb\u7a0b\u8f6c\u53d1\u8fd9\u4e2a TERM \u4fe1\u53f7\u7ed9\u6211\u4eec\u7684\u5b50\u8fdb\u7a0b\u3002<\/p>\n<p><strong>\u65b9\u6cd5\u4e00: \u5728 shell script \u4e2d\u4f7f\u7528 exec<\/strong><\/p>\n<p>\u5c06\u6211\u4eec\u7684 <code>run.sh<\/code> \u6539\u6210\u5982\u4e0b:<\/p>\n<pre><code class=\"line-numbers\">#!\/bin\/sh\nexec \/usr\/bin\/main\n<\/code><\/pre>\n<p>\u7136\u540e\u518d\u67e5\u770b\u5bb9\u5668\u5185\u7684\u8fdb\u7a0b\u5217\u8868\uff1a<\/p>\n<pre><code class=\"line-numbers\">PID   USER     TIME  COMMAND\n    1 root      0:00 \/usr\/bin\/main\n   11 root      0:00 sh\n   16 root      0:00 ps\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u53d1\u73b0\uff0c<code>main<\/code> \u8fdb\u7a0b\u7684PID \u662f 1, \u6211\u4eec\u4f7f\u7528 <code>docker kill --signal TERM main_container_id<\/code> \u6765\u6740\u6b7b\u8fdb\u7a0b\uff0c\u51fa\u73b0\u5982\u4e0b\u6253\u5370\u8bed\u53e5\uff1a<\/p>\n<pre><code class=\"line-numbers\">2020\/01\/17 23:46:24 \u6536\u5230\u4fe1\u53f7: terminated\n<\/code><\/pre>\n<p>\u53ef\u89c1\uff0c<code>exec<\/code> \u53ef\u4ee5\u8ba9\u6211\u4eec\u7684 main \u8fdb\u7a0b\u6210\u4e3a PID \u4e3a 1, \u5173\u4e8e exec \u7684\u4f5c\u7528\u63cf\u8ff0\u5982\u4e0b:<\/p>\n<blockquote><p>\n  The exec() family of functions replaces the current process image with a new process image.\n<\/p><\/blockquote>\n<p>\u5373\u4f7f\u7528\u65b0\u8fdb\u7a0b\u7684\u955c\u50cf\u66ff\u6362\u5f53\u524d\u8fdb\u7a0b\u7684\u955c\u50cf\u6570\u636e\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aexec\u7cfb\u7edf\u8c03\u7528\u5e76\u6ca1\u6709\u521b\u5efa\u65b0\u7684\u8fdb\u7a0b\uff0c\u53ea\u662f\u66ff\u6362\u4e86\u539f\u6765\u8fdb\u7a0b\u4e0a\u4e0b\u6587\u7684\u5185\u5bb9\u3002\u539f\u8fdb\u7a0b\u7684\u4ee3\u7801\u6bb5\uff0c\u6570\u636e\u6bb5\uff0c\u5806\u6808\u6bb5\u88ab\u65b0\u7684\u8fdb\u7a0b\u6240\u4ee3\u66ff\u3002\u8fd9\u6837\u6211\u4eec\u7684 main \u8fdb\u7a0b\u5c31\u987a\u5229\u6210\u7ae0\u7684\u66ff\u6362\u4e86 sh \u8fdb\u7a0b\u6210\u4e3a PID \u4e3a 1 \u7684\u8fdb\u7a0b\u4e86\u3002<\/p>\n<p><strong>\u65b9\u6cd5\u4e8c: \u76f4\u63a5\u4f7f\u7528 main \u4f5c\u4e3a\u955c\u50cf\u5165\u53e3<\/strong><\/p>\n<p>\u8fd9\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u4e86\uff0c\u4f46\u662f\u5f88\u591a\u65f6\u5019\u4f1a\u6709\u9650\u5236\uff0c\u56e0\u4e3a\u6211\u4eec\u5e0c\u671b\u5728 shell script \u4e2d\u5199\u4e00\u4e9b\u903b\u8f91\u6765\u8c03\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u65b9\u6cd5\u4e09: \u501f\u52a9\u7b2c\u4e09\u65b9\u7a0b\u5e8f<\/strong><\/p>\n<p>\u4e00\u4e9b\u7b2c\u4e09\u65b9\u7684\u7a0b\u5e8f\u4e13\u95e8\u63d0\u4f9b\u4e86\u8fd9\u6837\u7684\u4f5c\u7528\uff0c\u4ee5\u5b83\u4eec\u4f5c\u4e3a\u542f\u52a8\u7684\u5165\u53e3\uff0c\u8fd9\u4e9b\u7b2c\u4e09\u65b9\u7a0b\u5e8f\u4f1a watch \u6240\u6709\u5b83\u4ea7\u751f\u7684\u5b50\u8fdb\u7a0b\uff0c\u5728\u8fd9\u4e9b\u5b50\u8fdb\u7a0b\u9000\u51fa\u540e\u81ea\u52a8\u9000\u51fa\uff0c\u5e76\u4e14\u5728\u5176\u6536\u5230 TERM \u4fe1\u53f7\u540e\u53d1\u9001\u7ed9\u5b50\u8fdb\u7a0b\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u7528 <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/github.com\/insidewhy\/smell-baron\"><code>smell-baron<\/code><\/a> \u8fd9\u4e2a\u5e94\u7528\u4f5c\u4e3a\u4f8b\u5b50<\/p>\n<p>\u4fee\u6539 Dockerfile:<\/p>\n<pre><code class=\"line-numbers\">FROM alpine:latest\nLABEL maintainr=\"jiangpengfei &lt;jiangpengfei12@gmail.com&gt;\"\n\nCOPY main \/usr\/bin\/main\nCOPY run.sh \/usr\/bin\/run.sh\nRUN chmod +x \/usr\/bin\/main &amp;&amp; chmod +x \/usr\/bin\/run.sh\nRUN wget -O \/usr\/bin\/smell-baron https:\/\/github.com\/insidewhy\/smell-baron\/releases\/download\/v0.4.2\/smell-baron.musl &amp;&amp; chmod +x \/usr\/bin\/smell-baron\n\nCMD [\"\/usr\/bin\/smell-baron\", \"\/usr\/bin\/run.sh\"]\n<\/code><\/pre>\n<p>\u67e5\u770b\u5bb9\u5668\u5185\u7684\u8fdb\u7a0b:<\/p>\n<pre><code class=\"line-numbers\">PID   USER     TIME  COMMAND\n    1 root      0:00 \/usr\/bin\/smell-baron \/usr\/bin\/run.sh\n    6 root      0:00 \/usr\/bin\/main\n   14 root      0:00 sh\n   19 root      0:00 ps\n<\/code><\/pre>\n<p>\u4f7f\u7528 <code>docker kill<\/code> \u53d1\u73b0 main \u6536\u5230\u4e86 TERM \u4fe1\u53f7\u3002<\/p>\n<blockquote><p>\n  1.Multiple commands can be run, smell-baron will exit when all the watched processes have exited.<\/p>\n<p>  2.Whether a spawned process is watched can be configured.<\/p>\n<p>  3.smell-baron can be told to signal all child processes on termination, this allows it to cleanly deal with processes that spawn a subprocess in a different process group then fail to clean it up on exit.\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u95ee\u9898\u63cf\u8ff0 \u9879\u76ee\u4e2d\u4f7f\u7528\u4e86 argo \u5728 kubernetes \u96c6\u7fa4\u4e2d\u505a\u5de5\u4f5c\u6d41\u7684\u8c03\u5ea6\u3002argo \u63d0\u4f9b\u4e86\u5de5\u4f5c\u6d41\u7684 &hellip; <a href=\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,97],"tags":[106],"class_list":["post-534","post","type-post","status-publish","format-standard","hentry","category-linux","category-container","tag-signal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349 - \u4e00\u53ea\u5b89\u9759\u7684\u732b<\/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.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u95ee\u9898\u63cf\u8ff0 \u9879\u76ee\u4e2d\u4f7f\u7528\u4e86 argo \u5728 kubernetes \u96c6\u7fa4\u4e2d\u505a\u5de5\u4f5c\u6d41\u7684\u8c03\u5ea6\u3002argo \u63d0\u4f9b\u4e86\u5de5\u4f5c\u6d41\u7684 &hellip; \u7ee7\u7eed\u9605\u8bfb\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-17T16:27:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-05T13:34:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png\" \/>\n<meta name=\"author\" content=\"jiangpengfei\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"jiangpengfei\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\"},\"author\":{\"name\":\"jiangpengfei\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"headline\":\"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349\",\"datePublished\":\"2020-01-17T16:27:52+00:00\",\"dateModified\":\"2023-07-05T13:34:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\"},\"wordCount\":177,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"image\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png\",\"keywords\":[\"signal\"],\"articleSection\":[\"linux\",\"\u5bb9\u5668\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\",\"url\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\",\"name\":\"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png\",\"datePublished\":\"2020-01-17T16:27:52+00:00\",\"dateModified\":\"2023-07-05T13:34:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage\",\"url\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png\",\"contentUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png\",\"width\":771,\"height\":441},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.myway5.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myway5.com\/#website\",\"url\":\"https:\/\/www.myway5.com\/\",\"name\":\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"description\":\"\u60f3\u5565\u5462\",\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myway5.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\",\"name\":\"jiangpengfei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"caption\":\"jiangpengfei\"},\"logo\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.myway5.com\/index.php\/author\/joyme\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","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.myway5.com\/index.php\/2020\/01\/18\/container-signal\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","og_description":"\u4e00\u3001\u95ee\u9898\u63cf\u8ff0 \u9879\u76ee\u4e2d\u4f7f\u7528\u4e86 argo \u5728 kubernetes \u96c6\u7fa4\u4e2d\u505a\u5de5\u4f5c\u6d41\u7684\u8c03\u5ea6\u3002argo \u63d0\u4f9b\u4e86\u5de5\u4f5c\u6d41\u7684 &hellip; \u7ee7\u7eed\u9605\u8bfb\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349","og_url":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/","og_site_name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","article_published_time":"2020-01-17T16:27:52+00:00","article_modified_time":"2023-07-05T13:34:38+00:00","og_image":[{"url":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png","type":"","width":"","height":""}],"author":"jiangpengfei","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"jiangpengfei","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#article","isPartOf":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/"},"author":{"name":"jiangpengfei","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"headline":"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349","datePublished":"2020-01-17T16:27:52+00:00","dateModified":"2023-07-05T13:34:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/"},"wordCount":177,"commentCount":0,"publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"image":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage"},"thumbnailUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png","keywords":["signal"],"articleSection":["linux","\u5bb9\u5668\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/","url":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/","name":"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","isPartOf":{"@id":"https:\/\/www.myway5.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage"},"image":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage"},"thumbnailUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png","datePublished":"2020-01-17T16:27:52+00:00","dateModified":"2023-07-05T13:34:38+00:00","breadcrumb":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#primaryimage","url":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png","contentUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/argo_scheduler_tfjob.png","width":771,"height":441},{"@type":"BreadcrumbList","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/18\/container-signal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.myway5.com\/"},{"@type":"ListItem","position":2,"name":"\u5bb9\u5668\u4e2d\u7a0b\u5e8f\u7684\u4fe1\u53f7\u6355\u6349"}]},{"@type":"WebSite","@id":"https:\/\/www.myway5.com\/#website","url":"https:\/\/www.myway5.com\/","name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","description":"\u60f3\u5565\u5462","publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myway5.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685","name":"jiangpengfei","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","caption":"jiangpengfei"},"logo":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.myway5.com\/index.php\/author\/joyme\/"}]}},"views":5832,"_links":{"self":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/comments?post=534"}],"version-history":[{"count":2,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/534\/revisions"}],"predecessor-version":[{"id":1558,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/534\/revisions\/1558"}],"wp:attachment":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media?parent=534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/categories?post=534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/tags?post=534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}