{"id":36883,"date":"2020-09-04T10:23:31","date_gmt":"2020-09-04T01:23:31","guid":{"rendered":"https:\/\/www.creationline.com\/?p=36883"},"modified":"2021-09-10T15:01:38","modified_gmt":"2021-09-10T06:01:38","slug":"kubernetes-%e3%81%a7%e3%81%ae-etcd-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e7%9f%a5%e3%82%8a%e3%81%9f%e3%81%84%e3%81%a8%e6%80%9d%e3%81%a3%e3%81%a6%e3%81%84%e3%81%9f%e3%81%93%e3%81%a8%e3%81%99%e3%81%b9","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883","title":{"rendered":"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s"},"content":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300c<a href=\"https:\/\/www.mirantis.com\/blog\/everything-you-ever-wanted-to-know-about-using-etcd-with-kubernetes-v1-6-but-were-afraid-to-ask\/\">Everything you ever wanted to know about using etcd with Kubernetes v1.6 (but were afraid to ask)<\/a>\u300d\u306e\u7ffb\u8a33\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e16\u754c\u3067\u3001etcd \u306f <a href=\"https:\/\/www.mirantis.com\/software\/docker\/kubernetes\/\">Kubernetes<\/a> \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d7\u30ec\u30fc\u30f3\u306e\u552f\u4e00\u306e\u30b9\u30c6\u30fc\u30c8\u30d5\u30eb\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3059\u3002\u3053\u308c\u306f\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u306e\u554f\u984c\u3092\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u307e\u3059\u304c\u3001Kubernetes 1.6\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u306f\u300199.99%\u306e\u4fe1\u983c\u6027\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u6050\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u8a18\u4e8b\u3067\u3042\u306a\u305f\u306e\u7591\u554f\u3092\u89e3\u6d88\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h2>etcd\u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306fv2\u304bv3\u304b\uff1f<\/h2>\n<p>etcd \u30d0\u30fc\u30b8\u30e7\u30f3 3.0.0.0 \u4ee5\u964d\u3067\u306f\u3001v2 \u3068 v3 \u306e 2 \u3064\u306e\u7570\u306a\u308b\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u60c5\u5831\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u80fd\u529b\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u77e5\u308b\u3053\u3068\u304c\u91cd\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Kubernetes 1.5 \u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f v2 \u3067\u3057\u305f\u304c\u3001\u660e\u793a\u7684\u306b\u8a2d\u5b9a\u3059\u308c\u3070 v3 \u3067\u3082\u5229\u7528\u53ef\u80fd\u3067\u3057\u305f\u3002\u4e00\u65b9\u3001Kubernetes v1.6 \u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f etcd v3 \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u5229\u7528\u3059\u308b\u69d8\u3005\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8003\u616e\u3057\u3066\u3001\u3069\u3061\u3089\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u6700\u9069\u304b\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Calico\u3001Canal\u3001Flannel \u306f etcd v2 \u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306b\u3057\u304b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3081\u307e\u305b\u3093\u3002\u3053\u308c\u3089\u306eetcd \u30c7\u30fc\u30bf\u3092 Kubernetes \u306e etcd \u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306b\u5358\u7d14\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001Kubernetes \u304c v3 \u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001etcd \u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Kubernetes v1.5 \u304b\u3089 v1.6 \u306b\u76f2\u76ee\u7684\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u9a5a\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002(<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/master\/CHANGELOG.md#warning-etcd-backup-strongly-recommended\">\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/a>\u3092\u5e38\u306b\u8aad\u3080\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\uff01) Kubernetes v1.6 \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e etcd \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092 v2 \u304b\u3089 v3 \u306b\u5909\u66f4\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u8d77\u52d5\u3059\u308b\u524d\u306b\u624b\u52d5\u3067 <a href=\"https:\/\/coreos.com\/blog\/migrating-applications-etcd-v3.html\">etcd \u3092 v3 \u306b\u79fb\u884c<\/a>\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u305d\u3046\u3059\u308b\u3053\u3068\u3067\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u78ba\u4fdd\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u305f\u3081\u306b\u306f\u3059\u3079\u3066\u306e kube-apiservers \u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u3060\u79fb\u884c\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067 kube-apiserver \u3092 v2 etcd \u306b\u623b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\">--storage-backend=etcd2<\/pre>\n<\/p>\n<h2>etcd \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h2>\n<p>Kubernetes \u306e\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u306f etcd \u306e\u4e2d\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5fa9\u65e7\u4e0d\u53ef\u80fd\u306a\u707d\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001etcd \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f7f\u7528\u3057\u3066\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u5fa9\u65e7\u3067\u304d\u307e\u3059\u3002etcd \u306f\u81ea\u8eab\u3067\u5b9a\u671f\u7684\u306b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u304c\u3001\u65e5\u6b21\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5225\u306e\u30db\u30b9\u30c8\u306b\u4fdd\u5b58\u3059\u308b\u4e8b\u306f\u3001Kubernetes \u306e\u30c7\u30a3\u30b6\u30b9\u30bf\u30ea\u30ab\u30d0\u30ea\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u826f\u3044\u6226\u7565\u3067\u3059\u3002<\/p>\n<h3>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u65b9\u6cd5<\/h3>\n<p>etcd \u306b\u306f v2 \u3068 v3 \u306e\u7570\u306a\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u65b9\u6cd5\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306b\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308a\u307e\u3059\u3002 v3 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u3088\u308a\u30af\u30ea\u30fc\u30f3\u3067\u3001\u5358\u4e00\u306e\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u30011\u3064\u306e\u5927\u304d\u306a\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306f\u3001 v2 \u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3084\u30ea\u30ab\u30d0\u30ea\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001etcd \u306e v3 \u30c7\u30fc\u30bf\u3057\u304b\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\uff08\u4f8b\u3048\u3070\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30e9\u30b0\u30a4\u30f3\u304c etcd \u3092\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408\uff09\u306f v3 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u304c\u3001v2 \u30c7\u30fc\u30bf\u304c\u3042\u308b\u5834\u5408\uff08\u305f\u3068\u3048\u3070 v3 \u30c7\u30fc\u30bf\u3068\u6df7\u5728\u3057\u3066\u3044\u308b\u5834\u5408\u306a\u3069\uff09\u306f\u3001v2 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u306e\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>Etcd v2 \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h4>\n<p>etcd v2 \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u65b9\u6cd5\u306f\u30011\u3064\u306e WAL \u30d5\u30a1\u30a4\u30eb\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002etcd \u30af\u30e9\u30b9\u30bf\u306e\u64cd\u4f5c\u3092\u4e2d\u65ad\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002etcd v2 + v3 \u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\">etcdctl backup --data-dir \/var\/lib\/etcd\/ --backup-dir \/backupdir <\/pre>\n<\/p>\n<p>etcd v2 \u306e\u30ea\u30b9\u30c8\u30a2\u306e\u516c\u5f0f\u624b\u9806\u306f<a href=\"https:\/\/github.com\/coreos\/etcd\/blob\/master\/Documentation\/v2\/admin_guide.md#disaster-recovery\">\u3053\u3061\u3089<\/a>\u306b\u3042\u308a\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306a\u624b\u9806\u306e\u6982\u8981\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u96e3\u3057\u3044\u306e\u306f\u3001\u30af\u30e9\u30b9\u30bf\u30921\u30ce\u30fc\u30c9\u305a\u3064\u518d\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u3059\u3079\u3066\u306e\u30db\u30b9\u30c8\u3067 etcd \u3092\u505c\u6b62<\/li>\n<li>\u3059\u3079\u3066\u306e\u30db\u30b9\u30c8\u306e \/var\/lib\/etcd\/member \u3092\u30d1\u30fc\u30b8\u3057\u307e\u3059\u3002<\/li>\n<li>\u6700\u521d\u306e etcd \u30db\u30b9\u30c8\u306e \/var\/lib\/etcd\/member \u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/li>\n<li>force-new-cluster \u3067\u6700\u521d\u306e etcd \u30db\u30b9\u30c8\u3067 etcd \u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>\u6700\u521d\u306e etcd \u30db\u30b9\u30c8\u306e\u6b63\u3057\u3044 PeerURL \u3092 127.0.0.0.1 \u3067\u306f\u306a\u304f\u3001\u30ce\u30fc\u30c9\u306eIP\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u6b21\u306e\u30db\u30b9\u30c8\u3092\u30af\u30e9\u30b9\u30bf\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u65e2\u5b58\u306e etcd \u30db\u30b9\u30c8\u306b -initial-cluster \u3092\u8a2d\u5b9a\u3057\u3066\u3001\u6b21\u306e\u30db\u30b9\u30c8\u3067 etcd \u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>etcd \u30ce\u30fc\u30c9\u304c\u3059\u3079\u3066\u7d50\u5408\u3055\u308c\u308b\u307e\u3067\u30015 \u3068 6 \u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<li>etcd \u3092\u6b63\u5e38\u306b\u518d\u8d77\u52d5\u3059\u308b\uff08\u65e2\u5b58\u306e\u8a2d\u5b9a\u3092\u4f7f\u7528\u3059\u308b)<\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u624b\u9806\u306f\u3001\u4ee5\u4e0b\u306e<a href=\"https:\/\/gist.github.com\/mattymo\/40ad689b8a11e0bfbb7ee415103dabf0\">\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\">\n#!\/bin\/bash -e\n \n# Change as necessary\nRESTORE_PATH=${RESTORE_PATH:-\/tmp\/member}\n \n#Extract node data from etcd config\nsource \/etc\/etcd.env || source \/etc\/default\/etcd\nfunction with_retries {\n  local retries=3\n  set -o pipefail\n  for try in $(seq 1 $retries); do\n    ${@}\n    [ $? -eq 0 ] &amp;&amp; break\n    if [[ &quot;$try&quot; == &quot;$retries&quot; ]]; then\n      exit 1\n    fi\n    sleep 3\n  done\n  set +o pipefail\n}\n \nthis_node=$ETCD_NAME\nnode_names=($(echo $ETCD_INITIAL_CLUSTER | \\\n  awk -F&#039;[=,]&#039; &#039;{for (i=1;i&lt;=NF;i+=2) { print $i }}&#039;))\nnode_endpoints=($(echo $ETCD_INITIAL_CLUSTER | \\\n  awk -F&#039;[=,]&#039; &#039;{for (i=2;i&lt;=NF;i+=2) { print $i }}&#039;))\nnode_ips=($(echo $ETCD_INITIAL_CLUSTER | \\\n  awk -F&#039;:\/\/|:[0-9]&#039; &#039;{for (i=2;i&lt;=NF;i+=2) { print $i }}&#039;))\nnum_nodes=${#node_names[@]}\n \n# Stop and purge etcd data\nfor i in `seq 0 $((num_nodes - 1))`; do\n  ssh ${node_ips[$i]} sudo service etcd stop\n  ssh ${node_ips[$i]} sudo docker rm -f ${node_names[$i]} \\\n    || : # Kargo specific\n  ssh ${node_ips[$i]} sudo rm -rf \/var\/lib\/etcd\/member\ndone\n \n# Restore on first node\nif [[ &quot;$this_node&quot; == ${node_names[0]} ]]; then\n  sudo cp -R $RESTORE_PATH \/var\/lib\/etcd\/\nelse\n  rsync -vaz -e &quot;ssh&quot; --rsync-path=&quot;sudo rsync&quot; \\\n    &quot;$RESTORE_PATH&quot; ${node_ips[0]}:\/var\/lib\/etcd\/\nfi \n \nssh ${node_ips[0]} &quot;sudo etcd --force-new-cluster 2&gt; \\\n  \/tmp\/etcd-restore.log&quot; &amp;\necho &quot;Sleeping 5s to wait for etcd up&quot;\nsleep 5\n \n# Fix member endpoint on first node\nmember_id=$(with_retries ssh ${node_ips[0]} \\\n  ETCDCTL_ENDPOINTS=https:\/\/localhost:2379 \\\n  etcdctl member list | cut -d&#039;:&#039; -f1)\nssh ${node_ips[0]} ETCDCTL_ENDPOINTS=https:\/\/localhost:2379 \\\n  etcdctl member update $member_id ${node_endpoints[0]}\necho &quot;Waiting for etcd to reconfigure peer URL&quot;\nsleep 4\n \n# Add other nodes\ninitial_cluster=&quot;${node_names[0]}=${node_endpoints[0]}&quot;\nfor i in `seq 1 $((num_nodes -1))`; do\n  echo &quot;Adding node ${node_names[$i]} to ETCD cluster...&quot;\n  initial_cluster=\\\n    &quot;$initial_cluster,${node_names[$i]}=${node_endpoints[$i]}&quot;\n  with_retries ssh ${node_ips[0]} \\\n    ETCDCTL_ENDPOINTS=https:\/\/localhost:2379 \\\n    etcdctl member add ${node_names[$i]} ${node_endpoints[$i]}\n  ssh ${node_ips[$i]} \\\n    &quot;sudo etcd --initial-cluster=&quot;$initial_cluster&quot; &amp;&gt;\/dev\/null&quot; &amp;\n  sleep 5\n  with_retries ssh ${node_ips[0]} \\\n    ETCDCTL_ENDPOINTS=https:\/\/localhost:2379 etcdctl member list\ndone\n \necho &quot;Restarting etcd on all nodes&quot;\nfor i in `seq 0 $((num_nodes -1))`; do\n  ssh ${node_ips[$i]} sudo service etcd restart\ndone\n \nsleep 5\n \necho &quot;Verifying cluster health&quot;\nwith_retries ssh ${node_ips[0]} \\\n  ETCDCTL_ENDPOINTS=https:\/\/localhost:2379 etcdctl cluster-health\n<\/pre>\n<\/p>\n<h4>Etcd v3 \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h4>\n<p>etcd v3 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u3001\u5358\u4e00\u306e\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002v2 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u306f v3 \u30c7\u30fc\u30bf\u3082\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3059\u304c\u3001v3 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u306f etcd v2 \u30c7\u30fc\u30bf\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>v3\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\">ETCDCTL_API=3 etcdctl snapshot save \/backupdir<\/pre>\n<\/p>\n<p>etcd v3 \u30ea\u30b9\u30c8\u30a2\u306e\u516c\u5f0f\u624b\u9806\u306f<a href=\"https:\/\/github.com\/coreos\/etcd\/blob\/master\/Documentation\/op-guide\/recovery.md\">\u3053\u3061\u3089<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30d7\u30ed\u30bb\u30b9\u306f v2 \u306e\u3068\u304d\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u3059\u3079\u3066\u306e\u30db\u30b9\u30c8\u3067 etcd \u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/li>\n<li>\u3059\u3079\u3066\u306e\u30db\u30b9\u30c8\u306e \/var\/lib\/etcd\/member \u3092\u30d1\u30fc\u30b8\u3057\u307e\u3059\u3002<\/li>\n<li>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u5404 etcd \u30db\u30b9\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/li>\n<li>\u5404\u30db\u30b9\u30c8\u306e\u30bd\u30fc\u30b9 \/etc\/default\/etcd \u3092\u5b9f\u884c\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><pre class=\"EnlighterJSRAW\">\nETCDCTL_API=3 etcdctl snapshot restore BACKUP_FILE \\\n--name $ETCD_NAME--initial-cluster &quot;$ETCD_INITIAL_CLUSTER&quot; \\\n--initial-cluster-token \u201c$ETCD_INITIAL_CLUSTER_TOKEN\u201d \\\n--initial-advertise-peer-urls $ETCD_INITIAL_ADVERTISE_PEER_URLS \\\n--data-dir $ETCD_DATA_DIR\n<\/pre>\n<\/p>\n<h4>etcd \u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/h4>\n<p>etcd \u306f Kubernetes \u306e\u8a2d\u5b9a\u60c5\u5831\u306e\u4fdd\u5b58\u306b\u4f7f\u7528\u3055\u308c\u308b\u305f\u3081\u3001\u305d\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u30af\u30e9\u30b9\u30bf\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u5e78\u3044\u306a\u3053\u3068\u306b\u3001etcd \u306f\u69d8\u3005\u306a\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u6761\u4ef6\u306e\u4e0b\u3067\u3088\u308a\u826f\u304f\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u306f\u3001\u3059\u3079\u3066\u306e etcd \u30ce\u30fc\u30c9\u9593\u306e\u540c\u671f\u3092\u5fc5\u8981\u3068\u3059\u308b\u305f\u3081\u3001\u6b21\u306e\u3088\u3046\u306a\u6a5f\u80fd\u8981\u4ef6\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>etcd \u306f\u30c7\u30a3\u30b9\u30af\u3078\u306e\u9ad8\u901f\u30a2\u30af\u30bb\u30b9\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/li>\n<li>etcd \u306f\u4ed6\u306e etcd \u30ce\u30fc\u30c9\u3068\u306e\u9593\u304c\u4f4e\u30ec\u30a4\u30c6\u30f3\u30b7\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u305f\u3081\u3001\u9ad8\u901f\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30ad\u30f3\u30b0\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/li>\n<li>etcd \u306f\u3001\u30c7\u30a3\u30b9\u30af\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\u524d\u306b\u3001\u3059\u3079\u3066\u306e etcd \u30ce\u30fc\u30c9\u9593\u3067\u30c7\u30fc\u30bf\u3092\u540c\u671f\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u305d\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u63a8\u5968\u4e8b\u9805\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>etcd \u30b9\u30c8\u30a2\u306f\u3001( Ceph \u306e\u3088\u3046\u306a)\u30c7\u30a3\u30b9\u30af\u96c6\u7d04\u578b\u30b5\u30fc\u30d3\u30b9\u3068\u540c\u3058\u30c7\u30a3\u30b9\u30af\u306b\u914d\u7f6e\u3059\u3079\u304d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u3084\u30d1\u30d6\u30ea\u30c3\u30af\u30af\u30e9\u30a6\u30c9\u306e\u5834\u5408\u306f\u3001etcd \u30ce\u30fc\u30c9\u3092\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3\u306b\u5206\u6563\u3055\u305b\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/li>\n<li>etcd \u30ce\u30fc\u30c9\u306e\u6570\u306f 3 \u3067\u3042\u308b\u3079\u304d\u3067\u3059\u3002\" Split Brain \" \u554f\u984c\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u5947\u6570\u304c\u5fc5\u8981\u3067\u3059\u304c\u30013 \u3092\u8d85\u3048\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u4f4e\u4e0b\u3092\u62db\u304f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e etcd \u8a2d\u5b9a\u306f\u3001\u4e00\u822c\u7684\u306b\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u898b\u3089\u308c\u308b\u4f4e\u30c7\u30a3\u30b9\u30af I\/O \u306e\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u7406\u60f3\u7684\u306a\u8a2d\u5b9a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\">\nETCD_ELECTION_TIMEOUT=5000 #default 1000ms\nETCD_HEARTBEAT_INTERVAL=250 #default 100ms\n<\/pre>\n<\/p>\n<p>\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u5024\u3092\u9ad8\u304f\u3059\u308b\u3068\u3001read \/ write \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305f\u3001 \u30b7\u30b9\u30c6\u30e0\u969c\u5bb3\u304c\u8d77\u304d\u3066\u3044\u308b \u3053\u3068\u304c\u767a\u899a\u3059\u308b\u307e\u3067\u306b\u3088\u308a\u591a\u304f\u306e\u6642\u9593\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001\u30af\u30e9\u30b9\u30bf\u304c \u9078\u6319 \u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u6642\u9593\u7684\u306a \u30da\u30ca\u30eb\u30c6\u30a3 \u3082\u767a\u751f\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3089\u306e\u5024\u304c\u4f4e\u3059\u304e\u308b\u3068\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3084\u30c7\u30a3\u30b9\u30af\u306e\u30ec\u30a4\u30c6\u30f3\u30b7\u304c\u60aa\u3044\u5834\u5408\u3001\u30af\u30e9\u30b9\u30bf\u306f\u554f\u984c\u304c\u3042\u308b\u3068\u5224\u65ad\u3057\u3001\u983b\u7e41\u306b \u518d\u9078\u6319 \u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>etcd \u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h4>\n<p>\u3053\u3053\u3067\u306f\u3001etcd\u3067\u906d\u9047\u3057\u305f\u3044\u304f\u3064\u304b\u306e\u554f\u984c\u3068\u3001\u305d\u308c\u3089\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u8003\u3048\u51fa\u3057\u305f\u89e3\u6c7a\u7b56\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<h5>\u554f\u984c<\/h5>\n<p>\u30ea\u30b9\u30c8\u30a2\u306b\u5931\u6557\u3057\u3001etcd\u30ed\u30b0\u306b\u300cetcdmain: database file (\/var\/lib\/etcd\/member\/snap\/db) of the backend is missing\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h5>\u56de\u7b54<\/h5>\n<p>etcd \u304c\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8 \u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u9593\u306b etcd v2 \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u884c\u308f\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u552f\u4e00\u306e\u89e3\u6c7a\u7b56\u306f\u3001\u5225\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30ea\u30b9\u30c8\u30a2\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<hr>\n<h5>\u554f\u984c<\/h5>\n<p>etcd \u304c 2379 \u756a\u30dd\u30fc\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3057\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/p>\n<h5>\u56de\u7b54<\/h5>\n<p>\u3044\u304f\u3064\u304b\u306e\u539f\u56e0\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u307e\u305a\u3001etcd \u30b5\u30fc\u30d3\u30b9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306b\u3001\u5404\u30db\u30b9\u30c8\u306e etcd \u30b5\u30fc\u30d3\u30b9\u306e\u30ed\u30b0\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001election \u3084 quorum \u306b\u554f\u984c\u304c\u306a\u3044\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30af\u30e9\u30b9\u30bf\u306e51%\u4ee5\u4e0a\u304c\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u306a\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093 - \u5b9f\u969b\u306e\u8a08\u7b97\u5f0f\u306f N \/ 2 + 1 \u3067\u3059\u3002\u3053\u308c\u306f\u3001split brain \u306e\u554f\u984c\u3092\u9632\u3050\u305f\u3081\u3067\u3059\u3002\u3064\u307e\u308a\u30013\u30ce\u30fc\u30c9\u30af\u30e9\u30b9\u30bf\u306f\u3001\u5c11\u306a\u304f\u3068\u30822\u3064\u306e\u30ce\u30fc\u30c9\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h5>\u554f\u984c<\/h5>\n<p>etcd\u306f\u306a\u305c elections \u304c\u591a\u767a\u3059\u308b\u306e\u304b\uff1f<\/p>\n<h5>\u56de\u7b54<\/h5>\n<p>ETCD_ELECTION_TIMEOUT \u3068 ETCD_HEARTBEAT_INTERVAL \u3092\u4e0a\u3052\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u30db\u30b9\u30c8\u306e\u8ca0\u8377\u3092\u6e1b\u3089\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u8a73\u7d30\u306f<a href=\"https:\/\/github.com\/kubernetes-incubator\/kargo\/blob\/master\/docs\/kubernetes-reliability.md\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Your turn<\/h3>\n<p>\u3053\u3053\u307e\u3067\u3001etcd \u306b\u3064\u3044\u3066\u306e\u79c1\u305f\u3061\u306e\u898b\u89e3\u3068\u3001Kubernetes \u306b\u95a2\u3057\u3066\u8003\u3048\u3066\u304a\u304f\u3079\u304d\u554f\u984c\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u4ed6\u306b\u4f55\u304b\u77e5\u3063\u3066\u3044\u308b\u30d2\u30f3\u30c8\u304c\u3042\u308c\u3070\u3001\u30b3\u30e1\u30f3\u30c8\u3067\u6559\u3048\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd with Kubernetes v1.6 (but were afra [&#8230;]<\/p>\n","protected":false},"author":35,"featured_media":36292,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[43,122,540],"tags":[154,52,123,112],"class_list":["post-36883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","category-kubernetes","category-mirantis","tag-container","tag-docker","tag-k8s","tag-kubernetes"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Docker, Kubernetes, Mirantis |\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd\" \/>\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\/cloudnative\/docker\/36883\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Docker, Kubernetes, Mirantis |\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883\" \/>\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:author\" content=\"https:\/\/www.facebook.com\/nogi.etsutaka\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-04T01:23:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-10T06:01:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/08\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Etsutaka Nogi\" \/>\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=\"Etsutaka Nogi\" \/>\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\\\/cloudnative\\\/docker\\\/36883#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883\"},\"author\":{\"name\":\"Etsutaka Nogi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/bdb15033b8a4097675446265a8342d41\"},\"headline\":\"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s\",\"datePublished\":\"2020-09-04T01:23:31+00:00\",\"dateModified\":\"2021-09-10T06:01:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883\"},\"wordCount\":201,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg\",\"keywords\":[\"container\",\"Docker\",\"k8s\",\"Kubernetes\"],\"articleSection\":[\"Docker\",\"Kubernetes\",\"Mirantis\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883\",\"name\":\"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s - 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\\\/cloudnative\\\/docker\\\/36883#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg\",\"datePublished\":\"2020-09-04T01:23:31+00:00\",\"dateModified\":\"2021-09-10T06:01:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/bdb15033b8a4097675446265a8342d41\"},\"description\":\"Docker, Kubernetes, Mirantis |\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg\",\"width\":768,\"height\":576},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/36883#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s\"}]},{\"@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\\\/bdb15033b8a4097675446265a8342d41\",\"name\":\"Etsutaka Nogi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Pugzilla-up-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Pugzilla-up-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Pugzilla-up-230x230.png\",\"caption\":\"Etsutaka Nogi\"},\"description\":\"Docker\u3092\u4e2d\u5fc3\u306b\u3001\u30a2\u30b8\u30e3\u30a4\u30eb\u3084DevOps\u306a\u3069\u306b\u3064\u3044\u3066\u306a\u3093\u304b\u3057\u3066\u3044\u307e\u3059\u3002 \u30d1\u30b0\u3092\u611b\u3057\u30d1\u30b0\u306b\u611b\u3055\u308c\u305f\u7537\u3002 \u65e5\u672c\u9152\u3082\u597d\u304d\u3002\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/nogi.etsutaka\\\/\",\"https:\\\/\\\/www.instagram.com\\\/pugzilla.jp\\\/\"],\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/nogi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Docker, Kubernetes, Mirantis |\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd","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\/cloudnative\/docker\/36883","og_locale":"ja_JP","og_type":"article","og_title":"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Docker, Kubernetes, Mirantis |\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_author":"https:\/\/www.facebook.com\/nogi.etsutaka\/","article_published_time":"2020-09-04T01:23:31+00:00","article_modified_time":"2021-09-10T06:01:38+00:00","og_image":[{"width":768,"height":576,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/08\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg","type":"image\/jpeg"}],"author":"Etsutaka Nogi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Etsutaka Nogi","\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\/cloudnative\/docker\/36883#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883"},"author":{"name":"Etsutaka Nogi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/bdb15033b8a4097675446265a8342d41"},"headline":"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s","datePublished":"2020-09-04T01:23:31+00:00","dateModified":"2021-09-10T06:01:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883"},"wordCount":201,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/08\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg","keywords":["container","Docker","k8s","Kubernetes"],"articleSection":["Docker","Kubernetes","Mirantis"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883","name":"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s - 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\/cloudnative\/docker\/36883#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/08\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg","datePublished":"2020-09-04T01:23:31+00:00","dateModified":"2021-09-10T06:01:38+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/bdb15033b8a4097675446265a8342d41"},"description":"Docker, Kubernetes, Mirantis |\u672c\u30d6\u30ed\u30b0\u306f Mirantis\u793e\u306eblog\u8a18\u4e8b\u300cEverything you ever wanted to know about using etcd","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/08\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/08\/kqueen-open-source-multi-cloud-k8s-cluster-manager-768x576-1.jpg","width":768,"height":576},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/36883#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"Docker","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker"},{"@type":"ListItem","position":4,"name":"Kubernetes \u3067\u306e etcd \u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u3059\u3079\u3066\uff08\u805e\u3051\u306a\u304b\u3063\u305f\u3053\u3068\uff09 #mirantis #docker #kubernetes #k8s"}]},{"@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\/bdb15033b8a4097675446265a8342d41","name":"Etsutaka Nogi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/07\/Pugzilla-up-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/07\/Pugzilla-up-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/07\/Pugzilla-up-230x230.png","caption":"Etsutaka Nogi"},"description":"Docker\u3092\u4e2d\u5fc3\u306b\u3001\u30a2\u30b8\u30e3\u30a4\u30eb\u3084DevOps\u306a\u3069\u306b\u3064\u3044\u3066\u306a\u3093\u304b\u3057\u3066\u3044\u307e\u3059\u3002 \u30d1\u30b0\u3092\u611b\u3057\u30d1\u30b0\u306b\u611b\u3055\u308c\u305f\u7537\u3002 \u65e5\u672c\u9152\u3082\u597d\u304d\u3002","sameAs":["https:\/\/www.facebook.com\/nogi.etsutaka\/","https:\/\/www.instagram.com\/pugzilla.jp\/"],"url":"https:\/\/www.creationline.com\/tech-blog\/author\/nogi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/36883","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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=36883"}],"version-history":[{"count":14,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/36883\/revisions"}],"predecessor-version":[{"id":37629,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/36883\/revisions\/37629"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/36292"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=36883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=36883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=36883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}