{"id":7352,"date":"2019-09-26T23:05:06","date_gmt":"2019-09-26T14:05:06","guid":{"rendered":"https:\/\/www.taruki.com\/wp\/?p=7352"},"modified":"2019-09-26T23:05:06","modified_gmt":"2019-09-26T14:05:06","slug":"kubespray%e3%82%b9%e3%83%86","status":"publish","type":"post","link":"https:\/\/www.taruki.com\/wp\/?p=7352","title":{"rendered":"kubespray\u30b9\u30c6"},"content":{"rendered":"<p>kubespray\u30671.15.1\u21921.15.4\u306b\u66f4\u65b0\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u30b3\u30f3\u30c6\u30ca\u30e9\u30f3\u30bf\u30a4\u30e0cri-o\u3060\u3068\u307e\u3068\u3082\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u305a\u3001Cluster\u3092\u3076\u3063\u58ca\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u30ea\u30ab\u30d0\u30ea\u30fc\u3059\u308b\u3088\u308a\u4f5c\u308a\u76f4\u3057\u305f\u65b9\u304c\u65e9\u3044\u3068\u5224\u65ad\u3002\u666e\u901a\u306b\u516c\u5f0fRPM\u30ea\u30dd\u30b8\u30c8\u30ea+kubeadm\u3067\u5c0e\u5165\u3057\u76f4\u3057\u3002<BR><br \/>\n\u3067\u30011.16.0\u3092\u8a66\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001cri-o\u3060\u3068\u6700\u65b0\u7248\u3067\u3082\u300ckubeadm init\u300d\u3067kubelet\u8d77\u52d5\u5f8c\u306bcri-o\u3068\u3069\u3046\u3084\u3063\u3066\u3082\u901a\u4fe1\u3067\u304d\u306a\u3044\u3002\u4ed5\u65b9\u304c\u7121\u3044\u306e\u3067\u8d85\u5acc\u3044\u306adocker\u306b\u3057\u305f\u3068\u3053\u308d\u3042\u3063\u3055\u308a\u52d5\u4f5c\u3002<BR><br \/>\n\u524d\u63d0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u901a\u308a\u5c0e\u5165\uff06\u8a2d\u5b9a\u3057\u3066docker\u3092\u52d5\u304b\u3057\u305f\u3089\u3001master\u30ce\u30fc\u30c9\u3067\u300ckubeadm init\u300d\u3092\u5b9f\u884c<br \/>\n<PRE><br \/>\n# kubeadm init &#8211;apiserver-advertise-address=xxx.xxx.xxx.xxx &#8211;pod-network-cidr=10.xx.0.0\/16<br \/>\n<\/PRE><br \/>\n<BR><br \/>\n<BR><br \/>\nkubelet\u304c\u3061\u3083\u3093\u3068\u8d77\u52d5\u3057\u305f\u3089workernode\u8ffd\u52a0\u3002<br \/>\n<PRE><br \/>\n# kubeadm join xxx.xxx.xxx.xxx:6443 &#8211;token xxxxx.yyyyyyyy     &#8211;discovery-token-ca-cert-hash sha256:yyyyyyyyyyyyyyyyyyyyyyyyyyyy<br \/>\n<\/PRE><br \/>\n\u30ce\u30fc\u30c9\u3092\u30e9\u30d9\u30eb\u4ed8\u3051\u3002<br \/>\n<PRE><br \/>\n# kubectl label node xxxx node-role.kubernetes.io\/node=node<br \/>\n# kubectl label node xxxxx type=worker<br \/>\n<\/PRE><br \/>\n<BR><br \/>\n\u3057\u304b\u3057\u3001\u4eca\u5ea6\u306fhelm-2.x\u304c1.16.0\u306b\u672a\u5bfe\u5fdc\u3060\u3063\u305f\u306e\u3067\u30013.0Beta\u3067\u8a66\u3059\u3002<BR><br \/>\n3.0\u7cfb\u5217\u306b\u306f\u300chelm init\u300d\u30b3\u30de\u30f3\u30c9\u304c\u306a\u3044\u306e\u3067\u9014\u65b9\u306b\u66ae\u308c\u305f\u3051\u3069\u300chelm repo add \u30ea\u30dd\u30b8\u30c8\u30ea\u540d URL\u300d\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u3066\u3044\u3051\u3070\u826f\u3044\u306e\u306d\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u826f\u304f\u4f7f\u3044\u305d\u3046\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3002<BR><br \/>\n<PRE><br \/>\n# helm repo add stable  https:\/\/kubernetes-charts.storage.googleapis.com<br \/>\n# helm repo add elastic https:\/\/helm.elastic.co<br \/>\n# helm repo add rook-master https:\/\/charts.rook.io\/master<br \/>\n# helm repo add bitnami https:\/\/charts.bitnami.com\/bitnami<br \/>\n<\/PRE><br \/>\n\u3067\u3001rook\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u305f\u3051\u3069\u305f\u3063\u305f3node\u3067ceph\u306f\u306d\u30fc\u3060\u308d\u3068\u3044\u3046\u3053\u3068\u3067\u3001DRBD9+linstor-csi\u3092\u5c0e\u5165\u3002<BR><br \/>\n3Ware\u793e\u306e<a href=\"https:\/\/fex.3ware.co.jp\/s\/4v7nGDewSNVClAL#pdfviewer\" rel=\"noopener noreferrer\" target=\"_blank\">\u30de\u30cb\u30e5\u30a2\u30eb(PDF)<\/a>\u901a\u308a\u306b\u3084\u308b\u3068\u3001apiVersion\u304cv1\/beta\u3063\u3066\u306a\u3093\u3084\u306d\u3093\u3068\u6012\u3089\u308c\u305f\u306e\u3067\u3001StateFulSet\u3068DaemonSet\u306eapiVersion\u3092apps\/v1\u306b\u5909\u66f4\u3057\u3001StateFulSet\u306bselector:\u69cb\u6587\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u52a0\u3002<br \/>\n<PRE><br \/>\n  selector:<br \/>\n    matchLabels:<br \/>\n      app: linstor-csi-controller<br \/>\n<\/PRE><br \/>\nDRBD\u306eStoragePool\u306f\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001LVMThin\u306ePV\u90e8\u5206\u3092vdo\u3067\u30a4\u30f3\u30e9\u30a4\u30f3\u5727\u7e2e\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002\u30e1\u30e2\u30ea\u5c11\u306a\u3081\u306a\u306e\u3067dedupe\u306f\u306a\u3057\u3002\u3053\u3046\u3059\u308b\u3068\/dev\/vdc\u306f500GB\u306e\u4eee\u60f3\u30c7\u30a3\u30b9\u30af\u3060\u3051\u3069\u30012TB\u306b\u898b\u3048\u308b\u3002\u5727\u7e2e\u7387\u306b\u3088\u3063\u3066\u306f\u30a8\u30e9\u30a4\u76ee\u306b\u3042\u3046\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001\u5bb9\u91cf\u76e3\u8996\u306f\u3061\u3083\u3093\u3068\u305b\u306d\u3070\u3002<br \/>\n<PRE><br \/>\n# vdo create &#8211;name=vdo0 &#8211;device=\/dev\/vdc1 &#8211;vdoLogicalSize=2T<br \/>\n# pvcreate \/dev\/mapper\/vdo0<br \/>\n# vgcreate vgDRBD \/dev\/mapper\/vdo0<br \/>\n# lvcreate -T -L500G vgDRBD\/thinVdoPool<br \/>\n<\/PRE><br \/>\n<BR><br \/>\ncalico\u3068metallb\u306f\u3042\u3063\u3055\u308a\u52d5\u4f5c\u3002\u524d\u56deCluster\u3076\u3063\u58ca\u308c\u305f\u3068\u304d\u306fweave\u3067vxlan\u304c\u5f35\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u6d41\u884c\u3082\u306e\u306b\u306f\u3061\u3083\u3093\u3068\u4e57\u3063\u3066\u304a\u304b\u306d\u3070\u3068calico\u3092\u9078\u629e\u3002<br \/>\n<BR><br \/>\n\u3042\u3068\u306f\u3001LocalStorage\u3092ES\u306eCluster\u7528\u306b\u7528\u610f\u3057\u3066\u3001ELK\u30b9\u30bf\u30c3\u30af\u3092helm\u3067\u4f5c\u308c\u3070\u5143\u306e\u74b0\u5883\u306f\u4f5c\u308a\u76f4\u305b\u305d\u3046\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>kubespray\u30671.15.1\u21921.15.4\u306b\u66f4\u65b0\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u30b3\u30f3\u30c6\u30ca\u30e9\u30f3\u30bf\u30a4\u30e0cri-o\u3060\u3068\u307e\u3068\u3082\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u305a\u3001Cluster\u3092\u3076\u3063\u58ca\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u30ea\u30ab\u30d0\u30ea\u30fc\u3059\u308b\u3088\u308a\u4f5c\u308a\u76f4\u3057\u305f\u65b9\u304c\u65e9\u3044\u3068\u5224\u65ad\u3002\u666e\u901a\u306b\u516c\u5f0f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[24],"tags":[108,49,36],"class_list":["post-7352","post","type-post","status-publish","format-standard","hentry","category-pc","tag-k8s","tag-linux","tag-network"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/7352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7352"}],"version-history":[{"count":0,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/7352\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}