{"id":32990,"date":"2023-08-12T19:40:41","date_gmt":"2023-09-09T01:53:45","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/"},"modified":"2024-04-30T18:13:47","modified_gmt":"2024-04-30T10:13:47","slug":"carvel%e5%92%8cbosh","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/","title":{"rendered":"Carvel\u548cBOSH"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662f2022\u5e74TUNA-JP Advent Calendar\u6d3b\u52a8\u7684\u7b2c24\u5929\u5165\u9009\u4f5c\u54c1\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\u7531VMware\u4f5c\u4e3a\u4e3b\u8981\u8d5e\u52a9\u5546\u5f00\u53d1\u7684\u4e00\u7ec4\u5f00\u6e90\u8f6f\u4ef6\uff0c\u5b83\u662fCloud Native Computing Foundation\u4e0b\u7684\u4e00\u4e2aSandbox\u9879\u76ee\uff0c\u540d\u4e3aCarvel\u3002\u672c\u6587\u65e8\u5728\u63a2\u7a76\u8fd9\u79cd\u8f6f\u4ef6\u7fa4\u8bde\u751f\u7684\u80cc\u666f\uff0c\u5e76\u89e3\u91ca\u4e86\u4e0eKubernetes\u51fa\u73b0\u4e4b\u524d\u5b58\u5728\u7684\u5f00\u6e90\u8f6f\u4ef6\u9879\u76eeCloud Foundry BOSH\u7684\u8bbe\u8ba1\u7406\u5ff5\u548c\u5f00\u53d1\u6210\u5458\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u5927\u90e8\u5206\u5185\u5bb9\u90fd\u662f\u56de\u987e\u8fc7\u53bb\u7684\u7ecf\u5386\uff0c\u6ca1\u6709\u592a\u591a\u65b0\u9896\u7684\u5185\u5bb9\u3002\u4e3b\u8981\u662f\u4e00\u4e9b\u8001\u4eba\u4eec\u65e0\u804a\u7684\u5f80\u4e8b\u3002\u4f46\u662f\uff0c\u6211\u4f1a\u5728\u6700\u540e\u5199\u4e00\u70b9\u91cd\u8981\u7684\u4e8b\u60c5\uff0c\u8bf7\u6025\u9700\u7684\u8bfb\u8005\u76f4\u63a5\u9605\u8bfb\u8be5\u90e8\u5206\u3002<\/p>\n<h1>\u56de\u987e\u56db\u5e74\u524d\u7684\u5723\u8bde\u8282\u65e5\u5386\u6587\u7ae0<\/h1>\n<p>\u6211\u5c0dKubernetes\u9084\u4e0d\u592a\u4e86\u89e3\uff0c\u4e14\u6c92\u6709\u4efb\u4f55\u8f49\u8077\u7d93\u9a57\u3002\u6211\u6b63\u5728\u64b0\u5beb\u4e00\u7bc7\u540d\u70ba\u300aBOSH\u548c\u91cb\u653e\u5de5\u7a0b\u5e2b\u300b\u7684\u6587\u7ae0\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3072\u3068\u3064\u306eYAML\u3067\u4eee\u60f3\u30de\u30b7\u30f3\u30d9\u30fc\u30b9\u306e\u69d8\u3005\u306a\u5206\u6563\u30b7\u30b9\u30c6\u30e0\u3092\u5b9a\u7fa9\u3065\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b BOSH \u3068\u3044\u3046\u3082\u306e\u304c\u3001\u78ba\u56fa\u305f\u308b\u7406\u5ff5\u306e\u3082\u3068\u3067\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001Cloud Foundry \u3068\u3044\u3046\u975e\u5e38\u306b\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u69cb\u7bc9\u3068\u904b\u7528\u3092\u652f\u3048\u3066\u3044\u308b\u3053\u3068\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u6642\u4ee3\u306f\u6d41\u308c\u3001\u4eca\u3067\u306f Kubernetes \u3092\u30b3\u30f3\u30c6\u30ca\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u3057\u3066\u305d\u306e\u4e0a\u3067\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u3068\u904b\u7528\u304c\u5f53\u305f\u308a\u524d\u3068\u306a\u308a\u307e\u3057\u305f\u3002YAML\u306b\u3088\u3063\u3066\u30b3\u30f3\u30c6\u30ca\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3092\u5b9a\u7fa9\u3065\u3051\u308b\u3053\u3068\u3082\u304b\u306a\u308a\u5f53\u305f\u308a\u524d\u306b\u306a\u308a\u3001\u3055\u3089\u306b Terraform \u306a\u3069\u306e Infrastructure as Code \u3092\u652f\u3048\u308b\u30c4\u30fc\u30eb\u3082\u3044\u3088\u3044\u3088\u666e\u53ca\u3057\u3066\u304d\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u3001\u3082\u306f\u3084BOSH\u3092\u63a8\u3057\u3066\u304f\u4e16\u306e\u4e2d\u3067\u3082\u306a\u3044\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6700\u8fd1\u3067\u306f\u3001YAML \u3084 HCL \u306a\u3069\u3092 Git \u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u683c\u7d0d\u3057\u3066 source of truth \u3068\u3057\u3001\u305d\u306e\u5909\u66f4\u3092\u5951\u6a5f\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a4\u30f3\u30d5\u30e9\u3092\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3057\u3066\u3086\u304f\u7d99\u7d9a\u7684\u30c7\u30ea\u30d0\u30ea\u30fc(CD)\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3067\u3042\u308b GitOps \u3092\u3001\u904b\u7528\u306e\u7701\u529b\u5316\u3084\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u9ad8\u901f\u5316\u306e\u6587\u8108\u3067\u5b9f\u8df5\u3057\u3066\u3044\u308b\u7686\u3055\u3093\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h1>Kubernetes \u548c\u53d1\u5e03\u5de5\u7a0b<\/h1>\n<p>\u5728\u300aBOSH\u548c\u53d1\u5e03\u5de5\u7a0b\u300b\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u4f20\u8fbe\u4e86\u4e00\u4e2a\u89c2\u70b9\uff0c\u5373\u8003\u8651\u73b0\u4ee3\u5316\u7684\u53d1\u5e03\u5de5\u7a0b\u65f6\uff0c\u56e0\u4e3aBOSH\u53ef\u4ee5\u5f88\u597d\u5730\u5904\u7406\u8fd9\u4e9b\u95ee\u9898\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u653e\u5fc3\u5730\u4f7f\u7528BOSH\uff01<\/p>\n<p>\u3067\u306f\u3001\u4eca\u308f\u308c\u308f\u308c\u304c\u3088\u3046\u3084\u304f\u4f7f\u3044\u6163\u308c\u305f Kubernetes \u306f\u3001BOSH \u306b\u3088\u3063\u3066\u5b9f\u73fe\u3055\u308c\u3066\u3044\u305f\u30ea\u30ea\u30fc\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u306e\u5404\u8981\u7d20\u3092\u3069\u3053\u307e\u3067\u6e80\u305f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d150837434c4406bfd391\/9-0.com\/3293bf2b051ed7833992390b4e191c78c0faa6dd\/68747470733a2f2f676973742e6769746875622e636f6d2f6f7a7a6f7a7a2f32336239343164346534363838313065643036666437356436643431336364342f7261772f736c69646531322e706e67\" alt=\"BOSH\u306e\u8a2d\u8a08\u7406\u5ff5\" \/><\/div>\n<p>\u6700\u521d\u770b\u8d77\u6765\uff0c\u4f7f\u7528Kubernetes \u53ef\u4ee5\u6ee1\u8db3\u5f88\u5927\u90e8\u5206\u9700\u6c42\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Kubernetes \u3067\u306f\u3001\u3072\u3068\u3064\u307e\u305f\u306f\u8907\u6570\u306eYAML\u306b\u3088\u3063\u3066\u30b3\u30f3\u30c6\u30ca\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3092\u7d71\u5408\u7684\u306b\u5b9a\u7fa9\u3065\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001Identifiability \u3068 Reproduciability \u3092\u6e80\u8db3\u3057\u3066\u3044\u308b\uff01<\/ul>\n<\/li>\n<\/ul>\n<p>\u30aa\u30ec\u305f\u3061\u306b\u306f\u624b\u5869\u306b\u304b\u3051\u3066\u66f8\u304d\u4e0a\u3052\u305fYAML\u304c\u3042\u308b\u3002\u3053\u308c\u3055\u3048\u3042\u308c\u3070\u3001\u3069\u3093\u306a Kubernetes \u30af\u30e9\u30b9\u30bf\u3067\u3082\u3001\u5168\u304f\u540c\u3058\u69cb\u6210\u3067\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3092\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\uff01<\/p>\n<p>kubectl apply \u30b3\u30de\u30f3\u30c9\u306b\u306f\u51aa\u7b49\u6027\u304c\u3042\u308a\u3001YAML\u3092\u3046\u307e\u3044\u3053\u3068\u6574\u3048\u3066\u304a\u304d\u3055\u3048\u3059\u308c\u3070\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3060\u3051\u3067\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u65b0\u898f\u30c7\u30d7\u30ed\u30a4\u3082\u66f4\u65b0\u3082\u3067\u304d\u308b\u306e\u3067\u3001Consistency \u3068 Agility \u3092\u6e80\u8db3\u3057\u3066\u3044\u308b\uff01<\/p>\n<p>\u4ffa\u305f\u3061\u306f\u3082\u306f\u3084\u3001kubectl create \u3084\u3089 kubectl patch \u3084\u3089\u3001\u305d\u3046\u3044\u3046\u624b\u7d9a\u304d\u7684\u306a\u904b\u7528\u3092\u3057\u3066\u3044\u306a\u3044\u3002\u30aa\u30ec\u305f\u3061\u306b\u306f\u624b\u5869\u306b\u304b\u3051\u3066\u66f8\u304d\u4e0a\u3052\u305fYAML\u304c\u3042\u308b\u3002\u3053\u3044\u3064\u3092\u66f4\u65b0\u3057\u305f\u3089\u3001\u5fc5\u305a kubectl apply \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u53cd\u6620\u3055\u305b\u308b\u3053\u3068\u3067\u5ba3\u8a00\u7684\u306a\u904b\u7528\u3092\u5b9f\u73fe\u3001\u51aa\u7b49\u6027\u3082\u30d0\u30c3\u30c1\u30ea\u3084\uff01<\/p>\n<p>\u8fd9\u4e9b\u662f\u771f\u7684\u5417\uff1f<\/p>\n<h1>\u5728 Kubernetes \u4e2d\u4ecd\u5b58\u5728\u7684\u53d1\u5e03\u5de5\u7a0b\u95ee\u9898<\/h1>\n<p>\u8ba9\u6211\u4eec\u8003\u8651\u4e0b\u9762\u5c55\u793a\u7684\u4e24\u79cd\u60c5\u51b5\u3002\u4f3c\u4e4e\u4ec5\u4ec5\u4f7f\u7528Kubernetes\u5e76\u4e0d\u80fd\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<h2>\u8fd9\u4e2a\u9009\u9879\u6709\u70b9\u96be\u4ee5\u56de\u6eaf\u6216\u590d\u73b0\u95ee\u9898\u3002<\/h2>\n<p>\u8cb4\u65b9\u306e\u305d\u306e\u624b\u5869\u306b\u304b\u3051\u305fYAML\u306b\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u4f8b1: Please turn off the lights before leaving the room.<\/p>\n<pre class=\"post-pre\"><code>  image: hoge-container-registry.com\/hoge-project\/hoge-app:latest\r\n<\/code><\/pre>\n<p>Pod \u3084 Deployment \u306a\u3069\u306eYAML\u3067\u4f7f\u308f\u308c\u308b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e\u53c2\u7167(\u307b\u3068\u3093\u3069\u306f image: \u306e\u30cf\u30c3\u30b7\u30e5(or \u30c7\u30a3\u30af\u30b7\u30e7\u30ca\u30ea\u30fc)\u306e\u5024\u3068\u3057\u3066\u66f8\u304b\u308c\u308b)\u306b\u304a\u3044\u3066\u3001\u4f8b1\u306e\u3088\u3046\u306a latest \u30bf\u30b0\u306f\u3001\u3068\u308a\u3042\u3048\u305a\u30b3\u30f3\u30c6\u30ca\u30ec\u30b8\u30b9\u30c8\u30ea\u306b\u7f6e\u3044\u3066\u3042\u308b\u6700\u65b0\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308c\u3070\u305d\u308c\u3067\u3044\u3044\u3001\u52d5\u304f\u306e\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u305d\u308c\u3067OK\u3068\u3044\u3046\u3001\u52d5\u4f5c\u691c\u8a3c\u306e\u5834\u5408\u306a\u3069\u306b\u306f\u3001\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u672c\u756a\u74b0\u5883\u3084\u305d\u308c\u306b\u8fd1\u3044\u74b0\u5883(\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u3001QA\u74b0\u5883\u306a\u3069)\u3067\u306f\u3088\u304f\u3042\u308b\u8a71\u306a\u306e\u3067\u3059\u304c\u3001\u76f4\u8fd1\u306b\u30d3\u30eb\u30c9\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306b\u30d0\u30b0\u304c\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u524d\u306b\u6b63\u5e38\u52d5\u4f5c\u3057\u3066\u3044\u305f\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306b\u623b\u3057\u3066\u4fee\u6b63\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3001\u3044\u308f\u3086\u308b\u300c\u5207\u308a\u623b\u3057\u300d\u64cd\u4f5c\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u3068\u304d\u3001 latest \u30bf\u30b0\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u3044\u304d\u306a\u308a\u56f0\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u30ec\u30b8\u30b9\u30c8\u30ea\u306eUI\u3092\u773a\u3081\u3001\u30ea\u30ea\u30fc\u30b9\u306e\u76f4\u524d\u307e\u3067\u52d5\u3044\u3066\u305f\u30a4\u30e1\u30fc\u30b8\u306f\u3069\u308c\u3060\u3063\u305f\u304b\u306a\u30fb\u30fb\u30fb\u3042\u308c\u3001\u524d\u56de\u306e\u30ea\u30ea\u30fc\u30b9\u304b\u3089\u3060\u3044\u3076\u7d4c\u3063\u3066\u3066\u3001\u305d\u308c\u4ee5\u964d\u306b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e\u518d\u30d3\u30eb\u30c9\u30fb\u518dpush\u304c\u305f\u304f\u3055\u3093\u884c\u308f\u308c\u3066\u3066\u3001\u3069\u308c\u304c\u6b63\u89e3\u3060\u304b\u5206\u304b\u3089\u306a\u3044\u305e\u30fb\u30fb\u30fb\u307f\u305f\u3044\u306a\u72b6\u6cc1\u3002\u3042\u308b\u3042\u308b\u3001\u3068\u601d\u308f\u308c\u305f\u65b9\u304c\u7d50\u69cb\u304a\u3089\u308c\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4f8b2: The company plans to expand its operations into international markets in order to increase its customer base and boost sales.<\/p>\n<pre class=\"post-pre\"><code>  image: nginx:1.23.3-alpine\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u6700\u65b0\u7684\u6807\u7b7e\u65e0\u6cd5\u660e\u786e\u6307\u5b9a\u4f7f\u7528\u54ea\u4e2a\u7248\u672c\u7684\u8f6f\u4ef6\uff0c\u56e0\u6b64\u5728\u53d1\u5e03\u65f6\u6211\u4eec\u91c7\u7528\u4e86\u5c06\u7248\u672c\u53f7\u4f5c\u4e3a\u56fe\u50cf\u6807\u7b7e\u7684\u505a\u6cd5\u3002\u8fd9\u6837\uff0c\u5728\u56de\u6eda\u65f6\u53ef\u4ee5\u4f7f\u7528\u5148\u524d\u6b63\u5e38\u8fd0\u884c\u7684\u76f8\u540c\u5bb9\u5668\u955c\u50cf\uff0c\u4ece\u800c\u5b89\u5fc3\u5730\u56de\u6eda\u3002\u6ca1\u95ee\u9898\uff0c\u6ca1\u95ee\u9898&#8230;<\/p>\n<p>\u5f88\u9057\u61be\u3002\u8fd9\u4e2a\u4e16\u754c\u5e76\u4e0d\u90a3\u4e48\u751c\u871c\u3002<\/p>\n<p>nginx:1.23.3-alpine\u8fd9\u4e2a\u5bb9\u5668\u955c\u50cf\u5e76\u4e0d\u53ea\u5305\u542b\u4e0enginx 1.23.3\u76f8\u5173\u7684\u6587\u4ef6\u3002\u5b83\u662f\u57fa\u4e8ealpine:3.17.0\u7684\u57fa\u7840\u955c\u50cf\u6784\u5efa\u7684\uff0c\u800calpine:3.17.0\u4e2d\u8fd8\u5305\u542b\u4e86\u4e00\u4e9b\u5171\u4eab\u5e93\uff0c\u5982libc.musl\u548clibssl\u7b49\u3002\u5982\u679c\u8fd9\u4e9b\u5171\u4eab\u5e93\u8fdb\u884c\u4e86\u9519\u8bef\u4fee\u590d\u6216\u6539\u8fdb\uff0calpine:3.17.0\u8fd9\u4e2a\u5bb9\u5668\u955c\u50cf\u5c06\u4f1a\u91cd\u65b0\u6784\u5efa\u5e76\u66ff\u6362DockerHub\u4e0a\u7684\u65e7\u955c\u50cf\u3002\u540c\u6837\uff0cnginx:1.23.3-alpine\u4e5f\u5c06\u81ea\u52a8\u91cd\u65b0\u6784\u5efa\u5e76\u66ff\u6362\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u5373\u4f7f\u662f\u76f8\u540c\u7684\u6807\u7b7e\uff0c\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u5bb9\u5668\u955c\u50cf\u7684\u5185\u5bb9\u4e5f\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u5316\u3002\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u7531\u4e8e\u5171\u4eab\u5e93\u7684\u66ff\u6362\uff0cnginx\u7684\u884c\u4e3a\u4e5f\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u5316\u3002\u56e0\u6b64\uff0c\u5373\u4f7f\u60f3\u8981\u56de\u6eda\u4e5f\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u65e0\u6cd5\u6210\u529f\u8fd8\u539f\u6216\u8005\u65e0\u6cd5\u518d\u73b0bug\u7684\u60c5\u51b5\u4e5f\u662f\u53ef\u80fd\u53d1\u751f\u7684\u3002<\/p>\n<p>\u5982\u679c\u662f\u5728\u81ea\u5df1\u56e2\u961f\u5f00\u53d1\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u901a\u8fc7\u5728\u6784\u5efa\u548c\u53d1\u5e03\u65f6\u4e3a\u5bb9\u5668\u6620\u50cf\u9002\u5f53\u5730\u6dfb\u52a0\u6807\u7b7e\uff0c\u53ef\u4ee5\u5728\u56de\u6eda\u7b49\u60c5\u51b5\u4e0b\u4f7f\u7528\u6240\u9700\u7684\u5bb9\u5668\u6620\u50cf\uff0c\u56e0\u6b64\u5728\u8fd9\u4e00\u70b9\u4e0a\u5e94\u8be5\u4e0d\u4f1a\u6709\u95ee\u9898\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u50cfnginx\u548c\u5404\u79cdDBMS\uff08\u5982MySQL\u548cPostgreSQL\uff09\u8fd9\u6837\u7684\u4e0e\u5e94\u7528\u7a0b\u5e8f\u4e00\u8d77\u8fd0\u884c\u7684\u5bb9\u5668\uff0c\u5982\u679c\u9700\u8981\u4ece\u5916\u90e8\u5bb9\u5668\u6ce8\u518c\u8868\uff08\u5982DockerHub\uff09\u5bfc\u5165\u6620\u50cf\u5e76\u90e8\u7f72\uff0c\u5c31\u65e0\u6cd5\u81ea\u52a8\u4e3a\u5bb9\u5668\u6620\u50cf\u6dfb\u52a0\u6807\u7b7e\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5f15\u8d77\u56f0\u6270\u3002<\/p>\n<h3>\u53ef\u80fd\u7684\u5bf9\u7b56<\/h3>\n<p>\u5728\u53c2\u8003\u5bb9\u5668\u955c\u50cf\u65f6\uff0c\u4e0d\u4f7f\u7528\u8bf8\u5982:latest :3.17.0 :1.23.3-alpine\u7b49\u6807\u7b7e\uff0c\u800c\u662f\u91c7\u7528\u8bf8\u5982index.docker.io\/library\/nginx@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793\u7b49\u6458\u8981\u503c\u7684\u8868\u793a\u65b9\u6cd5\u3002<br \/>\n\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u786e\u4fdd\u5bf9\u5bb9\u5668\u955c\u50cf\u4e2d\u7684\u6240\u6709\u76ee\u5f55\u6811\u90fd\u5177\u6709\u552f\u4e00\u6027\uff0c\u4ece\u800c\u80fd\u591f\u987a\u5229\u5b9e\u73b0\u6062\u590d\u5230\u6240\u9700\u65f6\u95f4\u70b9\u6216\u91cd\u73b0\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>  image: index.docker.io\/library\/nginx@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793\r\n<\/code><\/pre>\n<p>\u305f\u3060\u3001YAML\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5168\u3066\u306e\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e\u53c2\u7167\u3092 digest \u8a18\u6cd5\u3068\u3059\u308b\u306e\u306f\u3001\u624b\u52d5\u3067\u884c\u3046\u306e\u306f\u3068\u3066\u3082\u9762\u5012\u3067\u3059\u3002<br \/>\n\u591a\u304f\u306e\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u306a\u308b\u8907\u96d1\u306a\u69cb\u6210\u306e\u5834\u5408\u3001\u305d\u308c\u305e\u308c\u306e\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e digest \u3092\u3044\u3061\u3044\u3061\u8abf\u3079\u308b\u306e\u304b\u30fb\u30fb\u30fb\u305d\u306e\u3078\u3093\u3001\u4f55\u3068\u304b\u81ea\u52d5\u7684\u306b\u3088\u3057\u306a\u306b\u3084\u3063\u3066\u304f\u308c\u306a\u3044\u3082\u306e\u306a\u306e\u304b\u3002<\/p>\n<h3>\u5728BOSH\u65b9\u9762\u505a\u4e86\u4ec0\u4e48\uff1f<\/h3>\n<p>BOSH \u306b\u304a\u3044\u3066\u3001Kubernetes \u306b\u304a\u3051\u308b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306b\u5f53\u305f\u308b\u3082\u306e\u306f\u3001\u5f37\u3044\u3066\u8a00\u3048\u3070 BOSH stemcell \u3068 BOSH release \u3068\u306e\u7d44\u307f\u5408\u308f\u305b\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nBOSH stemcell \u306f VM\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3067\u3042\u308a\u3001\u30d3\u30eb\u30c9\u3055\u308c\u305f\u9806\u756a\u306b\u6cbf\u3063\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u304c\u632f\u3089\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nBOSH release \u306f\u8a00\u308f\u3070 Source Tarball \u306e\u5f62\u5f0f\u3067\u683c\u7d0d\u3055\u308c\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u96c6\u5408\u4f53\u3067\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3042\u308b\u3044\u306f Git commit ID \u306a\u3069\u306b\u3088\u3063\u3066\u8b58\u5225\u3055\u308c\u308b\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u307f\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nBOSH \u306b\u3088\u3063\u3066\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u305fVM\u306b\u7740\u76ee\u3059\u308b\u3068\u3001stemcell \u306e\u30d0\u30fc\u30b8\u30e7\u30f3 \u3068 release \u306b\u542b\u307e\u308c\u308b\u5404\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u304c\u3001stemcell \u30d0\u30fc\u30b8\u30e7\u30f3\u3068 release \u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u660e\u8a18\u3055\u308c\u3066\u3044\u308b\u3072\u3068\u3064\u306e BOSH deployment config \u304b\u3089\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u305f\u7d50\u679c\u3068\u3057\u3066\u3001\u3044\u305a\u308c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u5fc5\u305a\u4e00\u610f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3059\u306a\u308f\u3061\u3001BOSH deployment config \u306b\u304a\u3044\u3066 BOSH stemcell \u3068 BOSH release \u306e\u5404\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u660e\u793a\u3059\u308c\u3070\u3001\u904e\u53bb\u306e\u3044\u304b\u306a\u308b\u69cb\u6210\u3082\u518d\u73fe\u53ef\u80fd\u3068\u306a\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h2>\u305d\u306e2: ConfigMap \u3084 Secret \u306e\u66f4\u65b0\u304c\u53cd\u6620\u3055\u308c\u306a\u3044<\/h2>\n<p>ConfigMap \u3084 Secret \u3068\u3057\u3066\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u8a2d\u5b9a\u5024\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u306f configMapKeyRef \u3084 secretKeyRef \u7d4c\u7531\u3067\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u30de\u30a6\u30f3\u30c8\u3057\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u305f\u308a\u3059\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u306d\u3002<br \/>\n\u3057\u304b\u3057\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001ConfigMap \u3084 Secret \u306eYAML\u3092\u66f4\u65b0\u3057\u3066 kubectl apply \u3057\u3066\u3082\u3001\u305d\u306e\u8a2d\u5b9a\u306e\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3079\u304d Pod \u304c\u518d\u4f5c\u6210\u3055\u308c\u308b\u3053\u3068\u3082\u30b3\u30f3\u30c6\u30ca\u304c\u518d\u8d77\u52d5\u3055\u308c\u308b\u3053\u3068\u3082\u306a\u304f\u3001\u5e73\u7136\u3068\u5909\u66f4\u524d\u306e\u8a2d\u5b9a\u306e\u307e\u307e\u3067\u52d5\u304d\u7d9a\u3051\u308b\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u3082\u3057\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3092\u691c\u77e5\u3057\u3066\u52dd\u624b\u306b\u8a2d\u5b9a\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3088\u3046\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3060\u3063\u305f\u3089\u3001\u305d\u308c\u306f\u305d\u308c\u3067\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30b3\u30f3\u30c6\u30ca\u3058\u3083\u306a\u3044\u74b0\u5883\u3067\u52d5\u304b\u3059\u3088\u3046\u306a\u5834\u5408\u306f\u9006\u306b\u904b\u7528\u304c\u30b7\u30d3\u30a2\u306b\u306a\u308a\u305d\u3046\u3067\u3001\u306a\u304b\u306a\u304b\u3053\u308f\u3044\u5b9f\u88c5\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u30dc\u30ea\u30e5\u30fc\u30e0\u30de\u30a6\u30f3\u30c8\u3059\u308b nginx \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092 ConfigMap \u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3001\u3053\u308c\u3092 kubectl apply \u3067\u66f4\u65b0\u3057\u3066\u3082\u3001\u305d\u306e\u5909\u66f4\u304c\u52b9\u304b\u306a\u3044\u6a21\u69d8\u3092\u3001\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat &lt;&lt;EOF | kubectl apply -f -\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: nginx-conf\r\n  labels:\r\n    app: nginx\r\ndata:\r\n  nginx.conf: |\r\n    worker_processes 1;\r\n    events {}\r\n    http {\r\n      access_log \/mnt\/access.log combined;\r\n      server {\r\n        listen 80 default_server;\r\n        root \/usr\/share\/nginx\/html;\r\n        index index.html;\r\n      }\r\n    }\r\n---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: nginx-lb\r\n  labels:\r\n    app: nginx\r\nspec:\r\n  ports:\r\n  - port: 80\r\n    protocol: TCP\r\n    targetPort: 80\r\n  selector:\r\n    app: nginx\r\n  type: LoadBalancer\r\n---\r\napiVersion: apps\/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: nginx\r\n  labels:\r\n    app: nginx\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      app: nginx\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: nginx\r\n    spec:\r\n      containers:\r\n      - name: nginx\r\n        image: nginx:1.23.3-alpine\r\n        ports:\r\n        - containerPort: 80\r\n        volumeMounts:\r\n        - mountPath: \/etc\/nginx\r\n          readOnly: true\r\n          name: nginx-conf\r\n      volumes:\r\n      - name: nginx-conf\r\n        configMap:\r\n          name: nginx-conf\r\n          items:\r\n          - key: nginx.conf\r\n            path: nginx.conf\r\nEOF\r\n\r\nconfigmap\/nginx-conf created\r\nservice\/nginx-lb created\r\ndeployment.apps\/nginx created\r\n\r\n$ kubectl get all -l app=nginx\r\nNAME                         READY   STATUS    RESTARTS   AGE\r\npod\/nginx-7d8ffdbdb9-j8vn5   1\/1     Running   0          13s\r\n\r\nNAME               TYPE           CLUSTER-IP    EXTERNAL-IP     PORT(S)        AGE\r\nservice\/nginx-lb   LoadBalancer   10.43.82.56   192.168.1.131   80:31716\/TCP   13s\r\n\r\nNAME                    READY   UP-TO-DATE   AVAILABLE   AGE\r\ndeployment.apps\/nginx   1\/1     1            1           13s\r\n\r\nNAME                               DESIRED   CURRENT   READY   AGE\r\nreplicaset.apps\/nginx-7d8ffdbdb9   1         1         1       13s\r\n\r\n$ curl 192.168.1.131\r\n\u3010\u7565\u3011\r\n\r\n$ k exec nginx-7d8ffdbdb9-j8vn5 -- cat \/mnt\/access.log\r\n10.42.0.0 - - [24\/Dec\/2022:12:34:56 +0000] \"GET \/ HTTP\/1.1\" 200 615 \"-\" \"curl\/7.68.0\"\r\n\r\n$ cat &lt;&lt;EOF | kubectl apply -f -\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: nginx-conf\r\n  labels:\r\n    app: nginx\r\ndata:\r\n  nginx.conf: |\r\n    worker_processes 1;\r\n    events {}\r\n    http {\r\n      log_format short \"time: \\$time_iso8601\";\r\n      access_log \/mnt\/access.log short;\r\n      server {\r\n        listen 80 default_server;\r\n        root \/usr\/share\/nginx\/html;\r\n        index index.html;\r\n      }\r\n    }\r\nEOF\r\n\r\nconfigmap\/nginx-conf configured\r\n\r\n$ curl 192.168.1.131\r\n\u3010\u7565\u3011\r\n\r\n$ k exec nginx-7d8ffdbdb9-j8vn5 -- cat \/mnt\/access.log\r\n10.42.0.0 - - [24\/Dec\/2022:12:34:56 +0000] \"GET \/ HTTP\/1.1\" 200 615 \"-\" \"curl\/7.68.0\"\r\n10.42.0.0 - - [25\/Dec\/2022:12:35:02 +0000] \"GET \/ HTTP\/1.1\" 200 615 \"-\" \"curl\/7.68.0\"\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u4e0d\u7406\u89e3\u8fd9\u4e2a\u673a\u5236\uff0c\u90a3\u4e48\u8fd9\u6761\u65e5\u5fd7\u770b\u8d77\u6765\u786e\u5b9e\u5145\u6ee1\u4e86\u4e0d\u516c\u5e73\u7684\u611f\u89c9\uff0c\u4f46\u5b9e\u9645\u4e0a\u95ee\u9898\u7684\u6839\u6e90\u662fnginx\u6ca1\u6709\u52a0\u8f7d\u65b0\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u66f4\u65b0\u30c7\u30d7\u30ed\u30a4\u3092\u5b8c\u7d50\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001kubectl rollout restart deployment\/??? \u3059\u308b\u3060\u306e\u3001 kubectl delete pod \u3057\u3066 Deployment \u304b\u3089 Pod \u304c\u81ea\u52d5\u518d\u4f5c\u6210\u3055\u308c\u308b\u306e\u3092\u5f85\u3064\u3060\u306e\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u8ffd\u52a0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>CD\u3068\u304b\u304c\u3093\u3070\u3063\u3066\u3084\u308d\u3046\u3068\u3057\u3066\u3082\u3001\u305d\u306e\u70b9\u3067\u30cf\u30de\u3063\u305f\u308a\u3001\u305d\u3053\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306bCD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u5909\u306a\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u308a\u3001\u3044\u3063\u305d\u3084\u3080\u306a\u304f\u8ae6\u3081\u3066\u624b\u904b\u7528\u306b\u623b\u3063\u305f\u308a\u306a\u3093\u304b\u3057\u305f\u308a\u3057\u3066\u3002<\/p>\n<h3>\u53ef\u80fd\u91c7\u53d6\u7684\u63aa\u65bd<\/h3>\n<p>\u6bcf\u6b21\u66f4\u65b0 ConfigMap \u6216 Secret \u65f6\uff0c\u4f1a\u5c06\u5176\u8d44\u6e90\u540d\u79f0 (metadata.name) \u66f4\u6539\u4e3a\u65b0\u540d\u79f0\uff0c\u5e76\u76f8\u5e94\u5730\u4fee\u6539\u5f15\u7528\u8be5 ConfigMap \u6216 Secret \u7684 Deployment \u7b49\u914d\u7f6e\u4e2d\u7684\u540d\u79f0\u3002\u901a\u8fc7\u8fd9\u6837\u505a\uff0c\u786e\u4fdd\u66f4\u65b0\u7684 ConfigMap \u6216 Secret \u4e5f\u4f1a\u5bf9\u5e94\u66f4\u65b0\u7684 Deployment \u7b49\u76f8\u5173\u914d\u7f6e\uff0c\u4ece\u800c\u6210\u529f\u5b8c\u6210\u66f4\u65b0\u90e8\u7f72\u3002<\/p>\n<p>\u5514\uff0c\u592a\u571f\u6c14\u4e86\u3002\u592a\u8fc7\u571f\u6c14\u4e86\u2026 \u90a3\u8fb9\u7684\u4e8b\u60c5\uff0c\u80fd\u4e0d\u80fd\u81ea\u52a8\u5316\u5730\u5904\u7406\u597d\u5462\uff1f<\/p>\n<h3>BOSH\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f<\/h3>\n<p>BOSH stemcell\u4e2d\u7684\u4efb\u52a1\u7ec4\uff08\u5728BOSH\u4e2d\u79f0\u4e3ajob\uff09\u7684\u914d\u7f6e\u503c\u53ef\u4ee5\u5728\u90e8\u7f72\u914d\u7f6e\u6216\u6307\u5bfc\u8005\u8fd0\u884c\u914d\u7f6e\u4e2d\u8fdb\u884c\u8bb0\u5f55\u3002<br \/>\n\u5f53\u66f4\u65b0\u8fd9\u4e9b\u914d\u7f6e\u503c\u8fdb\u884c\u90e8\u7f72\u65f6\uff0cBOSH\u6307\u5bfc\u8005\u4f1a\u63d0\u53d6\u5dee\u5f02\uff0c\u786e\u5b9a\u54ea\u4e9b\u865a\u62df\u673a\u9700\u8981\u8fdb\u884c\u66f4\u65b0\uff0c\u5e76\u5c06\u914d\u7f6e\u503c\u4f20\u9012\u7ed9\u76f8\u5e94\u7684\u865a\u62df\u673a\uff0c\u91cd\u65b0\u542f\u52a8\u6240\u6709\u7684job\uff08\u6216\u6839\u636e\u9700\u8981\u91cd\u65b0\u521b\u5efa\u865a\u62df\u673a\uff09\u3002<br \/>\n\u65e0\u8bba\u662f\u90e8\u7f72\u914d\u7f6e\u8fd8\u662f\u6307\u5bfc\u8005\u8fd0\u884c\u914d\u7f6e\uff0c\u90fd\u5177\u6709\u6613\u4e8e\u786e\u5b9a\u54ea\u4e9b\u865a\u62df\u673a\u662f\u914d\u7f6e\u66f4\u65b0\u5bf9\u8c61\u7684\u6a21\u5f0f\uff0c\u5e76\u4e14\u8bbe\u8ba1\u53ef\u4ee5\u8fdb\u884c\u65e0\u7f3a\u6f0f\u548c\u9ad8\u6548\u914d\u7f6e\u66f4\u6539\u3002<\/p>\n<h1>Carvel \u80fd\u591f\u6ee1\u8db3 Kubernetes \u4e0a\u7684\u53d1\u5e03\u5de5\u7a0b\u9700\u6c42\u3002<\/h1>\n<p>2020\u5e748\u6708\uff0cCarvel\u5b98\u65b9\u535a\u5ba2\u4e0a\u53d1\u5e03\u4e86\u4e00\u7bc7\u6587\u7ae0\uff0c\u63d0\u5230\u4e86\u5927\u80c6\u79c0\u51fa\u4f60\u7684\u60c5\u611f\u3002<\/p>\n<pre class=\"post-pre\"><code>Carvel was born from frustration with existing tools\r\n<\/code><\/pre>\n<p>Kubernetes\u672c\u8eab\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u4e1c\u897f\uff0c\u4f46\u4ece\u53d1\u5e03\u5de5\u7a0b\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u8fd8\u6709\u4e00\u4e9b\u5c0f\u95ee\u9898\u5c1a\u672a\u89e3\u51b3\uff0c\u5e76\u4e14\u5176\u4ed6\u5de5\u5177\u4e5f\u5404\u6709\u957f\u77ed\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u53ea\u80fd\u6743\u5b9c\u4e4b\u8ba1\u5730\u5f00\u53d1\u4e86Carvel\u5de5\u5177\u96c6\u3002<\/p>\n<h2>\u4f7f\u7528 kbld \u5c06\u6240\u6709\u5728 YAML \u4e2d\u5199\u5165\u7684\u5bb9\u5668\u955c\u50cf\u5f15\u7528\u66ff\u6362\u4e3a\u6458\u8981\uff08digest\uff09\u683c\u5f0f<\/h2>\n<p>Carvel \u306e\u30c4\u30fc\u30eb\u7fa4\u306e\u3072\u3068\u3064\u306b kbld \u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat &lt;&lt;EOF | kbld -f -\r\napiVersion: v1\r\nkind: Pod \r\nmetadata:\r\n  name: nginx\r\nspec:\r\n  containers:\r\n  - name: nginx\r\n    image: nginx:1.23.3-alpine\r\nEOF\r\n\r\nresolve | final: nginx:1.23.3-alpine -&gt; index.docker.io\/library\/nginx@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793\r\n---\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  annotations:\r\n    kbld.k14s.io\/images: |\r\n      - origins:\r\n        - resolved:\r\n            tag: 1.23.3-alpine\r\n            url: nginx:1.23.3-alpine\r\n        url: index.docker.io\/library\/nginx@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793\r\n  name: nginx\r\nspec:\r\n  containers:\r\n  - image: index.docker.io\/library\/nginx@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793\r\n    name: nginx\r\n\r\nSucceeded\r\n<\/code><\/pre>\n<p>\u5982\u679c\u5c06\u539f\u59cb\u7684YAML\u901a\u8fc7\u7ba1\u9053\u4f20\u9012\u7ed9kbld\uff0c\u5219\u5b83\u4f1a\u63d0\u53d6\u51faimage:\u5e76\u5c06\u5176\u66ff\u6362\u4e3adigest\u8868\u793a\u6cd5\uff0c\u5e76\u8f93\u51fa\u4fee\u6539\u540e\u7684YAML\u3002\u5728\u8fdb\u884cGitOps\u65f6\uff0c\u4e3a\u4e86\u89e3\u51b3\u56de\u9000\u548c\u6545\u969c\u518d\u73b0\u65f6\u7684\u95ee\u9898\uff0c\u5e94\u8be5\u5728\u5c06YAML\u5b58\u50a8\u5230Git\u4ed3\u5e93\u4e4b\u524d\uff0c\u901a\u8fc7kbld\u5c06\u6240\u6709\u5bb9\u5668\u955c\u50cf\u7684\u5f15\u7528\u66ff\u6362\u4e3adigest\u8868\u793a\u6cd5\u3002<\/p>\n<h2>\u786e\u4fdd\u4e0d\u6f0f\u6389\u5de5\u4f5c\u8d1f\u8f7d\u914d\u7f6e\u7684\u66f4\u6539\u5e76\u8fdb\u884c\u66f4\u65b0\u90e8\u7f72\u7684kapp<\/h2>\n<p>\u5728Carvel\u7684\u5de5\u5177\u96c6\u4e2d\uff0c\u6709\u4e00\u4e2a\u53eb\u505akapp\u7684\u5de5\u5177\u3002<br \/>\n\u5b83\u662f\u4e00\u4e2a\u5f88\u65b9\u4fbf\u7684\u547d\u4ee4\uff0c\u53ef\u4ee5\u5728\u66f4\u65b0\u90e8\u7f72\u4e4b\u524d\u9884\u89c8\u53d8\u66f4\u5dee\u5f02\u3002\u53ef\u4ee5\u4f7f\u7528&#8221;kapp deploy -a [app_name] -c -f&#8221;\u547d\u4ee4\u6765\u4ee3\u66ff&#8221;kubectl apply -f&#8221;\u547d\u4ee4\u3002\u5b9e\u9645\u4e0a\uff0c\u5b83\u8fd8\u5177\u6709\u8bb8\u591a\u5176\u4ed6\u7684\u5c0f\u4f17\u529f\u80fd\u4e4b\u4e00\u5c31\u662fVersioned Resources\uff08\u7248\u672c\u5316\u8d44\u6e90\uff09\u3002<\/p>\n<p>\u5728\u66f4\u65b0\u5de5\u4f5c\u8d1f\u8f7d\u914d\u7f6e\u65f6\uff0c\u5982\u679c\u60f3\u8981\u5bf9 ConfigMap \u548c Secret \u7b49\u8d44\u6e90\u8fdb\u884c\u53cd\u6620\uff0c\u8bf7\u5728\u8fd9\u4e9b\u8d44\u6e90\u4e0a\u6dfb\u52a0\u6ce8\u91ca kapp.k14s.io\/versioned: &#8220;&#8221;\uff0c\u901a\u8fc7\u4e3a\u539f\u59cbYAML\u4e2d\u6240\u5199\u8d44\u6e90\u540d\u79f0\u6dfb\u52a0\u7248\u672c\u53f7\u7684\u522b\u540d\u6765\u521b\u5efa\u5b9e\u9645\u7684\u8d44\u6e90\uff0c\u5e76\u81ea\u52a8\u5c06\u5f15\u7528\u8be5\u8d44\u6e90\u7684\u90e8\u7f72\u7b49\u5bf9\u8c61\u7684\u5f15\u7528\u76ee\u6807\u66f4\u6539\u4e3a\u76f8\u5e94\u7684\u522b\u540d\u3002<\/p>\n<p>\u56e0\u4e3a\u6211\u8ba4\u4e3a\u4f60\u53ef\u80fd\u4e0d\u592a\u7406\u89e3\u8fd9\u662f\u4ec0\u4e48\u610f\u601d\uff0c\u6240\u4ee5\u6211\u4f1a\u5728\u4e0b\u9762\u5c55\u793a\u4f7f\u7528 kapp \u53ef\u4ee5\u6210\u529f\u8fdb\u884c nginx \u7684 ConfigMap \u914d\u7f6e\u66f4\u6539\uff0c\u800c\u4e0d\u662f\u4f7f\u7528 kubectl apply \u65e0\u6cd5\u6210\u529f\u7684\u60c5\u51b5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat &lt;&lt;EOF | kapp deploy -a nginx -f - -y\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: nginx-conf\r\n  labels:\r\n    app: nginx\r\n  annotations:\r\n    kapp.k14s.io\/versioned: \"\"\r\ndata:\r\n  nginx.conf: |\r\n    worker_processes 1;\r\n    events {}\r\n    http {\r\n      access_log \/mnt\/access.log combined;\r\n      server {\r\n        listen 80 default_server;\r\n        root \/usr\/share\/nginx\/html;\r\n        index index.html;\r\n      }\r\n    }\r\n---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: nginx-lb\r\n  labels:\r\n    app: nginx\r\nspec:\r\n  ports:\r\n  - port: 80\r\n    protocol: TCP\r\n    targetPort: 80\r\n  selector:\r\n    app: nginx\r\n  type: LoadBalancer\r\n---\r\napiVersion: apps\/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: nginx\r\n  labels:\r\n    app: nginx\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      app: nginx\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: nginx\r\n    spec:\r\n      containers:\r\n      - name: nginx\r\n        image: nginx:1.23.3-alpine\r\n        ports:\r\n        - containerPort: 80\r\n        volumeMounts:\r\n        - mountPath: \/etc\/nginx\r\n          readOnly: true\r\n          name: nginx-conf\r\n      volumes:\r\n      - name: nginx-conf\r\n        configMap:\r\n          name: nginx-conf\r\n          items:\r\n          - key: nginx.conf\r\n            path: nginx.conf\r\nEOF\r\n\r\nTarget cluster 'https:\/\/127.0.0.1:6443' (nodes: home03, 1+)\r\n\r\nChanges\r\n\r\nNamespace  Name              Kind        Age  Op      Op st.  Wait to    Rs  Ri  \r\ndefault    nginx             Deployment  -    create  -       reconcile  -   -  \r\n^          nginx-conf-ver-1  ConfigMap   -    create  -       reconcile  -   -  \r\n^          nginx-lb          Service     -    create  -       reconcile  -   -  \r\n\r\nOp:      3 create, 0 delete, 0 update, 0 noop, 0 exists\r\nWait to: 3 reconcile, 0 delete, 0 noop\r\n\r\n4:33:06PM: ---- applying 1 changes [0\/3 done] ----\r\n4:33:06PM: create configmap\/nginx-conf-ver-1 (v1) namespace: default\r\n4:33:06PM: ---- waiting on 1 changes [0\/3 done] ----\r\n4:33:06PM: ok: reconcile configmap\/nginx-conf-ver-1 (v1) namespace: default\r\n4:33:06PM: ---- applying 2 changes [1\/3 done] ----\r\n4:33:07PM: create service\/nginx-lb (v1) namespace: default\r\n4:33:07PM: create deployment\/nginx (apps\/v1) namespace: default\r\n4:33:07PM: ---- waiting on 2 changes [1\/3 done] ----\r\n4:33:07PM: ok: reconcile service\/nginx-lb (v1) namespace: default\r\n4:33:07PM: ongoing: reconcile deployment\/nginx (apps\/v1) namespace: default\r\n4:33:07PM:  ^ Waiting for generation 2 to be observed\r\n4:33:07PM:  L ok: waiting on replicaset\/nginx-859ffcd8c (apps\/v1) namespace: default\r\n4:33:07PM:  L ok: waiting on pod\/nginx-859ffcd8c-ft64b (v1) namespace: default\r\n4:33:07PM: ---- waiting on 1 changes [2\/3 done] ----\r\n4:33:07PM: ok: reconcile deployment\/nginx (apps\/v1) namespace: default\r\n4:33:07PM: ---- applying complete [3\/3 done] ----\r\n4:33:07PM: ---- waiting complete [3\/3 done] ----\r\n\r\nSucceeded\r\n\r\n$ kubectl get all,cm -l app=nginx\r\nNAME                         READY   STATUS    RESTARTS   AGE\r\npod\/nginx-5667ccd54b-ll67q   1\/1     Running   0          5m9s\r\n\r\nNAME               TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)        AGE\r\nservice\/nginx-lb   LoadBalancer   10.43.154.165   192.168.1.131   80:31150\/TCP   2m34s\r\n\r\nNAME                    READY   UP-TO-DATE   AVAILABLE   AGE\r\ndeployment.apps\/nginx   1\/1     1            1           2m34s\r\n\r\nNAME                               DESIRED   CURRENT   READY   AGE\r\nreplicaset.apps\/nginx-5667ccd54b   1         1         1       5m9s\r\nreplicaset.apps\/nginx-859ffcd8c    0         0         0       8m59s\r\n\r\nNAME                         DATA   AGE\r\nconfigmap\/nginx-conf-ver-1   1      2m34s\r\n\r\n$ curl 192.168.1.131\r\n\u3010\u7565\u3011\r\n\r\n$ k exec nginx-859ffcd8c-ft64b -- cat \/mnt\/access.log\r\n10.42.0.0 - - [24\/Dec\/2022:12:56:02 +0000] \"GET \/ HTTP\/1.1\" 200 615 \"-\" \"curl\/7.68.0\"\r\n\r\n$ cat &lt;&lt;EOF | kapp deploy -a nginx -f - -y\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: nginx-conf\r\n  labels:\r\n    app: nginx\r\n  annotations:\r\n    kapp.k14s.io\/versioned: \"\"\r\ndata:\r\n  nginx.conf: |\r\n    worker_processes 1;\r\n    events {}\r\n    http {\r\n      log_format short \"time: \\$time_iso8601\";\r\n      access_log \/mnt\/access.log short;\r\n      server {\r\n        listen 80 default_server;\r\n        root \/usr\/share\/nginx\/html;\r\n        index index.html;\r\n      }\r\n    }\r\n---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: nginx-lb\r\n  labels:\r\n    app: nginx\r\nspec:\r\n  ports:\r\n  - port: 80\r\n    protocol: TCP\r\n    targetPort: 80\r\n  selector:\r\n    app: nginx\r\n  type: LoadBalancer\r\n---\r\napiVersion: apps\/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: nginx\r\n  labels:\r\n    app: nginx\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      app: nginx\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: nginx\r\n    spec:\r\n      containers:\r\n      - name: nginx\r\n        image: nginx:1.23.3-alpine\r\n        ports:\r\n        - containerPort: 80\r\n        volumeMounts:\r\n        - mountPath: \/etc\/nginx\r\n          readOnly: true\r\n          name: nginx-conf\r\n      volumes:\r\n      - name: nginx-conf\r\n        configMap:\r\n          name: nginx-conf\r\n          items:\r\n          - key: nginx.conf\r\n            path: nginx.conf\r\nEOF\r\n\r\nTarget cluster 'https:\/\/127.0.0.1:6443' (nodes: home03, 1+)\r\n\r\nChanges\r\n\r\nNamespace  Name              Kind        Age  Op      Op st.  Wait to    Rs  Ri  \r\ndefault    nginx             Deployment  3m   update  -       reconcile  ok  -  \r\n^          nginx-conf-ver-2  ConfigMap   -    create  -       reconcile  -   -  \r\n\r\nOp:      1 create, 0 delete, 1 update, 0 noop, 0 exists\r\nWait to: 2 reconcile, 0 delete, 0 noop\r\n\r\n4:36:56PM: ---- applying 1 changes [0\/2 done] ----\r\n4:36:56PM: create configmap\/nginx-conf-ver-2 (v1) namespace: default\r\n4:36:56PM: ---- waiting on 1 changes [0\/2 done] ----\r\n4:36:56PM: ok: reconcile configmap\/nginx-conf-ver-2 (v1) namespace: default\r\n4:36:56PM: ---- applying 1 changes [1\/2 done] ----\r\n4:36:57PM: update deployment\/nginx (apps\/v1) namespace: default\r\n4:36:57PM: ---- waiting on 1 changes [1\/2 done] ----\r\n4:36:57PM: ongoing: reconcile deployment\/nginx (apps\/v1) namespace: default\r\n4:36:57PM:  ^ Waiting for generation 4 to be observed\r\n4:36:57PM:  L ok: waiting on replicaset\/nginx-859ffcd8c (apps\/v1) namespace: default\r\n4:36:57PM:  L ok: waiting on replicaset\/nginx-5667ccd54b (apps\/v1) namespace: default\r\n4:36:57PM:  L ok: waiting on pod\/nginx-859ffcd8c-ft64b (v1) namespace: default\r\n4:36:57PM:  L ongoing: waiting on pod\/nginx-5667ccd54b-ll67q (v1) namespace: default\r\n4:36:57PM:     ^ Pending: ContainerCreating\r\n4:36:58PM: ok: reconcile deployment\/nginx (apps\/v1) namespace: default\r\n4:36:58PM: ---- applying complete [2\/2 done] ----\r\n4:36:58PM: ---- waiting complete [2\/2 done] ----\r\n\r\nSucceeded\r\n\r\n$ kubectl get all,cm -l app=nginx\r\nNAME                         READY   STATUS    RESTARTS   AGE\r\npod\/nginx-5667ccd54b-ll67q   1\/1     Running   0          5m9s\r\n\r\nNAME               TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)        AGE\r\nservice\/nginx-lb   LoadBalancer   10.43.154.165   192.168.1.131   80:31150\/TCP   8m59s\r\n\r\nNAME                    READY   UP-TO-DATE   AVAILABLE   AGE\r\ndeployment.apps\/nginx   1\/1     1            1           8m59s\r\n\r\nNAME                               DESIRED   CURRENT   READY   AGE\r\nreplicaset.apps\/nginx-5667ccd54b   1         1         1       5m9s\r\nreplicaset.apps\/nginx-859ffcd8c    0         0         0       8m59s\r\n\r\nNAME                         DATA   AGE\r\nconfigmap\/nginx-conf-ver-1   1      8m59s\r\nconfigmap\/nginx-conf-ver-2   1      5m9s\r\n\r\n$ curl 192.168.1.131\r\n\u3010\u7565\u3011\r\n\r\n$ k exec nginx-5667ccd54b-ll67q -- cat \/mnt\/access.log\r\ntime: 2022-12-24T12:57:09+00:00\r\n\r\n$ k describe deploy nginx\r\nName:                   nginx\r\nNamespace:              default\r\n\u3010\u7565\u3011\r\n  Volumes:\r\n   nginx-conf:\r\n    Type:      ConfigMap (a volume populated by a ConfigMap)\r\n    Name:      nginx-conf-ver-2\r\n    Optional:  false\r\n<\/code><\/pre>\n<p>\u554a\uff0c\u8fd9\u4e2a\u662f\u4e00\u4e2a\u76f8\u5f53\u65b9\u4fbf\u7684\u4e1c\u897f\u554a\u3002<br \/>\n\u5c24\u5176\u662f\u5728\u4f7f\u7528 GitOps \u7684\u60c5\u51b5\u4e0b\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u4f7f\u7528 kapp\uff08\u6216\u8005\u66f4\u51c6\u786e\u5730\u8bf4\u662f kapp-controller\uff09\u7684\u60c5\u51b5\uff0c\u4e00\u5b9a\u8981\u8bb0\u5f97\u8bbe\u7f6e\u8fd9\u4e2a\u6ce8\u89e3\uff0c\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<h1>\u5361\u7ef4\u5c14\u548cBOSH\u6709\u4e00\u5b9a\u7684\u5173\u7cfb\u3002<\/h1>\n<p>Dmitriy Kalinin\u548cJohn Ryan\u7b49\u4eba\u5728Carvel\u9879\u76ee\u4e2d\u957f\u671f\u53c2\u4e0e\uff0c\u5b9e\u9645\u4e0a\u5728\u52a0\u5165Carvel\u4e4b\u524d\u5c31\u5c5e\u4e8ePivotal\uff0c\u79ef\u6781\u53c2\u4e0eCloud Foundry\u7684\u8d21\u732e\uff0c\u800c\u5728Pivotal\u88abVMware\u6536\u8d2d\u540e\uff0c\u4ecd\u7136\u7ee7\u7eed\u5728VMware Tanzu\u7684\u4ea7\u54c1\u5f00\u53d1\u4e2d\u5de5\u4f5c\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u50cfNima Kaviani\u7b49\u4eba\u867d\u672a\u52a0\u5165Pivotal \/ VMware\uff0c\u4f46\u4e5f\u6df1\u5ea6\u53c2\u4e0e\u4e86Cloud Foundry\u7684\u8d21\u732e\uff0c\u5e76\u4e0eCarvel\u6709\u7d27\u5bc6\u5173\u8054\u3002<\/p>\n<p>\u6211\u8ba4\u4e3a\uff0c\u4eceCloud Foundry BOSH\u5230Kubernetes\u7684\u8f6c\u53d8\u8fc7\u7a0b\u4e2d\uff0c\u91ca\u653e\u5de5\u7a0b\u7684\u8d28\u91cf\u4e0b\u964d\u662f\u53ef\u4ee5\u7406\u89e3\u7684\u3002\u591a\u5e74\u6765\uff0cCloud Foundry BOSH\u6240\u79ef\u7d2f\u7684\u5d07\u9ad8\u8bbe\u8ba1\u7406\u5ff5\u73b0\u5728\u5df2\u88abCarvel\u7ee7\u627f\uff0c\u5c06\u5728Kubernetes\u751f\u6001\u7cfb\u7edf\u4e2d\u7ee7\u7eed\u53d1\u6325\u4f5c\u7528\u3002<\/p>\n<h1>\u6700\u540e\u4e00\u4e2a\uff0c\u91cd\u8981\u7684\u4e8b\u60c5<\/h1>\n<p>\u5728\u4f7f\u7528GitOps\u7684\u4eba\u7fa4\u4e2d\uff0c\u4f7f\u7528kapp\u6216kapp-controller\u7684\u4eba\u4ecd\u7136\u5c5e\u4e8e\u5c11\u6570\u6d3e\uff0c\u6211\u8ba4\u4e3a\u5927\u591a\u6570\u4eba\u662f\u901a\u8fc7\u4f7f\u7528ArgoCD\u3001Flux\u3001Spinnaker\u7b49\u5de5\u5177\u6765\u5b9e\u73b0GitOps\u7684\u3002\u5bf9\u4e8e\u8fd9\u6837\u7684\u4eba\u7fa4\uff0c\u6211\u5f3a\u70c8\u63a8\u8350\u4e00\u4e2a\u5de5\u5177\u3002<\/p>\n<p>\u5728\u5c06YAML\u5b58\u50a8\u5230Git\u4ed3\u5e93\u65f6\uff0c\u6211\u4eec\u9700\u8981\u5c06\u6240\u6709\u5bb9\u5668\u955c\u50cf\u7684\u5f15\u7528\u66ff\u6362\u4e3a\u6458\u8981\u8868\u793a\u6cd5\uff08\u683c\u5f0f\u4e3aindex.docker.io\/library\/nginx@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793\uff09\u3002<\/p>\n<h1>\u7ed3\u675f\u4e86 (Jieshu le)<\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662f2022\u5e74TUNA-JP Advent Calendar\u6d3b\u52a8\u7684\u7b2c24\u5929\u5165\u9009\u4f5c\u54c1\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\u7531VMwa [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32990","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Carvel\u548cBOSH - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/carvel\u548cbosh\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Carvel\u548cBOSH\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u7bc7\u6587\u7ae0\u662f2022\u5e74TUNA-JP Advent Calendar\u6d3b\u52a8\u7684\u7b2c24\u5929\u5165\u9009\u4f5c\u54c1\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\u7531VMwa [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/carvel\u548cbosh\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-09T01:53:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T10:13:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d150837434c4406bfd391\/9-0.com\/3293bf2b051ed7833992390b4e191c78c0faa6dd\/68747470733a2f2f676973742e6769746875622e636f6d2f6f7a7a6f7a7a2f32336239343164346534363838313065643036666437356436643431336364342f7261772f736c69646531322e706e67\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/\",\"name\":\"Carvel\u548cBOSH - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-09T01:53:45+00:00\",\"dateModified\":\"2024-04-30T10:13:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Carvel\u548cBOSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Carvel\u548cBOSH - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/carvel\u548cbosh\/","og_locale":"zh_CN","og_type":"article","og_title":"Carvel\u548cBOSH","og_description":"\u8fd9\u7bc7\u6587\u7ae0\u662f2022\u5e74TUNA-JP Advent Calendar\u6d3b\u52a8\u7684\u7b2c24\u5929\u5165\u9009\u4f5c\u54c1\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\u7531VMwa [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/carvel\u548cbosh\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-09T01:53:45+00:00","article_modified_time":"2024-04-30T10:13:47+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d150837434c4406bfd391\/9-0.com\/3293bf2b051ed7833992390b4e191c78c0faa6dd\/68747470733a2f2f676973742e6769746875622e636f6d2f6f7a7a6f7a7a2f32336239343164346534363838313065643036666437356436643431336364342f7261772f736c69646531322e706e67"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/","name":"Carvel\u548cBOSH - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-09T01:53:45+00:00","dateModified":"2024-04-30T10:13:47+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Carvel\u548cBOSH"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/carvel%e5%92%8cbosh\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32990"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32990\/revisions"}],"predecessor-version":[{"id":93489,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32990\/revisions\/93489"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}