{"id":10353,"date":"2015-07-03T11:30:27","date_gmt":"2015-07-03T02:30:27","guid":{"rendered":"http:\/\/www.creationline.com\/?p=10353"},"modified":"2023-08-29T14:15:06","modified_gmt":"2023-08-29T05:15:06","slug":"consul%e3%82%b5%e3%83%bc%e3%83%90%e3%82%af%e3%83%a9%e3%82%b9%e3%82%bf%e6%a7%8b%e6%88%90%e6%89%8b%e9%a0%86%e3%81%ae%e6%ad%b4%e5%8f%b2-consul","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353","title":{"rendered":"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul"},"content":{"rendered":"<h2>Consul\u3068\u306f<\/h2>\n<p><a href=\"https:\/\/www.consul.io\/\">Consul<\/a> \u3068\u306f\u3001\u7c73 <a href=\"https:\/\/www.hashicorp.com\/\">HashiCorp<\/a> \u793e\u304c\u958b\u767a\u3059\u308b\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u691c\u51fa\u3068\u8a2d\u5b9a\u3092\u884c\u3046\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u578b\u306e\u69cb\u6210\u3067\u52d5\u4f5c\u3057\u3001\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30b9\u30c8\u30a2(KVS) \u306b\u4fdd\u6301\u3057\u305f\u30c7\u30fc\u30bf\u3092 DNS \u3084 HTTP \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u306f\u305d\u308c\u305e\u308c\u304c\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u6210\u3057\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u8d8a\u3057\u306b\u5225\u3005\u306e\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u3092\u307e\u305f\u3044\u3067\u63a5\u7d9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306e<a href=\"https:\/\/www.consul.io\/intro\/index.html\">\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/a>\u3084<a href=\"https:\/\/www.consul.io\/docs\/index.html\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>Consul \u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf<\/h2>\n<p>Consul \u30b5\u30fc\u30d0\u306f\u30af\u30e9\u30b9\u30bf\u3068\u3057\u3066\u52d5\u4f5c\u3057\u307e\u3059\u30021\u53f0\u3067\u3082\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u5197\u9577\u6027\u30fb\u8010\u969c\u5bb3\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u306b 3\u53f0\u3042\u308b\u3044\u306f 5\u53f0\u3067\u306e\u904b\u7528\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059(\u53c2\u8003: <a href=\"https:\/\/www.consul.io\/docs\/internals\/consensus.html#deployment_table\">Deployment Table<\/a>)\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f 3\u53f0\u306e Consul \u30b5\u30fc\u30d0\u306b\u3088\u308b\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3068\u3057\u307e\u3059\u3002\u4e8b\u524d\u306b 3\u53f0\u306e\u30de\u30b7\u30f3\u305d\u308c\u305e\u308c\u306b Consul \u30d0\u30a4\u30ca\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002Consul \u30d0\u30a4\u30ca\u30ea\u306f\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3082\u30b5\u30fc\u30d0\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u624b\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7 (\u30d0\u30fc\u30b8\u30e7\u30f3 0.4 \u4ee5\u4e0a\u3067\u306f\u975e\u63a8\u5968)<\/h3>\n<p>\u6ce8\u610f: Consul 0.4 \u4ee5\u4e0a\u3067\u306f<strong>\u975e\u63a8\u5968<\/strong>\u306e\u624b\u9806\u3067\u3059\u3002\u6bd4\u8f03\u306e\u305f\u3081\u306e\u53c2\u8003\u3068\u3057\u3066\u304f\u3060\u3055\u3044\u3002<a href=\"https:\/\/www.consul.io\/docs\/guides\/manual-bootstrap.html\">Manually Bootstrapping<\/a> \u3092\u53c2\u7167\u3057\u3066\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<strong>Consul-1<\/strong> \u30de\u30b7\u30f3\u306b\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u3066 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<a href=\"https:\/\/www.consul.io\/docs\/commands\/agent.html\">consul agent<\/a> \u306f Consul \u3092\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068\u3057\u3066\u3001<a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_server\">-server<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u308a\u30b5\u30fc\u30d0\u3067\u3001<a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_bootstrap\">-bootstrap<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u308a\u300c\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u300d\u30e2\u30fc\u30c9\u306b\u3066\u8d77\u52d5\u3057\u307e\u3059\u3002\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3068\u306f\u3001Consul \u3092\u6700\u521d\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u969b\u306b\u5fc5\u8981\u306a\u6e96\u5099\u3092\u884c\u3046\u52d5\u4f5c\u3067\u3059\u3002\u5f8c\u8ff0\u3057\u307e\u3059\u304c\u3001\u30af\u30e9\u30b9\u30bf\u304c\u69cb\u6210\u3055\u308c\u305f\u5f8c\u306f\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<blockquote><p>consul agent -server -bootstrap<\/p><\/blockquote>\n<p><!-- consul-cluster-manual-1-server-bootstrap.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10361\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\" alt=\"consul-cluster-manual-1-server-bootstrap\" width=\"288\" height=\"185\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png 288w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap-148x95.png 148w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/a><\/p>\n<p>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3057\u305f Consul \u30b5\u30fc\u30d0\u306f\u81ea\u5206\u81ea\u8eab\u3092\u30af\u30e9\u30b9\u30bf\u30ea\u30fc\u30c0\u30fc\u3068\u3057\u3066\u9078\u51fa\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u4ed6\u306e Consul \u30b5\u30fc\u30d0\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u3053\u306e 1\u53f0\u3060\u3051\u3067 Consul \u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u3068\u3057\u3066\u52d5\u4f5c\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u524d\u8ff0\u306e\u901a\u308a\u30011\u53f0\u3067\u306f\u5197\u9577\u6027\u304c\u306a\u3044\u305f\u3081\u3001\u3053\u3053\u3067\u306f 3\u53f0\u3067\u69cb\u6210\u3059\u308b\u3053\u3068\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001<strong>Consul-2<\/strong> \u30de\u30b7\u30f3\u306b\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u3057 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>consul agent -server<\/p><\/blockquote>\n<p><!-- consul-cluster-manual-2-server.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-server.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10363\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-server.png\" alt=\"consul-cluster-manual-2-server\" width=\"294\" height=\"216\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-server.png 294w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-server-129x95.png 129w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a><\/p>\n<p>\u3053\u308c\u306f Consul \u30b5\u30fc\u30d0\u3068\u3057\u3066\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30af\u30e9\u30b9\u30bf\u306b\u53c2\u52a0\u3057\u3066\u3044\u306a\u3044\u305f\u3081 Consul \u3068\u3057\u3066\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u307e\u305a\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30e2\u30fc\u30c9\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30fc\u30c0\u30fc\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u3057\u3066\u3001\u4ed6\u306e Consul \u30b5\u30fc\u30d0\u306b\u3064\u3044\u3066\u77e5\u3089\u306a\u3044\u305f\u3081\u3001\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u6210\u3059\u308b\u3053\u3068\u3082\u30af\u30e9\u30b9\u30bf\u306b\u53c2\u52a0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3053\u306e Consul \u30b5\u30fc\u30d0\u3092\u52d5\u4f5c\u3055\u305b\u305f\u307e\u307e\u3001\u5225\u30bf\u30fc\u30df\u30ca\u30eb\u306a\u3069\u304b\u3089 <a href=\"https:\/\/www.consul.io\/docs\/commands\/join.html\">join<\/a> \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>consul join XXX.XXX.XXX.111<\/p><\/blockquote>\n<p><!-- consul-cluster-manual-2-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10362\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-join.png\" alt=\"consul-cluster-manual-2-join\" width=\"294\" height=\"216\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-join.png 294w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-2-join-129x95.png 129w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a><\/p>\n<p><strong>XXX.XXX.XXX.111<\/strong> \u306f Consul \u30af\u30e9\u30b9\u30bf\u306b\u6240\u5c5e\u3057\u3066\u3044\u308b <strong>Consul-1<\/strong> \u306e IP \u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9\u30bf\u306b\u6240\u5c5e\u3057\u3066\u3044\u306a\u3044 Consul \u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u6559\u3048\u3066\u3084\u308b\u3053\u3068\u3067\u3001\u30af\u30e9\u30b9\u30bf\u306b\u6240\u5c5e\u3055\u305b\u3066 Consul \u306e\u30b5\u30fc\u30d3\u30b9\u3092\u884c\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5f15\u304d\u7d9a\u304d\u3001<strong>Consul-3<\/strong> \u30de\u30b7\u30f3\u3067\u3082 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_join\">-join<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3048\u3070\u3001\u5f8c\u304b\u3089 <a href=\"https:\/\/www.consul.io\/docs\/commands\/join.html\">join<\/a> \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u624b\u9593\u304c\u7701\u3051\u307e\u3059\u3002<\/p>\n<blockquote><p>consul agent -server -join XXX.XXX.XXX.111<\/p><\/blockquote>\n<p><!-- consul-cluster-manual-3-server-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-3-server-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10364\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-3-server-join.png\" alt=\"consul-cluster-manual-3-server-join\" width=\"399\" height=\"216\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-3-server-join.png 399w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-3-server-join-175x95.png 175w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/a><\/p>\n<p>\u3053\u3046\u3057\u3066 3\u53f0\u306e\u30de\u30b7\u30f3\u306b\u3088\u308b Consul \u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u6210\u3057\u3001Consul \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3067\u304d\u307e\u3057\u305f\u3002\u3059\u3079\u3066\u306e Consul \u30b5\u30fc\u30d0\u306f\u304a\u4e92\u3044\u3092\u76e3\u8996\u3057\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30fc\u30c0\u30fc\u3067\u3042\u308b Consul-1 \u30b5\u30fc\u30d0\u304c\u4fdd\u6301\u3059\u308b\u30c7\u30fc\u30bf\u304c Consul-2 \u3068 Consul-3 \u306b\u8907\u88fd\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001Consul-1 \u306e -bootstrap \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3082\u3046\u5fc5\u8981\u306a\u3044\u306e\u3067\u3001\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3089\u53d6\u308a\u9664\u3044\u3066\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002Consul-1 \u306f -join \u30aa\u30d7\u30b7\u30e7\u30f3\u304b join \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3067\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u30fc\u3067\u3042\u308b Consul-2 \u304b Consul-3 \u3092\u6307\u5b9a\u3057\u3001\u30af\u30e9\u30b9\u30bf\u306b\u5fa9\u5e30\u3055\u305b\u307e\u3059\u3002<\/p>\n<h3>\u81ea\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7 (\u30d0\u30fc\u30b8\u30e7\u30f3 0.4 \u4ee5\u4e0a\u3067\u63a8\u5968)<\/h3>\n<p>\u6ce8\u610f: Consul 0.4 \u4ee5\u4e0a\u3067<strong>\u63a8\u5968<\/strong>\u306e\u624b\u9806\u3067\u3059\u3002<a href=\"https:\/\/www.consul.io\/docs\/guides\/bootstrapping.html\">Bootstrapping<\/a> \u3092\u53c2\u7167\u3057\u3066\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<strong>Consul-1<\/strong> \u30de\u30b7\u30f3\u306b\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u3066 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_bootstrap_expect\">-bootstrap-expect N<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u306f\u3001N \u53f0\u306e Consul \u30b5\u30fc\u30d0\u306b\u3088\u3063\u3066\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u6210\u3059\u308b\u3068\u3044\u3046\u6307\u5b9a\u3067\u3059\u3002\u3053\u3053\u3067\u306f 3\u53f0\u3067\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u6210\u3059\u308b\u306e\u3067\u3001<strong>-bootstrap-expect 3<\/strong> \u3068\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>consul agent -server -bootstrap-expect 3<\/p><\/blockquote>\n<p><!-- consul-cluster-auto-1-server-bootstra-expect.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-1-server-bootstra-expect.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10358\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-1-server-bootstra-expect.png\" alt=\"consul-cluster-auto-1-server-bootstra-expect\" width=\"288\" height=\"185\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-1-server-bootstra-expect.png 288w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-1-server-bootstra-expect-148x95.png 148w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/a><\/p>\n<p>\u307e\u3060\u30af\u30e9\u30b9\u30bf\u306b\u306f 1\u53f0\u306e Consul \u30b5\u30fc\u30d0\u3057\u304b\u53c2\u52a0\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001Consul \u30b5\u30fc\u30d0\u306f\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u884c\u3044\u307e\u305b\u3093\u3002\u30af\u30e9\u30b9\u30bf\u306b 3\u53f0\u306e\u30b5\u30fc\u30d0\u304c\u53c2\u52a0\u3057\u305f\u6642\u70b9\u3067 Consul \u30b5\u30fc\u30d0\u306f\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u884c\u3044\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30fc\u30c0\u30fc\u3092\u9078\u51fa\u3057\u307e\u3059\u3002\u624b\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3068\u6bd4\u8f03\u3057\u3066\u306e\u5229\u70b9\u306f\u3001\u6700\u521d\u306b\u8d77\u52d5\u3057\u305f Consul \u30b5\u30fc\u30d0\u304c\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u6e08\u3067\u306a\u304f\u3066\u3082\u3088\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001<strong>Consul-2<\/strong> \u30de\u30b7\u30f3\u306b\u3066\u3001\u540c\u69d8\u306b -bootstrap-expect 3 \u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>consul agent -server -bootstrap-expect 3<\/p><\/blockquote>\n<p>\u305d\u3057\u3066\u3001<strong>Consul-2<\/strong> \u30de\u30b7\u30f3\u306b\u3066\u3001join \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3067 <strong>Consul-1<\/strong> \u3092\u6307\u5b9a\u3057\u3066\u30af\u30e9\u30b9\u30bf\u306b\u53c2\u52a0\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>consul join XXX.XXX.XXX.111<\/p><\/blockquote>\n<p><!-- consul-cluster-auto-2-server-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-2-server-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10359\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-2-server-join.png\" alt=\"consul-cluster-auto-2-server-join\" width=\"385\" height=\"236\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-2-server-join.png 385w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-2-server-join-155x95.png 155w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u306f 2\u53f0\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u6307\u5b9a\u306e 3\u53f0\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u30af\u30e9\u30b9\u30bf\u306f\u307e\u3060\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u884c\u3063\u3066\u304a\u3089\u305a\u3001Consul \u30b5\u30fc\u30d3\u30b9\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001<strong>Consul-3<\/strong> \u30de\u30b7\u30f3\u306b\u3066\u3001\u3084\u306f\u308a -bootstrap-expect 3 \u3067\u8d77\u52d5\u3057\u3001join \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3067 <strong>Consul-1<\/strong> \u3092\u6307\u5b9a\u3057\u3066\u30af\u30e9\u30b9\u30bf\u306b\u53c2\u52a0\u3057\u307e\u3059\u3002<strong>Consul-2<\/strong> \u3092\u6307\u5b9a\u3057\u3066\u3082\u304b\u307e\u3044\u307e\u305b\u3093\u3002<\/p>\n<blockquote><p>consul agent -server -bootstrap-expect 3<\/p><\/blockquote>\n<blockquote><p>consul join XXX.XXX.XXX.111<\/p><\/blockquote>\n<p><!-- consul-cluster-auto-3-server-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-3-server-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10360\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-3-server-join.png\" alt=\"consul-cluster-auto-3-server-join\" width=\"458\" height=\"236\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-3-server-join.png 458w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-auto-3-server-join-184x95.png 184w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u306f\u6307\u5b9a\u306e 3\u53f0\u3068\u306a\u3063\u305f\u306e\u3067\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u958b\u59cb\u3057\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30fc\u30c0\u30fc\u3092\u9078\u51fa\u3057\u307e\u3059\u3002\u4ee5\u964d\u3001\u3053\u306e\u30af\u30e9\u30b9\u30bf\u306f Consul \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<h3>Atlas \u3092\u5229\u7528\u3057\u305f\u81ea\u52d5\u30af\u30e9\u30b9\u30bf\u69cb\u6210 (\u30d0\u30fc\u30b8\u30e7\u30f3 0.5 \u4ee5\u4e0a\u304c\u5fc5\u8981)<\/h3>\n<p>\u3055\u3066\u3001\u3053\u3053\u307e\u3067\u898b\u3066\u304d\u305f\u624b\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3068\u81ea\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3067\u306f\u3001\u7d50\u5c40\u306e\u3068\u3053\u308d\u53c2\u52a0\u3059\u308b\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u77e5\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u308c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3001Consul 0.5 \u304b\u3089 Auto-Join \u3068\u3044\u3046\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f HashiCorp \u793e\u304c\u63d0\u4f9b\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u30c4\u30fc\u30eb\u3092\u7d71\u5408\u3057\u305f\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308b <a href=\"https:\/\/atlas.hashicorp.com\/\">Atlas<\/a> \u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002Consul \u30b5\u30fc\u30d0\u306f API \u3092\u901a\u3058\u3066 Atlas \u306e\u30b5\u30fc\u30d3\u30b9\u306b\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u3044\u3001\u53c2\u52a0\u3059\u3079\u304d\u30af\u30e9\u30b9\u30bf\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Auto-Join \u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001Atlas \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3068 API \u30c8\u30fc\u30af\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u30022015\u5e74 6\u6708\u73fe\u5728\u3001\u3053\u306e\u6a5f\u80fd\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u3001\u624b\u9806\u3092\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002Atlas \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u306f <a href=\"https:\/\/atlas.hashicorp.com\/\">Atlas<\/a> \u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u3042\u308b\u300c<strong>Sign Up &amp; Tutorial<\/strong>\u300d\u304b\u3089\u884c\u3048\u307e\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u53d6\u5f97\u3067\u304d\u305f\u3089\u3001Atlas \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u300c<strong>Setting<\/strong>\u300d\u304b\u3089\u300c<strong>Tokens<\/strong>\u300d\u306b\u884c\u304d\u3001\u9069\u5f53\u306a\u30c8\u30fc\u30af\u30f3\u306e\u540d\u524d\u3092\u3064\u3051\u3066\u300c<strong>Generate Token<\/strong>\u300d\u30dc\u30bf\u30f3\u3067 API \u30c8\u30fc\u30af\u30f3\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u751f\u6210\u3057\u305f API \u30c8\u30fc\u30af\u30f3\u306f\u4e8c\u5ea6\u3068\u518d\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u5927\u5207\u306b\u4fdd\u7ba1\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Atlas \u306e API \u30c8\u30fc\u30af\u30f3\u304c\u5165\u624b\u3067\u304d\u305f\u3089\u3001Consul \u30af\u30e9\u30b9\u30bf\u306e\u69cb\u6210\u306b\u53d6\u308a\u304b\u304b\u308a\u307e\u3059\u3002\u5148\u306e\u81ea\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u7528\u306e\u30aa\u30d7\u30b7\u30e7\u30f3 -bootstrap-expect N \u306b\u52a0\u3048\u3066\u3001Atlas \u306e Auto-Join \u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306e <a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_atlas_join\">-atlas-join<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3001<a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_atlas\">-atlas=X<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3066\u9069\u5f53\u306a Atlas \u30a4\u30f3\u30d5\u30e9\u306e\u540d\u524d\u3092\u6307\u5b9a\u3001<a href=\"https:\/\/www.consul.io\/docs\/agent\/options.html#_atlas_token\">-atlas-token=Y<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3066 Atlas \u306e API \u30c8\u30fc\u30af\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002-atlas-token \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u6307\u5b9a\u3059\u308b\u4ee3\u308f\u308a\u306b\u74b0\u5883\u5909\u6570 <strong>ATLAS_TOKEN<\/strong> \u3067 API \u30c8\u30fc\u30af\u30f3\u3092\u6e21\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002Consul \u30b5\u30fc\u30d0\u306f\u3059\u3079\u3066\u6b21\u306e\u3088\u3046\u306b\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>consul agent -server -bootstrap-expect 3 -atlas-join -atlas=consul\/test -atlas-token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<\/p><\/blockquote>\n<p>\u307e\u305a <strong>Consul-1<\/strong> \u3067 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><!-- consul-cluster-atlas-1-server-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-1-server-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10355\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-1-server-join.png\" alt=\"consul-cluster-atlas-1-server-join\" width=\"486\" height=\"201\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-1-server-join.png 486w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-1-server-join-225x93.png 225w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/a><\/p>\n<p>\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u306f 1\u53f0\u3060\u3051\u306a\u306e\u3067\u3001\u307e\u3060\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306b <strong>Consul-2<\/strong> \u3067 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><!-- consul-cluster-atlas-2-server-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-2-server-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10356\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-2-server-join.png\" alt=\"consul-cluster-atlas-2-server-join\" width=\"583\" height=\"252\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-2-server-join.png 583w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-2-server-join-220x95.png 220w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<p><strong>Consul-2<\/strong> \u306f Atlas \u306b\u554f\u3044\u5408\u308f\u305b\u3001\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u3067\u3042\u308b <strong>Consul-1<\/strong> \u3092\u6559\u3048\u3066\u3082\u3089\u3044\u3001\u30d4\u30a2\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\u307e\u3060\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u304c 2\u53f0\u306a\u306e\u3067\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u6700\u5f8c\u306b <strong>Consul-3<\/strong> \u3067 Consul \u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><!-- consul-cluster-atlas-3-server-join.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-3-server-join.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10357\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-3-server-join.png\" alt=\"consul-cluster-atlas-3-server-join\" width=\"583\" height=\"252\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-3-server-join.png 583w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-atlas-3-server-join-220x95.png 220w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<p><strong>Consul-3<\/strong> \u306f Atlas \u306b\u554f\u3044\u5408\u308f\u305b\u3001\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u3067\u3042\u308b <strong>Consul-1<\/strong> \u307e\u305f\u306f <strong>Consul-2<\/strong> \u3092\u6559\u3048\u3066\u3082\u3089\u3044\u3001\u30d4\u30a2\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u30af\u30e9\u30b9\u30bf\u30e1\u30f3\u30d0\u304c\u6307\u5b9a\u306e 3\u53f0\u3068\u306a\u3063\u305f\u306e\u3067\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u958b\u59cb\u3057\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30fc\u30c0\u30fc\u3092\u9078\u51fa\u3057\u307e\u3059\u3002\u4ee5\u964d\u3001\u3053\u306e\u30af\u30e9\u30b9\u30bf\u306f Consul \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Consul 0.4 \u4ee5\u524d\u30010.4 \u4ee5\u5f8c\u30010.5 \u4ee5\u5f8c\u3068\u3001Consul \u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u306e\u69cb\u6210\u624b\u9806\u306e\u5909\u9077\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002Consul \u306f\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u3092\u3069\u306e\u3088\u3046\u306b\u69cb\u6210\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u3092\u69cb\u6210\u3059\u308b\u969b\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3069\u306e\u3088\u3046\u306a\u610f\u5473\u304b\u3001\u7c21\u5358\u306a\u304c\u3089\u7406\u89e3\u306e\u4e00\u52a9\u3068\u306a\u3063\u305f\u3068\u601d\u3044\u307e\u3059\u3002\u5c11\u306a\u304f\u3068\u3082\u624b\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u624b\u9806\u306f\u4eca\u5f8c\u306f\u4f7f\u308f\u305a\u3001\u81ea\u52d5\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3067 IP \u30a2\u30c9\u30ec\u30b9\u6307\u5b9a\u3092\u884c\u3046\u304b Atlas \u3068\u306e\u9023\u643a\u3092\u884c\u3046\u304b\u306f\u74b0\u5883\u6b21\u7b2c\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.consul.io\/\">Consul by HashiCorp<\/a>\n<ul>\n<li><a href=\"https:\/\/www.consul.io\/docs\/guides\/servers.html\">Adding\/Removing Servers<\/a><\/li>\n<li><a href=\"https:\/\/www.consul.io\/docs\/guides\/bootstrapping.html\">Bootstrapping<\/a><\/li>\n<li><a href=\"https:\/\/www.consul.io\/docs\/guides\/manual-bootstrap.html\">Manual Bootstrapping<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/gihyo.jp\/admin\/feature\/01\/serf-consul\">Serf\uff0fConsul\u3067\u7ba1\u7406\u3092\u81ea\u52d5\u5316\uff01\u3000\uff5e\u5b9f\u8df5\u7684\u306a\u624b\u6cd5\u3092\u7d39\u4ecb\uff5e<\/a><\/li>\n<li><a href=\"http:\/\/pocketstudio.jp\/log3\/archives\/consul\/\">Consul | Pocketstudio.jp log3<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp \u793e\u304c\u958b\u767a\u3059\u308b\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u691c\u51fa\u3068\u8a2d\u5b9a\u3092\u884c\u3046\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u578b\u306e\u69cb\u6210\u3067\u52d5\u4f5c\u3057\u3001\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30b9\u30c8\u30a2(KVS) \u306b\u4fdd\u6301\u3057\u305f\u30c7\u30fc\u30bf\u3092 DNS \u3084  [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":10361,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[31,42],"tags":[],"class_list":["post-10353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-higuchi","category-hashicorp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"d-higuchi, HashiCorp |Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp\" \/>\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.creationline.com\/tech-blog\/others\/hashicorp\/10353\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"d-higuchi, HashiCorp |Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-03T02:30:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T05:15:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\" \/>\n\t<meta property=\"og:image:width\" content=\"288\" \/>\n\t<meta property=\"og:image:height\" content=\"185\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul\",\"datePublished\":\"2015-07-03T02:30:27+00:00\",\"dateModified\":\"2023-08-29T05:15:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353\"},\"wordCount\":217,\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\",\"articleSection\":[\"d-higuchi\",\"HashiCorp\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353\",\"name\":\"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\",\"datePublished\":\"2015-07-03T02:30:27+00:00\",\"dateModified\":\"2023-08-29T05:15:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"d-higuchi, HashiCorp |Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp\",\"breadcrumb\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png\",\"width\":288,\"height\":185},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u305d\u306e\u4ed6\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/others\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HashiCorp\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"d-higuchi, HashiCorp |Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp","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.creationline.com\/tech-blog\/others\/hashicorp\/10353","og_locale":"ja_JP","og_type":"article","og_title":"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"d-higuchi, HashiCorp |Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp","og_url":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2015-07-03T02:30:27+00:00","article_modified_time":"2023-08-29T05:15:06+00:00","og_image":[{"width":288,"height":185,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul","datePublished":"2015-07-03T02:30:27+00:00","dateModified":"2023-08-29T05:15:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353"},"wordCount":217,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png","articleSection":["d-higuchi","HashiCorp"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353","url":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353","name":"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png","datePublished":"2015-07-03T02:30:27+00:00","dateModified":"2023-08-29T05:15:06+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"d-higuchi, HashiCorp |Consul\u3068\u306f Consul \u3068\u306f\u3001\u7c73 HashiCorp","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/consul-cluster-manual-1-server-bootstrap.png","width":288,"height":185},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp\/10353#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u305d\u306e\u4ed6","item":"https:\/\/www.creationline.com\/tech-blog\/others"},{"@type":"ListItem","position":3,"name":"HashiCorp","item":"https:\/\/www.creationline.com\/tech-blog\/others\/hashicorp"},{"@type":"ListItem","position":4,"name":"Consul\u30b5\u30fc\u30d0\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u624b\u9806\u306e\u6b74\u53f2 #consul"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/10353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=10353"}],"version-history":[{"count":1,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/10353\/revisions"}],"predecessor-version":[{"id":65790,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/10353\/revisions\/65790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/10361"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=10353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=10353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=10353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}