{"id":44784,"date":"2023-12-13T10:03:26","date_gmt":"2022-12-11T10:37:51","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/"},"modified":"2024-05-04T13:22:08","modified_gmt":"2024-05-04T05:22:08","slug":"44784-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306fNTT\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ba Advent Calendar 2020\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u6628\u65e5\u306f @xkumiyu \u3055\u3093\u306eAmazon ECS\u3068ALB\u3092\u5229\u7528\u3057\u305f\u63a8\u8ad6API\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u5206\u6563\u3067\u3057\u305f\u3002<\/p>\n<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>NTT\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ba\u3067CI\/CD\u30a4\u30f3\u30d5\u30e9\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u308b @jmaxi \u3067\u3059\u3002<br \/>\n\u4eca\u65e5\u306f\u3001\u666e\u6bb5\u79c1\u304c\u5229\u7528\u3057\u3066\u3044\u308bInfrastructure as Code\u306e\u65b0\u3057\u3044\u5f62\u306b\u3064\u3044\u3066\u601d\u3046\u3068\u3053\u308d\u3092\u66f8\u304b\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f\u3001Infrastructure as Code\u3092\u53d6\u308a\u5dfb\u304f\u72b6\u6cc1 (\u5ba3\u8a00\u7684API\u3001Configuration as Data) \u306b\u3064\u3044\u3066\u306e\u8003\u3048\u3092\u8ff0\u3079\u305f\u5f8c\u3001CUE\u3068\u547c\u3070\u308c\u308b\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u8a18\u8ff0\u8a00\u8a9e\u3092\u6d3b\u7528\u3057\u3066\u3001DevOps\u3092\u8d85\u3048\u305f\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3067Infrastructure as Code\u3092\u5b9f\u8df5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nGoogle Cloud Build\u3092\u4f7f\u3063\u3066\u3001@xkumiyu \u3055\u3093\u3082\u7d39\u4ecb\u3057\u305fTensorFlow Serving\u3092\u5b9f\u884c\u3059\u308b\u3061\u3087\u3063\u3068\u5909\u308f\u3063\u305f\u30c7\u30e2\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>DevOps\u306e\u305f\u3081\u306eInfrastructure as Code<\/h1>\n<p>Infrastructure as Code\u306f\u30a4\u30f3\u30d5\u30e9\u3092\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3068\u540c\u3058\u3088\u3046\u306b\u53d6\u308a\u6271\u3046\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u69cb\u7bc9\u3092\u81ea\u52d5\u5316\u3057\u3001\u304b\u3064\u4f55\u5ea6\u3067\u3082\u518d\u5229\u7528\u30fb\u518d\u73fe\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3084\u30b3\u30fc\u30c9\uff0f\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5bfe\u3057\u3066\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3001\u8a66\u9a13\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u306a\u3069\u3068\u3044\u3063\u305f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u9069\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066Infrastructure as Code\u3092\u5b9a\u7fa9\u3057\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u30a4\u30f3\u30d5\u30e9\u306e\u8ab2\u984c\u3092\u89e3\u3053\u3046\u3068\u3044\u3046\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>Cloud\u30b5\u30fc\u30d3\u30b9\u304c\u5e83\u304c\u3063\u305f\u3053\u3068\u306b\u3088\u308a\u3001Infrastructure as Code\u306e\u9069\u7528\u7bc4\u56f2\u304c\u62e1\u5927\u3057\u3066\u3044\u307e\u3059\u3002Oreilly\u306e\u6700\u65b0\u306e\u8abf\u67fb\u7d50\u679c\u3092\u898b\u308b\u3068\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u6280\u8853\u3092\u6d3b\u7528\u3057\u3066\u3044\u308b\u4f01\u696d\u306f61%\u306b\u767b\u3063\u3066\u304a\u308a\u3001\u5206\u6563\u3055\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u65b9\u5f0f\u306e\u9700\u8981\u304c\u9ad8\u307e\u3063\u3066\u3044\u308b\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u81ea\u4f53\u306e\u4f5c\u308a\u65b9\u3082\u5909\u308f\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002\u81ea\u5206\u305f\u3061\u3067\u306f\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3092\u7ba1\u7406\u305b\u305a\u306bManaged RDB\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306a\u3001\u76ee\u7684\u306b\u6cbf\u3063\u305f\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\uff0f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30b5\u30fc\u30d3\u30b9\u3092\u7d44\u307f\u5165\u308c\u308b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u5897\u3048\u3066\u304d\u3066\u304a\u308a\u3001Infrastructure as Code\u306b\u306f\u305d\u3046\u3044\u3063\u305f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u307e\u3067\u3082\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u80cc\u666f\u304b\u3089\u3001DevOps\u306e\u73fe\u5834\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a4\u30f3\u30d5\u30e9\u3068\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306b\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001Infrastructure as Code\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u5f53\u305f\u308a\u524d\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002\u4e8b\u5b9f\u3001Puppet\u3068CircleCI\u304c\u5831\u544a\u3057\u305f2020\u5e74\u306eDevOps report\u306b\u304a\u3044\u3066\u3082\u3001\u52b9\u679c\u7684\u306a\u5909\u66f4\u7ba1\u7406\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\uff11\u3064\u306e\u8981\u7d20\u3068\u3057\u3066\u300c\u5909\u66f4\u70b9\u3092Code\u3067\u66f8\u304f\u300d\u3053\u3068\u3092\u6319\u3052\u3066\u304a\u308a\u3001Infrastructure as Code\u306e\u91cd\u8981\u6027\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u8a00\u3044\u63db\u3048\u308b\u3068\u3001Infrastructure as Code\u306a\u3057\u3067\u306f\u3001\u7af6\u4e89\u529b\u306e\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u7d9a\u3051\u308b\u3053\u3068\u304c\u56f0\u96e3\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306eInfrastructure as Code\u3067\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u8a2d\u5b9a\u5909\u66f4\u306b\u3064\u3044\u3066\u3001Terraform\u306a\u3069\u3092\u4f7f\u3063\u3066\u9069\u7528\u3059\u308b\u5f62\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u3064\u307e\u308a\u3001DevOps\u306e\u5de5\u7a0b\u306e\u9650\u3089\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u306e\u307f\u5b9f\u884c\u3055\u308c\u308b\u3001\u3069\u3061\u3089\u304b\u3068\u3044\u3046\u3068\u9759\u7684\u306b\u6d3b\u7528\u3055\u308c\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001Infrastructure as Code\u306f\u3082\u3063\u3068\u52d5\u7684\u306b\u6d3b\u7528\u3067\u304d\u308b\u306e\u3067\u306f\u3001\u3068\u3044\u3046\u306e\u304c\u4eca\u65e5\u306e\u4e3b\u5f35\u3067\u3059\u3002<\/p>\n<h1>\u30a4\u30f3\u30d5\u30e9\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304c\u5168\u3066\u5ba3\u8a00\u7684API\u306b<\/h1>\n<p>\u3042\u3048\u3066\u6975\u8ad6\u306b\u632f\u3063\u305f\u30bf\u30a4\u30c8\u30eb\u3092\u3064\u3051\u3066\u3044\u307e\u3059\u304c\u3001\u8fd1\u5e74\u3001\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\uff08\u3055\u3089\u306b\u306fIT\u5168\u4f53\u306b\uff09\u306b\u304a\u3044\u3066\u3001\u547d\u4ee4\u7684\uff08Imperative\uff09\u304b\u3089\u5ba3\u8a00\u7684\uff08Declarative\uff09\u30a2\u30d7\u30ed\u30fc\u30c1\u3078\u306e\u30b7\u30d5\u30c8\u304c\u8d77\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5ba3\u8a00\u7684\u306aAPI\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u306f\u3001\u80cc\u5f8c\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u8907\u96d1\u306a\u7279\u6027\u3092\u610f\u8b58\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30a4\u30f3\u30d5\u30e9\u306b\u5bfe\u3059\u308b\u671f\u5f85\u5024\u3068\u306a\u308b\u8a2d\u5b9a\u3092\u6e21\u3059\u3060\u3051\u3088\u304f\u306a\u308b\u305f\u3081\u3001\uff11\u3064\uff11\u3064\u306e\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6271\u3046\u7bc4\u56f2\uff0f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5897\u3048\u305f\u5834\u5408\u3067\u3082\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306b\u30a4\u30f3\u30d5\u30e9\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u7ba1\u7406\u304c\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u3001Infrastructure as Code\u306e\u30c4\u30fc\u30eb\u3067\u3082\u5ba3\u8a00\u7684\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u3082\u306e\u304c\u4e3b\u6d41\u306b\u306a\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002Terraform\u304c\u307e\u3055\u306b\u5ba3\u8a00\u7684\u30c4\u30fc\u30eb\u306e\u4ee3\u8868\u683c\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u5ba3\u8a00\u7684API\u306f\u3001Software-Defined Infrastructure\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u3067Cloud\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u30e6\u30fc\u30b6\u306b\u3068\u3063\u3066\u9069\u5207\u306a\u62bd\u8c61\u5316\u3092\u8ffd\u6c42\u3057\u305f\u7d50\u679c\u3067\u3057\u305f\u3002\u5ba3\u8a00\u7684API\u306e\u88cf\u3067\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u306e\u8907\u96d1\u6027\u3092\u96a0\u853d\u3059\u308b\u305f\u3081\u306eControl loop\u304c\u52d5\u3044\u3066\u3044\u307e\u3059\u3002Control loop\u306e\u4e2d\u3067\u3001\u30a4\u30f3\u30d5\u30e9\u306e\u72b6\u614b\u3092\u89b3\u5bdf (Observe\uff09\u3057\u3001\u671f\u5f85\u5024\u3068\u306e\u5dee\u5206\u3092\u8a08\u7b97\uff08Diff\uff09\u3057\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u518d\u8a2d\u5b9a\uff08Feedback\uff09\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u306e\u671f\u5f85\u5024\u306b\u53ce\u675f\u3059\u308b\u3088\u3046\u50cd\u304d\u304b\u3051\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306eControl loop\u306f\u3001\u3057\u3070\u3057\u3070Cloud\u30d7\u30ed\u30d0\u30a4\u30c0\u3084\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306e\u571f\u58cc\u304c\u3042\u308b\u5927\u304d\u306a\u7d44\u7e54\u3067\u306e\u307f\u5b9f\u88c5\u30fb\u5229\u7528\u53ef\u80fd\u306a\u3082\u306e\u3067\u3057\u305f\u3002AWS\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3042\u308bColm \u306eQCon\u306e\u767a\u8868\u3092\u898b\u3066\u5206\u304b\u308b\u3088\u3046\u306b\u3001Cloud\u30d7\u30ed\u30d0\u30a4\u30c0\u306fControl loop\u306e\u5b9f\u88c5\u306e\u7d4c\u9a13\u5024\u30fb\u30ce\u30a6\u30cf\u30a6\u3092\u305f\u3081\u3066\u304a\u308a\u3001\u4e00\u671d\u4e00\u5915\u3067\u5b9f\u73fe\u3067\u304d\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3053\u3068\u304c\u5bb9\u6613\u306b\u60f3\u50cf\u3067\u304d\u307e\u3059\u3002\u4e8b\u5b9f\u3001\u79c1\u3082SDN (Software Defined Networking) \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u958b\u767a\u73fe\u5834\u306b\u3044\u304f\u3064\u304b\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001Control loop\u3092\u81ea\u5206\u305f\u3061\u306e\u3082\u306e\u306b\u3059\u308b\u305f\u3081\u306b\u81a8\u5927\u306a\u52aa\u529b\u304c\u8cbb\u3084\u3057\u3066\u3044\u307e\u3057\u305f\u3002\uff08\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u3053\u3061\u3089\u306e\u30c8\u30d4\u30c3\u30af\u3064\u3044\u3066\u3082\u3044\u3064\u304b\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u3057\u304b\u3057\u3001Kubernetes\u306e\u767b\u5834\u306b\u3088\u308a\u72b6\u6cc1\u304c\u4e00\u5909\u3057\u307e\u3059\u3002Kubernetes\u306f\u3001Reconcile loop\u3068\u547c\u3070\u308c\u308bControl loop\u3092\u5b9f\u88c5\u3057\u3066\u304a\u308a\u3001\u30b3\u30f3\u30c6\u30ca (Pod) \u306e\u72b6\u614b\u3092\u89b3\u5bdf\u3057\u3001\u30b3\u30f3\u30c6\u30ca\u6570\u3092\u5236\u5fa1\u3059\u308b (ReplicaSet) \u3088\u3046\u306a\u5ba3\u8a00\u7684\u306aAPI\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002Kubernetes\u306f\u3001\u30e6\u30fc\u30b6\u81ea\u8eab\u3067\u5ba3\u8a00\u7684API\u3092\u5b9f\u88c5\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u3057\u3066\u306e\u9854\u3092\u6301\u3063\u3066\u304a\u308a\u3001\u30e6\u30fc\u30b6\u304c\u3001\u3053\u306eReconcile loop\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30fb\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u3001Kubernetes\u3092\u4f7f\u3063\u305f\u5ba3\u8a00\u7684API\u306e\u5b9f\u88c5\u304c\u5897\u3048\u3066\u304d\u3066\u304a\u308a\u3001\u3053\u308c\u304b\u3089\u3082\u307e\u3059\u307e\u3059\u5897\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u5ba3\u8a00\u7684API\u304c\u30e6\u30fc\u30b6\u304a\u3088\u3073Infrastructure as Code\u306b\u53d7\u3051\u5165\u308c\u3089\u308c\u3001\u304b\u3064Control loop\u306e\u5b9f\u88c5\u65b9\u5f0f\u304c\u5e83\u307e\u3063\u305f\u7d50\u679c\u3001\u3053\u308c\u304b\u3089\u3082\u5ba3\u8a00\u7684API\u304c\u5897\u3048\u3066\u3044\u304d\u3001\u69d8\u3005\u306a\u62bd\u8c61\u30ec\u30d9\u30eb\u3067\u306e\u5ba3\u8a00\u7684API\u304c\u3042\u3075\u308c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u306f\u3001\u5ba3\u8a00\u7684API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u65b9\u5f0f\u3068\u3057\u3066\u306eInfrastructure as Code\u304c\u62c5\u3046\u5f79\u5272\u3082\u5897\u3048\u3066\u304f\u308b\u3068\u4e88\u60f3\u3055\u308c\u307e\u3059\u3002<\/p>\n<h1>Infrastructure as Code\u3067\u30c7\u30fc\u30bf\u3092\u6271\u3046<\/h1>\n<p>\u5ba3\u8a00\u7684API\u306e\u4e16\u754c\u306f\u7d20\u6674\u3089\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u30a4\u30f3\u30d5\u30e9\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff11\u3064\uff11\u3064\u306e\u8a2d\u5b9a\u3092\u5ba3\u8a00\u3057\u3001\u305d\u308c\u3092\u305d\u306e\u307e\u307e\u30b3\u30fc\u30c9\u3067\u7ba1\u7406\u3059\u308b\u5f93\u6765\u306eInfrastructure as Code\u3067\u306f\u3001\u30b9\u30b1\u30fc\u30eb\u3057\u306a\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002YAML\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3092\uff11\u3064\uff11\u3064\u7ba1\u7406\u3059\u308b\u306e\u304c\u8f9b\u304f\u306a\u308b\u306e\u306f\u76ee\u306b\u898b\u3048\u3066\u3044\u307e\u3059\u304c\u3001Terraform\u306a\u3069\u306eDSL\u3092\u4f7f\u3063\u3066\u52b9\u7387\u5316\u3057\u305f\u3068\u3057\u3066\u3082\u3001\u8a2d\u5b9a\u3092\u5217\u6319\u3057\u3066\u3044\u304f\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u306f\u5909\u308f\u308a\u306f\u306a\u3044\u305f\u3081\u3001\u3069\u3046\u3057\u3066\u3082\u8a2d\u5b9a\u306e\u91cd\u8907\u3001\u7af6\u5408\u3001\u305a\u308c\uff08Configration drift\uff09\u306a\u3069\u306e\u8ab2\u984c\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u308a\u3001\u4e00\u8cab\u6027\u3092\u4fdd\u3064\u306e\u304c\u96e3\u3057\u304f\u306a\u3063\u3066\u304d\u307e\u3059\u3002Terraform\u3092\u5229\u7528\u3057\u3066\u3044\u3066\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5897\u3048\u308b\u306b\u3064\u308c\u3066\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304c\u5927\u304d\u304f\u306a\u308a\u3001\uff11\u3064\uff11\u3064\u306e\u30ea\u30bd\u30fc\u30b9\u8a2d\u5b9a\u304c\u8ffd\u3044\u304b\u3051\u3065\u3089\u304f\u306a\u3063\u305f\u7d50\u679c\u3001\u30b3\u30fc\u30c9\u306e\u30ec\u30d3\u30e5\u30fc\u304c\u96e3\u3057\u304f\u306a\u3063\u305f\u3001\u306a\u3069\u3068\u3044\u3063\u305f\u7d4c\u9a13\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff11\u3064\uff11\u3064\u8a2d\u5b9a\u3092\u5217\u6319\u3057\u3066\u3044\u304f\u5f62\u304c\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u306e\u9069\u5207\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u306f\u306a\u304b\u3063\u305f\u3001\u3059\u306a\u308f\u3061\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u30a4\u30f3\u30d5\u30e9\u306e\u8ab2\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u5225\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u3042\u308b\u3001\u3068\u3044\u3046\u610f\u5473\u306a\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u306a\u304b\u3001Configuration as Data\u306b\u3064\u3044\u3066\u306e\u8b70\u8ad6\u3092\u898b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002Google Cloud\u306f\u3001\u81ea\u8eab\u306e\u30d6\u30ed\u30b0\u3067\u3001Kubernetes API\u3092\u901a\u3057\u3066Google Cloud\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u30fb\u8a2d\u5b9a\u3067\u304d\u308bConfig Connector\u30b5\u30fc\u30d3\u30b9\u3092\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306aConfiguration as Data\u3068\u3057\u3066\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001Kubernetes\u306eAPI\u3092\u901a\u3057\u3066\u7ba1\u7406\u3055\u308c\u308b\u306e\u306f\u30c7\u30fc\u30bf\u3067\u3042\u308a\u3001Kubernetes\u306e\u4e2d\u3067\u52a0\u5de5\u30fb\u53ce\u675f\u3055\u305b\u3066\u3044\u304f\u3001\u3088\u308a\u52d5\u7684\u306a\u3082\u306e\u3060\u3001\u3068\u3044\u3046\u4e3b\u5f35\u3067\u3059\u3002\u512a\u308c\u305f\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u308bKubernetes\u306e\u5ba3\u8a00\u7684API\u3067\u7d71\u5408\u7684\u306b\u30af\u30e9\u30a6\u30c9\u306eAPI\u3092\u7ba1\u7406\u3067\u304d\u308b\u70b9\u3067\u3068\u3066\u3082\u9b45\u529b\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3042\u308a\u3001Crossplane\u3082\u540c\u69d8\u306b\u3001Kubernetes API\u3092\u901a\u3057\u3066Multi Cloud\u3092\u7ba1\u7406\u3059\u308b\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u6848\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3001Google Cloud\u306e\u540c\u8a18\u4e8b\u3067\u306f\u3001Terraform\u3092\u4f7f\u3063\u3066GCP API\u3092\u5199\u50cf\u3057\u3066\u3044\u308bKubernetes API\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066\u306eInfrastructure as Code\u3068\u3044\u3046\u89b3\u70b9\u3067\u306f\u3001\u5927\u304d\u306a\u6539\u5584\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001Configuration as Data\u306f\u3001\u300c\u30a4\u30f3\u30d5\u30e9\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u8a2d\u5b9a\u306f\u3001\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u9759\u7684\u306a\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u30c7\u30fc\u30bf\u306e\u3088\u3046\u306b\u52d5\u7684\u306a\u3082\u306e\u3067\u3042\u308b\u300d\u3001\u3068\u3044\u3046\u8003\u3048\u65b9\u306e\u30b7\u30d5\u30c8\u3092\u3082\u305f\u3089\u3057\u305f\u70b9\u3067\u6ce8\u76ee\u3059\u3079\u304d\u3060\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f\u52a0\u5de5\u30fb\u51e6\u7406\u3092\u65bd\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u3082\u306e\u3067\u3042\u308a\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066Git\u306bpush\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u52a0\u5de5\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3053\u305d\u304c\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u306a\u308bInfrastructure as Code\u306e\u5bfe\u8c61\u3067\u3042\u308b\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u52a0\u5de5\u51e6\u7406\u306bPython\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u5229\u7528\u3057\u3066\u3082\u3088\u3044\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u306b\u7279\u5316\u3057\u305f\u8a00\u8a9e\u30fb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u5fc5\u8981\u3068\u3055\u308c\u3001\u8fd1\u5e74\u3001Infrastructure as Code\u3067\u6d3b\u7528\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u8a18\u8ff0\u8a00\u8a9e\u304c\u5897\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e00\u90e8\u3092\u4ee5\u4e0b\u306b\u5217\u6319\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u306a\u304b\u3067\u3082\u52d5\u7684\u306b\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306b\u306fCUE\u304c\u9069\u3057\u3066\u3044\u308b\u3068\u79c1\u306f\u8003\u3048\u3066\u304a\u308a\u3001\u6b21\u306e\u7ae0\u3067CUE\u306e\u305d\u306e\u6700\u5927\u306e\u7279\u5fb4\u306e\uff11\u3064\u3092\u4f7f\u3063\u305f\u30c7\u30e2\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Jsonnet<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Kustomize<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Dhall<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Tanka<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">CUE<\/ul>\n<h1>CUE &#8211; \u30c7\u30fc\u30bf\u51e6\u7406\u306b\u7279\u5316\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u305f\u3081\u306e\u8a00\u8a9e<\/h1>\n<p>CUE\u306f\u3001Google\u306eMarcel van Lohuizen\u304c\u4f5c\u3063\u305f\u3001\u30c7\u30fc\u30bf\u5236\u7d04\u8a18\u8ff0\u8a00\u8a9e\u3067\u3059\u3002\u8a73\u7d30\u306fMarcel\u306e\u8b1b\u6f14\u306b\u8b72\u308a\u307e\u3059\u304c\u3001\u4e00\u8cab\u6027\u306b\u91cd\u304d\u3092\u304a\u3044\u3066\u304a\u308a\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u691c\u8a3c\u3001\u7d50\u5408\u3001\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002\u500b\u4eba\u7684\u306b\u306f\u3001\u8907\u96d1\u6027\u3092\u4e0a\u3052\u308b\u539f\u56e0\u3068\u306a\u308b\u7d99\u627f\u3084\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3092\u8a8d\u3081\u3066\u3044\u306a\u3044\u70b9\u304c\u597d\u307f\u3067\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001CUE\u306f\u3001\u8c4a\u5bcc\u306aGolang SDK\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001CUE\u3067\u751f\u6210\u3057\u305f\u30c7\u30fc\u30bf\u306b\u304b\u304b\u308b\u51e6\u7406\u3092Golang\u3067\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u52d5\u7684\u306b\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30c7\u30fc\u30bf\u3092\u3064\u304b\u3063\u305f\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u3001API\u307e\u3067\u3092CUE-Golang\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3042\u308a\u3001\u305d\u308c\u3092\u5b9f\u73fe\u3055\u305b\u3066\u3044\u308bCUE\u306f\u5f37\u529b\u306a\u8a00\u8a9e\u3067\u3042\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002Infrastructure as Code\u306e\u5bfe\u8c61\u3068\u3057\u3066CUE\u3092\u6349\u3048\u305f\u3068\u304d\u3001\u30a4\u30f3\u30d5\u30e9\u306e\u671f\u5f85\u5024\u30fb\u30c7\u30fc\u30bf\u3092\u5ba3\u8a00\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u3053\u308c\u307e\u3067\u4ee5\u4e0a\u306b\u52d5\u7684\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u30a4\u30f3\u30d5\u30e9\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u6d3b\u7528\u3057\u305f\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306e\u5e45\u304c\u5e83\u304c\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4e00\u4f8b\u3068\u3057\u3066\u3001Cloud Build\u3092\u4f7f\u3063\u3066\u3001\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8\u30ea\u30bd\u30fc\u30b9\u3092\u78ba\u4fdd\u3059\u308b\u30c7\u30e2\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30e2\uff1a\u3000Cloud Build\u3092\u4f7f\u3063\u305f\u5ba3\u8a00\u7684\u306aPrediction\u30c4\u30fc\u30eb<\/h2>\n<p>CUE\u3068Golang\u3092\u4f7f\u3063\u3066\u30c7\u30e2\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u69cb\u6210\u56f3\u306e\u3088\u3046\u306b\u3001CUE\u3067\u66f8\u304b\u308c\u305fPrediction\u8a2d\u5b9a\u3092Golang\u306e\u30c4\u30fc\u30eb\u304c\u8aad\u307f\u53d6\u308a\u3001Google Cloud Build\u3092\u4f7f\u3063\u3066TensorFlow Servings\u306ePrediction\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u3001Cloud Build\u3092\u3069\u3046\u5b9f\u884c\u3059\u308b\u304b\u3001\u3059\u306a\u308f\u3061\u30e1\u30a4\u30f3\u3068\u306a\u308bCloud Build\u306e\u5ba3\u8a00\u7684\u30c7\u30fc\u30bf\u306e\u90e8\u5206\u3092CUE\u3067\u66f8\u304d\u3001Cloud Build API\u306b\u305d\u306e\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u30c9\u30e9\u30a4\u30d0\u76f8\u5f53\u306e\u90e8\u5206\u3092Golang\u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001Cloud Build\u3078\u306e\u30a4\u30f3\u30d7\u30c3\u30c8\u3092\u7528\u610f\u3059\u308b\u305f\u3081\u306b\u3001Cloud Storage\u306b\u30c7\u30fc\u30bf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u524d\u51e6\u7406\u306b\u3064\u3044\u3066\u3082Golang\u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30c7\u30e2\u3067\u5b9f\u88c5\u3057\u305f\u30b3\u30fc\u30c9\u306f\u5168\u3066\u3053\u3061\u3089\u306b\u304a\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308c\u3070\u898b\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nhttps:\/\/github.com\/j-maxi\/declarative-tools\/tree\/20201222-blog<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5b1637434c4406ce93a1\/26-0.png\" alt=\"predict.png\" \/><\/div>\n<p>\u30c7\u30e2\u306e\u5b9f\u884c\u81ea\u4f53\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bGolang\u3067\u30d3\u30eb\u30c9\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea \/bin\/predict \u306b\u3001Prediction\u8a2d\u5b9a config.cue \u3092\u6e21\u305b\u3070\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u5b9f\u884c\u3057\u3066\u3044\u308bPrediction model\u306f half_plus_two \u3067\u3042\u308a\u3001\u5358\u7d14\u306b\u5165\u529b\u30c7\u30fc\u30bf\u3092\u534a\u5206\u306b\u5272\u3063\u3066\uff12\u8db3\u3059\u3060\u3051\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3042\u308a\u3001\u5b9f\u969b\u306b\u4ee5\u4e0b\u306e\u7d50\u679c\u304c\u305d\u3046\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># Input file<\/span>\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">cat <\/span>sample-data.txt \r\n1.0\r\n5.0\r\n3.5\r\n2.0\r\n8.0\r\n8.0\r\n4.0\r\n5.5\r\n5.0\r\n\r\n<span class=\"c\"># Execution<\/span>\r\n<span class=\"nv\">$ <\/span>.\/bin\/predict config.cue \r\n2020\/12\/22 01:11:45 Loading Predict instruction <span class=\"o\">(<\/span><span class=\"nb\">id<\/span><span class=\"o\">=<\/span>e3862052<span class=\"o\">)<\/span><span class=\"nb\">.<\/span>\r\n2020\/12\/22 01:11:46 Uploading input file sample-data.txt.\r\n2020\/12\/22 01:11:48 Writing input file to gs:\/\/predictor-sample\/workspace-e3862052\/input.tar.gz.\r\n2020\/12\/22 01:11:49 Triggering CloudBuild.\r\n2020\/12\/22 01:11:53 Build triggered with projects\/531053117292\/locations\/global\/builds\/fe34d02e-db0e-45b8-a72b-6e67778b773f. Waiting <span class=\"k\">for <\/span>its completion.\r\n2020\/12\/22 01:12:30 Downloading results.\r\n2020\/12\/22 01:12:32 Prediction succeeded. Output written to output-e3862052.txt.\r\n\r\n<span class=\"c\"># check output<\/span>\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">cat <\/span>output-e3862052.txt \r\n2.5\r\n4.5\r\n3.75\r\n3\r\n6\r\n6\r\n4\r\n4.75\r\n4.5\r\n<\/code><\/pre>\n<p>config.cue \u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001Prediction\u3067\u5229\u7528\u3059\u308b\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u304a\u3088\u3073\u63a8\u8ad6\u30e2\u30c7\u30eb\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">import<\/span> <span class=\"p\">(<\/span>\r\n  <span class=\"s\">\"github.com\/j-maxi\/declarative-tools\/predictor\"<\/span>\r\n<span class=\"p\">)<\/span>\r\n<span class=\"n\">predictor<\/span><span class=\"o\">.<\/span><span class=\"n\">Predict<\/span> <span class=\"o\">&amp;<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"n\">input<\/span><span class=\"o\">:<\/span> <span class=\"s\">\"sample-data.txt\"<\/span>\r\n  <span class=\"n\">model<\/span><span class=\"o\">:<\/span> <span class=\"s\">\"half_plus_two\"<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>Prediction\u8a2d\u5b9a\u306e\u8a73\u7d30\u306f\u3001\u4e0a\u8a18 github.com\/j-maxi\/declarative-tools\/predictor \u3067import\u3057\u3066\u3044\u308b\u5143\u306eCUE\u30d5\u30a1\u30a4\u30eb predict\/main.cue \u306b\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u3001\u305d\u306e\u5b9f\u88c5\u306e\u4e00\u90e8\u3092\u304a\u898b\u305b\u3057\u307e\u3059\u3002Predict.cloudbuild \u306f\u3001Cloud Build\u306e\u5ba3\u8a00\u90e8\u5206\u3067\u3042\u308a\u3001\u305d\u306e\u4e2d\u3067\u8907\u6570\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u5165\u529b\u3092\u6574\u5f62\u3059\u308b\u305f\u3081\u306e _stepFormatInput \u3084Prediction\u3092\u5b9f\u884c\u3059\u308b _stepPredict \u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002_stepPredict \u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001snippet\u4e0b\u90e8\u306b\u793a\u3057\u3066\u304a\u308a\u3001\u3053\u3053\u3067\u547c\u3093\u3067\u3044\u308b myserving Docker image\u306f\u3001TensorFlow Serving\u3092\u5b9f\u884c\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u306e\u30e2\u30c7\u30eb\u304b\u3089\u7d50\u679c\u3092\u5f97\u308b\u3060\u3051\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u5b9f\u88c5\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">package<\/span> <span class=\"n\">predictor<\/span>\r\n<span class=\"k\">import<\/span> <span class=\"p\">(<\/span>\r\n  <span class=\"n\">cb<\/span> <span class=\"s\">\"google.golang.org\/genproto\/googleapis\/devtools\/cloudbuild\/v1:cloudbuild\"<\/span>\r\n<span class=\"p\">)<\/span>\r\n<span class=\"n\">Predict<\/span><span class=\"o\">:<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"n\">model<\/span><span class=\"o\">:<\/span>     <span class=\"kt\">string<\/span>\r\n  <span class=\"n\">projectID<\/span><span class=\"o\">:<\/span> <span class=\"kt\">string<\/span> <span class=\"c\">\/\/ filled by go runtime<\/span>\r\n<span class=\"p\">(<\/span><span class=\"n\">skip<\/span><span class=\"p\">)<\/span>\r\n  <span class=\"n\">cloudbuild<\/span><span class=\"o\">:<\/span> <span class=\"n\">cb<\/span><span class=\"o\">.<\/span><span class=\"err\">#<\/span><span class=\"n\">Build<\/span>\r\n  <span class=\"n\">cloudbuild<\/span><span class=\"o\">:<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"n\">steps<\/span><span class=\"o\">:<\/span> <span class=\"p\">[<\/span>\r\n      <span class=\"n\">_stepFormatInput<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"n\">_stepPredict<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"n\">_stepFormatOutput<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"n\">_stepSaveOutput<\/span><span class=\"p\">,<\/span>\r\n    <span class=\"p\">]<\/span>\r\n<span class=\"p\">(<\/span><span class=\"n\">skip<\/span><span class=\"p\">)<\/span>\r\n\r\n    <span class=\"n\">_stepPredict<\/span><span class=\"o\">:<\/span> <span class=\"p\">{<\/span>\r\n      <span class=\"n\">name<\/span><span class=\"o\">:<\/span> <span class=\"s\">\"asia.gcr.io\/<\/span><span class=\"err\">\\(<\/span><span class=\"s\">projectID)\/myserving:test\"<\/span>\r\n      <span class=\"n\">args<\/span><span class=\"o\">:<\/span> <span class=\"p\">[<\/span>\r\n        <span class=\"s\">\"<\/span><span class=\"err\">\\(<\/span><span class=\"s\">model)\"<\/span><span class=\"p\">,<\/span> \r\n        <span class=\"s\">\"input.json\"<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"p\">]<\/span>\r\n      <span class=\"n\">env<\/span><span class=\"o\">:<\/span> <span class=\"p\">[<\/span>\r\n        <span class=\"s\">\"MODEL_NAME=<\/span><span class=\"err\">\\(<\/span><span class=\"s\">model)\"<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"p\">]<\/span>\r\n    <span class=\"p\">}<\/span>\r\n<span class=\"p\">(<\/span><span class=\"n\">skip<\/span><span class=\"p\">)<\/span>\r\n  <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u3067\u3001cloudbuild: cb.#Build \u3068\u3044\u3046\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306fCloud Build\u304c\u63d0\u4f9b\u3059\u308bprotobuf\u304b\u3089\u751f\u6210\u3057\u305fCUE schema\u3092\u9069\u7528\u3057\u3066\u3044\u308b\u7b87\u6240\u3067\u3042\u308a\u3001cloudbuild struct\u3067\u5ba3\u8a00\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u3001Cloud Build API\u3067\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3082\u306e\u304b\u3001Validation\u3092\u304b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001Golang\u5074\u306e\u5b9f\u88c5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30c7\u30e2\u5b9f\u88c5\u3092\u4e00\u90e8\u306e\u51e6\u7406\u90e8\u5206\u3092\u30b7\u30f3\u30d7\u30eb\u5316\u3057\u305fsnippet\u3067\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001CUE\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u51fa\u3057\u3001\u305d\u306e\u306a\u304b\u3067cloudbuild\u306e\u5ba3\u8a00\u90e8\u5206\u3092\u63a2\u3057\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u5ba3\u8a00\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092gRPC\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u3057\u3066\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u304a\u308a\u3001CUE\u3067\u5ba3\u8a00\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306bGolang\u3067\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\">\/\/ Simplified snippet from man.go<\/span>\r\n\r\n<span class=\"k\">var<\/span> <span class=\"n\">runtime<\/span> <span class=\"n\">cue<\/span><span class=\"o\">.<\/span><span class=\"n\">Runtime<\/span>\r\n\r\n<span class=\"c\">\/\/ Load<\/span>\r\n<span class=\"n\">builds<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">load<\/span><span class=\"o\">.<\/span><span class=\"n\">Instances<\/span><span class=\"p\">([]<\/span><span class=\"kt\">string<\/span><span class=\"p\">{<\/span><span class=\"n\">file<\/span><span class=\"p\">},<\/span> <span class=\"no\">nil<\/span><span class=\"p\">)<\/span>\r\n<span class=\"n\">instance<\/span><span class=\"p\">,<\/span> <span class=\"n\">_<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">runtime<\/span><span class=\"o\">.<\/span><span class=\"n\">Build<\/span><span class=\"p\">(<\/span><span class=\"n\">builds<\/span><span class=\"p\">[<\/span><span class=\"m\">0<\/span><span class=\"p\">])<\/span>\r\n\r\n<span class=\"c\">\/\/ Read Cloud Build declaration<\/span>\r\n<span class=\"n\">data<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">instance<\/span><span class=\"o\">.<\/span><span class=\"n\">Lookup<\/span><span class=\"p\">(<\/span><span class=\"s\">\"cloudbuild\"<\/span><span class=\"p\">)<\/span>\r\n\r\n<span class=\"c\">\/\/ Create gRPC request data<\/span>\r\n<span class=\"n\">build<\/span> <span class=\"o\">:=<\/span> <span class=\"o\">&amp;<\/span><span class=\"n\">cloudbuildpb<\/span><span class=\"o\">.<\/span><span class=\"n\">Build<\/span><span class=\"p\">{}<\/span>\r\n<span class=\"k\">var<\/span> <span class=\"n\">buf<\/span> <span class=\"n\">bytes<\/span><span class=\"o\">.<\/span><span class=\"n\">Buffer<\/span>\r\n<span class=\"c\">\/\/ CUE to JSON<\/span>\r\n<span class=\"n\">json<\/span><span class=\"o\">.<\/span><span class=\"n\">NewEncoder<\/span><span class=\"p\">(<\/span><span class=\"o\">&amp;<\/span><span class=\"n\">buf<\/span><span class=\"p\">)<\/span><span class=\"o\">.<\/span><span class=\"n\">Encode<\/span><span class=\"p\">(<\/span><span class=\"n\">data<\/span><span class=\"p\">)<\/span>\r\n<span class=\"c\">\/\/ JSON to Protobuf<\/span>\r\n<span class=\"n\">jsonpb<\/span><span class=\"o\">.<\/span><span class=\"n\">Unmarshal<\/span><span class=\"p\">(<\/span><span class=\"o\">&amp;<\/span><span class=\"n\">buf<\/span><span class=\"p\">,<\/span> <span class=\"n\">build<\/span><span class=\"p\">)<\/span>\r\n<\/code><\/pre>\n<p>\u3055\u3089\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bGolang\u5074\u3067CUE\u306e\u5ba3\u8a00\u30c7\u30fc\u30bf\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6ce8\u5165\u3057\u3066\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001Golang\u5074\u3067\u751f\u6210\u3057\u305fID\u3092\u57cb\u3081\u305fGo\u306estrcut PredictInfo \u3092CUE\u306estruct\u306b\u5909\u63db\u3057\u3001CUE\u3067\u8a18\u8ff0\u3057\u305fCloud Build\u306e\u5ba3\u8a00\u30c7\u30fc\u30bf\u306b\u7d50\u5408 (Unify) \u3057\u3066\u3044\u307e\u3059\u3002CUE\u306f\u7d99\u627f\u3084Overlay\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u3089\u305a\u3001\u7d50\u5408\u6642\u306b\u5168\u3066\u306e\u5165\u529b\u3092\u540c\u5217\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u3001\u305d\u308c\u305e\u308c\u3067\u5ba3\u8a00\u3057\u305f\u30c7\u30fc\u30bf\u306b\u885d\u7a81\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002\u3059\u306a\u308f\u3061\u3001\u4eca\u56de\u306e\u30b1\u30fc\u30b9\u3067\u3001\u4f8b\u3048\u3070\u3000 ProjectID \u306b\u3064\u3044\u3066\u3001Golang\u5074\u3067\u6ce8\u5165\u3059\u308b\u5024\u3068\u306f\u7570\u306a\u308b\u5024\u3092CUE\u306e\u5ba3\u8a00\u30c7\u30fc\u30bf\u3067\u6307\u5b9a\u3057\u3066\u3044\u305f\u5834\u5408\u3001\u7d50\u5408\u306b\u5931\u6557\u3057\u3001\u53cc\u65b9\u306e\u30c7\u30fc\u30bf\u306b\u77db\u76fe\u304c\u3042\u308b\u3053\u3068\u306b\u6c17\u3065\u3051\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4e00\u8cab\u6027\u3092\u4fdd\u3064\u306e\u306b\u512a\u4f4d\u306a\u5236\u7d04\u3067\u3042\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\">\/\/ Simplified snippet from main.go<\/span>\r\n\r\n<span class=\"k\">var<\/span> <span class=\"n\">runtime<\/span> <span class=\"n\">cue<\/span><span class=\"o\">.<\/span><span class=\"n\">Runtime<\/span>\r\n\r\n<span class=\"c\">\/\/ parameters to inject<\/span>\r\n<span class=\"n\">info<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">PredictInfo<\/span><span class=\"p\">{<\/span>\r\n  <span class=\"n\">PredictID<\/span><span class=\"o\">:<\/span> <span class=\"n\">predictID<\/span><span class=\"p\">,<\/span>\r\n  <span class=\"n\">ProjectID<\/span><span class=\"o\">:<\/span> <span class=\"n\">googleProjectID<\/span><span class=\"p\">,<\/span>\r\n<span class=\"p\">}<\/span>\r\n<span class=\"c\">\/\/ convert Go struct to CUE Value<\/span>\r\n<span class=\"n\">codec<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">gocodec<\/span><span class=\"o\">.<\/span><span class=\"n\">New<\/span><span class=\"p\">(<\/span><span class=\"o\">&amp;<\/span><span class=\"n\">runtime<\/span><span class=\"p\">,<\/span> <span class=\"no\">nil<\/span><span class=\"p\">)<\/span>\r\n<span class=\"n\">infoValue<\/span><span class=\"p\">,<\/span> <span class=\"n\">_<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">codec<\/span><span class=\"o\">.<\/span><span class=\"n\">Decode<\/span><span class=\"p\">(<\/span><span class=\"n\">info<\/span><span class=\"p\">)<\/span>\r\n\r\n<span class=\"c\">\/\/ Unify and finalize the Predict operation to deal with<\/span>\r\n<span class=\"n\">val<\/span> <span class=\"o\">:=<\/span> <span class=\"n\">instance<\/span><span class=\"o\">.<\/span><span class=\"n\">Value<\/span><span class=\"p\">()<\/span><span class=\"o\">.<\/span><span class=\"n\">Unify<\/span><span class=\"p\">(<\/span><span class=\"n\">infoValue<\/span><span class=\"p\">)<\/span>\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u306e\u5b9f\u88c5\u306b\u3088\u308a\u3001Infrastructure as Code\u306e\u4e3b\u5f79\u3068\u3057\u3066CUE\u3067Cloud Build\u306e\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3057\u3064\u3064\u3001\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u305f\u51e6\u7406\u3092Golang\u5074\u306b\u59d4\u8b72\u3059\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051Cloud Build\u3067\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8\u30ea\u30bd\u30fc\u30b9\u3092\u78ba\u4fdd\u3057\u3066\u3001Prediction\u8a08\u7b97\u3059\u308b\u3001\u7c21\u6613\u30b5\u30fc\u30d0\u30ec\u30b9\u30c4\u30fc\u30eb\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001CUE\u306f\u3001\u30c7\u30fc\u30bf\u3092\u691c\u8a3c\u3001\u7d50\u5408\u3001\u751f\u6210\u3059\u308b\u305f\u3081\u306b\u5f37\u529b\u306a\u30c7\u30fc\u30bf\u8a18\u8ff0\u8a00\u8a9e\u3067\u3042\u308a\u3001\u3055\u3089\u306bGolang SDK\u306b\u3088\u3063\u3066\u30b7\u30fc\u30e0\u30ec\u30b9\u306bCUE\u306e\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u3092Golang\u5074\u3067\u5b9f\u884c\u3067\u304d\u308b\u3053\u3068\u304c\u5927\u304d\u306a\u5f37\u307f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002CUE\u306e\u30c7\u30fc\u30bf\u3092Golang\u3067\u8a55\u4fa1\u3057\u305f\u305d\u306e\u5834\u3067API\u3092\u547c\u3073\u51fa\u3057\u3001API\u306e\u30b9\u30c6\u30fc\u30c8\u76e3\u8996\u3059\u308b\u3088\u3046\u306aControl loop\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3042\u308a\u3001\u52d5\u7684\u304b\u3064\u9ad8\u5ea6\u306a\u30a4\u30f3\u30d5\u30e9\u5236\u5fa1\u3082\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<h1>\u6700\u5f8c\u306b<\/h1>\n<p>\u5ba3\u8a00\u7684API\u304c\u5897\u3048\u3066Infrastructure as Code\u306e\u9069\u7528\u7bc4\u56f2\u304c\u62e1\u5927\u3059\u308b\u306a\u304b\u3067\u3001Infrastructure as Code\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066\u30a4\u30f3\u30d5\u30e9\u306e\u30c7\u30fc\u30bf\u3092\u52a0\u5de5\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306a\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u5f93\u6765\u307e\u3067\u306eInfrastructure as Code\u3067\u5b9f\u73fe\u3067\u304d\u3066\u3044\u305f\u30b9\u30b3\u30fc\u30d7\u304b\u3089\u98db\u8e8d\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\nInfrastructure as Code\u3092DevOps\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u3060\u3051\u3057\u304b\u4f7f\u308f\u306a\u3044\u6280\u8853\u3068\u3057\u3066\u3068\u3089\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4fa1\u5024\u3092\u751f\u307f\u7d9a\u3051\u308b\u6280\u8853\u3001\u3068\u3057\u3066\u6349\u3048\u305f\u5834\u5408\u3001\u3053\u308c\u307e\u3067\u4ee5\u4e0a\u306b\u52d5\u7684\u306b\u5229\u7528\u3057\u3066\u3044\u304f\u5f62\u306b\u306a\u3063\u3066\u3082\u3088\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001CUE\u306f\u305d\u308c\u3092\u5b9f\u73fe\u3059\u308b\u53ef\u80fd\u6027\u3092\u6301\u3063\u305f\u8a00\u8a9e\u3067\u3042\u308a\u3001\u3053\u308c\u304b\u3089\u3082\u4f7f\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001KubeCon EU 2020\u3067\u79c1\u304cNTT Communications\u3068\u3057\u3066CUE\u3092\u4f7f\u3063\u3066\u53d6\u308a\u7d44\u3093\u3067\u3044\u308b\u5185\u5bb9\u3092\u767a\u8868\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3082\u3057\u8208\u5473\u304c\u3042\u308c\u3070\u305d\u3061\u3089\u3082\u3054\u89a7\u306b\u306a\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002<br \/>\nDeliver Your Cloud Native Application with Design Pattern as Code &#8211; Jun Makishi &amp; Rintaro Sekino, NTT Communications<\/p>\n<p>\u660e\u65e5\u306f\u3001 @kawatom \u3055\u3093\u306eIoT\u306e\u6ce8\u76ee\u682a\uff01EnOcean\u5bfe\u5fdc\u30de\u30eb\u30c1\u30bb\u30f3\u30b5\u3092\u30af\u30e9\u30a6\u30c9\u3067\u53ef\u8996\u5316\u3059\u308b\u3067\u3059\u3002\u304a\u697d\u3057\u307f\u306b\uff01<\/p>\n<h1>\u53c2\u8003\u6587\u732e<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Microservice Adoption in 2020<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">2020 State of DevOps Report<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">PID Loops and the Art of Keeping Systems Stable<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">I do declare! Infrastructure automation with Configuration as Data<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Manage any infrastructure your applications need directly from Kubernetes<\/ul>\n<\/li>\n<\/ul>\n<p>CUE: a data constraint language and shoo-in for Go. Marcel van Lohuizen, Google.<br \/>\nTensorFlow Serving with Docker<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306fNTT\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ba Advent Calendar 2020\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u6628\u65e5\u306f @ [&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-44784","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>- 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\/44784-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u306fNTT\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ba Advent Calendar 2020\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u6628\u65e5\u306f @ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-11T10:37:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T05:22:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5b1637434c4406ce93a1\/26-0.png\" \/>\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=\"4 \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\/44784-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-12-11T10:37:51+00:00\",\"dateModified\":\"2024-05-04T05:22:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/\"]}]},{\"@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\/44784-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- 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\/44784-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u3053\u306e\u8a18\u4e8b\u306fNTT\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ba Advent Calendar 2020\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u6628\u65e5\u306f @ [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-11T10:37:51+00:00","article_modified_time":"2024-05-04T05:22:08+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5b1637434c4406ce93a1\/26-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-12-11T10:37:51+00:00","dateModified":"2024-05-04T05:22:08+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/44784-2\/"]}]},{"@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\/44784-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44784","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=44784"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44784\/revisions"}],"predecessor-version":[{"id":98569,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44784\/revisions\/98569"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=44784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=44784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=44784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}