{"id":134828,"date":"2020-07-21T07:58:21","date_gmt":"2020-07-20T23:58:21","guid":{"rendered":"http:\/\/4563.org\/?p=134828"},"modified":"2020-07-21T07:58:21","modified_gmt":"2020-07-20T23:58:21","slug":"kubernates-configmap-%e5%92%8c-secret-%e9%81%87%e5%88%b0%e7%9a%84%e5%ae%9e%e9%99%85%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=134828","title":{"rendered":"kubernates ConfigMap \u548c Secret \u9047\u5230\u7684\u5b9e\u9645\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  kubernates ConfigMap \u548c Secret \u9047\u5230\u7684\u5b9e\u9645\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h2>\u95ee\u9898<\/h2>\n<p>ConfigMap \u4e3b\u8981\u7684\u7528\u6cd5\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u662f\u6302\u8f7d\u53d8\u6210\u73af\u5883\u53d8\u91cf\uff0c\u7b2c\u4e8c\u79cd\u662f\u6302\u8f7d\u53d8\u6210\u76ee\u5f55\u6216\u8005\u6587\u4ef6<\/p>\n<p>\u4f46\u662f\u5b9e\u9645\u8fd8\u6709\u4e00\u79cd\u60c5\u51b5\uff0c\u65e0\u6cd5\u8986\u76d6\u5230\uff0c\u90a3\u5c31\u662f\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\uff0c\u6709 N \u4e2a\u9879\u76ee\u5bf9\u5e94 N \u4e2a pod \u3002<\/p>\n<p>\u5047\u5982\u6211\u521b\u5efa\u4e00\u4e2a Secret\uff0c\u5176\u4e2d\u5305\u542b\u7ebf\u4e0a\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5730\u5740\u3001\u548c\u8d26\u53f7\u5bc6\u7801\u914d\u7f6e\u3002\uff08\u952e\u503c\u5bf9\u6620\u5c04\u65b9\u5f0f\uff09<\/p>\n<p>\u90a3\u4e48\u6211\u600e\u4e48\u628a\u5bf9\u5e94\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u914d\u7f6e\u66ff\u6362\u6210 Secret \u4e2d\u7684<\/p>\n<p>PS:\u53ef\u4ee5\u901a\u8fc7\u6302\u8f7d\u6587\u4ef6\u7684\u65b9\u5f0f\u8986\u76d6\u9879\u76ee\u914d\u7f6e\u6587\u4ef6\uff0c\u4f46\u662f\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\u4e0d\u80fd\u8fd9\u6837\u5b50\uff0c\u5047\u5982\u6211\u6709 N \u4e2a\u9879\u76ee\uff0c\u6211\u8981\u4fee\u6539\u6570\u636e\u5e93\u5bc6\u7801\uff0c\u4e0d\u53ef\u80fd\u6bcf\u4e2a\u9879\u76ee\u5bf9\u5e94\u7684 configmap \u90fd\u53bb\u4fee\u6539\u4e00\u904d\u8fd9\u4e2a\u6548\u7387\u592a\u4f4e\u4e86<\/p>\n<h2>\u65b9\u6848<\/h2>\n<p>\u6211\u60f3\u5230\u7684\u65b9\u5f0f\u662f\u5047\u5982 dockerfile \u4e2d\u7684 CMD \u547d\u4ee4\u662f\u542f\u52a8 catalina.sh \uff0c\u90a3\u4e48\u65b0\u5efa\u4e00\u4e2a sh \u811a\u672c\u6587\u4ef6\uff0c\u91cc\u9762\u5305\u542b\u8bfb\u53d6<\/p>\n<p>Secret \u73af\u5883\u53d8\u91cf\uff08\u6216\u8005\u8bfb\u53d6\u6302\u8f7d\u6587\u4ef6\uff09\u4e2d\u7684\u6570\u636e\u5e93\u914d\u7f6e\u4fe1\u606f\u7136\u540e\u66ff\u6362\u6389\u5bf9\u5e94\u7684\u9879\u76ee\u4e2d\u7684\u914d\u7f6e\uff0c\u518d\u542f\u52a8 catalina.sh \u3002<\/p>\n<p>PS\uff1apod yaml \u6587\u4ef6 containers \u4e2d\u7684 command \u6539\u6210\u65b0\u5efa\u7684 sh \u811a\u672c\u6587\u4ef6\uff08 command \u53ef\u4ee5\u8986\u76d6 dockerfile CMD \uff09<\/p>\n<h2>\u601d\u8003<\/h2>\n<p>\u4e0d\u6653\u5f97\u8fd8\u6709\u6ca1\u6709\u5176\u4ed6\u7684\u65b9\u5f0f\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>33<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2512141\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f8b\u5982\uff1a<br \/>spring boot \u9879\u76ee\uff0c\u914d\u7f6e\u6587\u4ef6\uff1aapplication.yml \uff0c\u914d\u7f6e\u6587\u4ef6\u4e2d\u5305\u542b\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\u3002<br \/>application.yml \u5355\u72ec\u521b\u5efa\u4e00\u4e2a configmap\uff0c\u7136\u540e\u8fdb\u884c\u6302\u8f7d\uff0c\u4f46\u662f\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\u8981\u5355\u72ec\u62bd\u79bb\u51fa\u6765\u521b\u5efa\u4e00\u4e2a configmap \u6216\u8005 secret \u7528\u4e8e\u516c\u7528\u3002\u8fd9\u6837\u8981\u4fee\u6539\u6570\u636e\u5e93\u914d\u7f6e\u7684\u65f6\u5019\u53ea\u9700\u8981\u4fee\u6539\u4e00\u4e2a configmap \u3002<br \/>\u4f46\u662f\u5982\u4f55\u628a configmap \u4e2d\u7684\u6570\u636e\u5e93\u914d\u7f6e\u4fe1\u606f\u8986\u76d6\u6389 application.yml \u4e2d\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512142\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Bromine0x23 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             spring boot \u7684\u8bdd\uff0c\u4e0d\u540c\u6570\u636e\u5e93\u7684\u914d\u7f6e\u5206\u5230\u4e0d\u540c\u7684 profile \u91cc\uff0c\u7136\u540e\u6309\u4f7f\u7528\u60c5\u51b5\u542f\u7528 profile \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512143\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Bromine0x23 \u6570\u636e\u5e93\u914d\u7f6e\u8981\u62bd\u79bb\u6210\u5355\u72ec\u7684 configmap\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u9879\u76ee\u90fd\u8981\u7528\u5230\uff0c\u4e5f\u4e0d\u662f\u6bcf\u4e2a\u9879\u76ee\u90fd\u662f spring boot                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512144\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yangbonis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u8bdd\uff0c\u4f1a\u7528 kubectl \u8bfb secret\uff0c\u8bfb configmap\uff0csed \u7ec4\u5408\u4e0b\u518d apply \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512145\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yangbonis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u4e0d\u5c31\u7ed9 k8s \u52a0\u4e2a configmap \u5d4c\u5957\u5f15\u7528\u7684\u529f\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512146\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : napsterwu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bd4\u5982\uff1aconfigMap \u91cc\u9762\u6709\u4e2a\u914d\u7f6e\u53eb profile\uff0c\u6302\u8f7d\u5230 \/etc\/config \u542f\u52a8\u811a\u672c\u8c03\u6574\u4e3a java -jar app.jar \u2014spring.profiles.active=$(cat \/etc\/config\/profile)\u3002yml \u91cc\u9762\u7684\u503c\u90fd\u53ef\u4ee5\u901a\u8fc7\u7ee7\u7eed\u2014 \u66ff\u6362\u6389                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512147\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : napsterwu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u591a\u53bb\u770b\u770b\u817e\u8baf\u4e91 tke \u7684\u6587\u6863\uff0c\u6bd4\u8f83\u5b8c\u5584                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512148\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : calmzhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             configMap \u6ce8\u5165\u73af\u5883\u53d8\u91cf\uff0c\u7136\u540e\u5728 springboot \u7684 application.yml \u76f4\u63a5\u914d\u7f6e\u8bfb\u73af\u5883\u53d8\u91cf\u5e94\u8be5\u53ef\u4ee5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512149\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Bromine0x23 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dunhanson \u5176\u5b9e\u6211\u6ca1\u770b\u61c2\u95ee\u9898\u5230\u5e95\u5728\u54ea\uff0c\u5982\u679c\u8bf4\u662f\u590d\u7528\u95ee\u9898\u7684\u8bdd\uff0c\u53ef\u4ee5\u7528\u4e00\u4e2a configmap\/secret\uff0c\u5404\u4e2a\u90e8\u7f72\u81ea\u5df1\u62e3\u9009\u9700\u8981\u7684\u914d\u7f6e\u9879\u5bfc\u5165\u73af\u5883\u53d8\u91cf                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512150\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yangbonis                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512151\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @napsterwu \u6211\u7684\u610f\u601d\u66ff\u6362 yml \u4e2d\u7684\u914d\u7f6e\u6587\u4ef6\u9700\u8981\u81ea\u5df1\u5355\u72ec\u5199\u811a\u672c\u6765\u5b8c\u6210\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512152\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @calmzhu \u6211\u53ea\u662f\u4e3e\u4f8b\u5b50 spring boot\uff0c\u4e5f\u6709\u5176\u5b83\u975e spring boot \u9879\u76ee                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512153\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Bromine0x23 \u5bfc\u5165\u73af\u5883\u53d8\u91cf\u6211\u77e5\u9053\uff0c\u4f46\u662f\u8fd8\u9700\u8981\u628a\u201c\u73af\u5883\u53d8\u91cf\u4e2d\u7684\u914d\u7f6e\u4fe1\u606f\u201d\u8986\u76d6\u201c\u5bf9\u5e94\u9879\u76ee\u4e2d\u7684\u914d\u7f6e\u6587\u4ef6\u4fe1\u606f\u201d\uff0c\u8fd9\u4e00\u6b65\u4e0d\u592a\u6e05\u695a\u6709\u54ea\u4e9b\u65b9\u5f0f\u53ef\u4ee5\u8fbe\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512154\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : calmzhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dunhanson <br \/>\u5176\u4ed6\u7684\u4ee3\u7801\u7c7b\u578b\u7684\u8bdd\uff0c\u53ef\u80fd\u90fd\u662f\u5bf9\u4ee3\u7801\u6709\u4fb5\u5165\u4e86\u3002<br \/>\u963f\u6ce2\u7f57\u914d\u7f6e\u4e2d\u5fc3\u4e4b\u7c7b\uff0c\u4e0d\u8fc7\u7565\u91cd\u3002<br \/>\u5e10\u6237\u5bc6\u7801\u66f4\u65b0\u540e\uff0c\u600e\u4e48\u901a\u77e5\u4ee3\u7801\u91cd\u8f7d\u662f\u4e2a\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512155\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : calmzhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6216\u8005\uff0c\u6700\u7c97\u66b4\u7684\u65b9\u5f0f\u3002<br \/>\u628a\u6240\u6709 aksk\/\u5e10\u6237\u5bc6\u7801\u653e\u5728\u963f\u91cc\u4e91 \/aws\/\u81ea\u5efa valut \u4e4b\u7c7b\u7684\u5bc6\u7801\u7bb1\u91cc\u96c6\u6210\u5230\u53d1\u5e03\u5e73\u53f0\uff0c\u6bcf\u6b21\u9879\u76ee\u53d1\u5e03\u65f6\u901a\u8fc7 api \u62ff\u5230\u5e10\u6237\u5bc6\u7801\uff0c\u7136\u540e\u6b63\u5219\u66ff\u6362\u4ee3\u7801\u7684\u914d\u7f6e\u6587\u4ef6\u3002<br \/>\u597d\u5904\u5c31\u662f\u5bf9\u4ee3\u7801\u65e0\u4fb5\u5165\uff0c\u7f3a\u70b9\u5c31\u662f\u66f4\u65b0\u4e2a\u5e10\u6237\u5bc6\u7801\uff0c\u5168\u90e8\u91cd\u65b0\u53d1\u4e00\u904d\uff0c\u6709\u7684\u5e94\u7528\u53d1\u5230\u5410\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512156\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker \u7684\u90e8\u7f72\u65f6\u914d\u7f6e\u6807\u51c6\u5c31\u662f\u73af\u5883\u53d8\u91cf\uff0c\u4f60\u975e\u5f97\u95ee\u914d\u7f6e\u6587\u4ef6\uff0c\u90a3\u4f60\u81ea\u5df1\u5904\u7406\u53bb\u554a\uff0c\u4e0d\u884c\u4f60\u770b\u770b\u4f60\u7528\u7684\u6846\u67b6\u6709\u6ca1\u6709\u73af\u5883\u53d8\u91cf\u6216\u8005 secret \u652f\u6301\u554a\u3002<br \/>\u91cd\u8981\u4fe1\u606f\u653e\u73af\u5883\u53d8\u91cf\u4e0d\u5b89\u5168\uff0c\u4f60\u5199\u6587\u4ef6\u91cc\u9762\u5c31\u5b89\u5168\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512157\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : NaVient <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             K8S \u7684 secret \u54f2\u5b66\u5c31\u662f\u5bc6\u7801\u4e0d\u843d\u5730\uff0c\u5728 k8s master \u4e0a\u542f\u52a8\u4e00\u4e2a\u670d\u52a1\u8c03\u7528 K8S API \u66f4\u65b0 secret \u662f\u6700\u4f18\u89e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512158\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yuedingwangji <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4eec\u90fd\u662f\u4e00\u4e2a pod \u4e00\u4e2a cm \u6216 secret                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512159\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @calmzhu \u4e86\u89e3\uff0c\u8c22\u8c22\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512160\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @binux \u83ab\u6fc0\u52a8\uff0c\u6211\u53ea\u662f\u95ee\u4e0b\u6709\u6ca1\u6709\u66f4\u597d\u6216\u8005\u5176\u5b83\u7684\u65b9\u6cd5\u800c\u5df2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512161\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vhwwls <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nacos \u548c spring cloud config server \u4e4b\u7c7b\u7684\u9879\u76ee\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u8fd9\u79cd\u95ee\u9898\u5b58\u5728\u7684\u3002kubernetes \u81ea\u5df1\u63d0\u4f9b\u7684\u65b9\u5f0f\u53ea\u662f\u4e00\u4e2a\u8bbe\u8ba1\u7406\u5ff5\uff0c\u544a\u8bc9\u4f60\u53ef\u4ee5\u8fd9\u4e48\u5e72\uff0c\u662f\u4e0d\u662f\u6700\u4f18\u89e3\u8fd8\u662f\u8981\u81ea\u5df1\u6743\u8861\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512162\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : momocraft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4ec0\u4e48\u4e00\u5b9a\u8981\u7528\u914d\u7f6e\u6587\u4ef6\u5462<br \/>\u81ea\u5df1\u8981\u7528\u5c31\u81ea\u5df1\u89e3\u51b3\uff0csed+exec \u4e5f\u7b97\u4e00\u79cd\u89e3\u51b3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512163\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : YzSama <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u641e\u4e00\u4e2a \u914d\u7f6e\u4e2d\u5fc3\uff1f \u7136\u540e\u5e94\u7528\u53bb\u76d1\u542c\u914d\u7f6e\u548c\u81ea\u52a8\u91cd\u542f\u52a0\u8f7d\u914d\u7f6e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512164\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : momocraft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u80fd cat \u51fa\u4e00\u4e2a\u957f\u6a21\u677f\u518d exec \u66f4\u7701\u4e8b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512165\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 37Y37 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4eec\u5927\u6982\u662f\u8fd9\u6837\u7684\u65b9\u6848\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0b\uff1a<\/p>\n<p>&#8211; \u4ee3\u7801\u4e2d\u654f\u611f\u4fe1\u606f\u52a0\u5bc6\uff1a https:\/\/blog.ops-coffee.cn\/s\/dpgqiel4wcmgdqh1aeg4gw<br \/>&#8211; \u914d\u7f6e\u7ba1\u7406\u5229\u7528 etcd+confd\uff0ck8s \u7684 config map \u4e5f\u7528\u5230\u4e86 etcd\uff0c\u4f60\u53ef\u4ee5\u8003\u8651\u4e0b confd \u8fd9\u670d\u52a1\uff0c\u8fd8\u662f\u5f88\u597d\u7528\u7684\uff1a https:\/\/blog.ops-coffee.cn\/s\/uguvv4jl4yivnztuepdc8a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512166\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ypcs03 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/kubernetes\/kubernetes\/issues\/79224 \u5e94\u8be5\u4e0d\u4f1a native \u652f\u6301\u4e86<br \/>\u53ef\u4ee5\u8bd5\u8bd5 init container \u9884\u5904\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512167\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @momocraft \u4e0d\u600e\u4e48\u6298\u817e\u786e\u5b9e\u53ef\u4ee5\u7528 sed                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512168\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @YzSama \u55ef \uff0c\u4e0a\u9762\u6709\u4eba\u63d0\u5230\u963f\u6ce2\u7f57\uff0c\u51c6\u5907\u6709\u65f6\u95f4\u770b\u4e0b\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512169\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @37Y37 @ypcs03 \u597d\u7684\uff0c\u8c22\u8c22\uff0c\u6211\u4e86\u89e3\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512170\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : joesonw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 initContainer \u8dd1\u811a\u672c\u6ce8\u5165\u5457.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512171\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @joesonw \u5bf9\u7684\uff0c\u8fd9\u4e2a\u53c2\u6570\u53ef\u4ee5\u7528\u3002\u4e4b\u524d\u6ca1\u770b\u5230\u8fc7\uff0c\u4e13\u95e8\u8bb2 pod \u7ae0\u8282\u6ca1\u5199\u5230\u8fd9\u4e2a\u53c2\u6570\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512172\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : joesonw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dunhanson \u8981\u662f\u4e0d\u61d2\u7684\u8bdd, \u5199\u4e2a mutation-webhook-controller, \u81ea\u52a8\u6ce8\u5165 initContainer. <\/p>\n<p>\u6216\u8005 https:\/\/github.com\/dstreamcloud\/configmap-map-operator \u8fd9\u6211\u81ea\u7528\u7684, \u5408\u5e76 config-map, \u4e0d\u5acc\u5f03\u7684\u8bdd\u53ef\u4ee5\u7528\u4e00\u7528, \u5c31\u662f\u6ca1\u6587\u6863. \u4e0d\u8fc7\u662f\u7528\u7684 operator-framework \u5199\u7684, \u903b\u8f91\u90e8\u5206\u6781\u7b80, \u53ef\u4ee5\u770b\u4e00\u770b.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2512173\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dunhanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @joesonw                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>kubernates Config&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134828"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134828"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134828\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134828"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}