Upgrade to Pro — share decks privately, control downloads, hide ads and more …

kindで作るローカルk8s開発環境

Kenta Shinohara
January 31, 2020
43

 kindで作るローカルk8s開発環境

Kenta Shinohara

January 31, 2020
Tweet

Transcript

  1. Kenta Shinohara @ NSݚN੍PωࣜDP • Ϋϥ΢υωΠςΟϒNFVج൫ͷݚڀɾ։ൃ • 1/31 NTT Tech

    Conference #4ͰLT͠·ͨ͠ Copyright©2020 NTT Corp. All Rights Reserved. NTT Tech Conf#4 @2020/1/31 1
  2. ϩʔΧϧ k8sʁ • minikube • hypervisorϕʔε • Virtual box, hyperkit,

    parallels, vmware, etc… • 2vCPU / 2GB mem • γϯάϧϊʔυΫϥελ • master/workerಉډߏ੒ • ΋͏গͪ͠ΌΜͱͨ͠؀ڥ͕ཉ͍͠ɾɾ
  3. kind architecure Server docker docker docker Kube-apiserver Kube-controller Kube-scheduler etcd

    kube-proxy coredns Image: kindest/node:v1.17.0 kind.cluster: test kind.role: control-plane Image: kindest/node:v1.17.0 kind.cluster: test kind.role: worker Image: kindest/node:v1.17.0 kind.cluster: test kind.role: worker Kubelet kube-proxy Kubelet Kubelet kube-proxy cni: kindnet cni: kindnet cni: kindnet EPDLFS CSJEHF ίϯςφͷJQSPVUFJQUBCMFTΛ؅ཧ
  4. ࢀߟɿπʔϧൺֱ • kind • minikube virtualbox • minikube hyperkit kind

    Minikube virtualbox Minikube hyperkit Start-up time [sec] 82 133.65 141.14 CPU% 25 30 20 Memory [MiB] 622 2071 * wired down pages 2615 node Master x1 worker x2 Single node Single node environment: MacBook Pro 2017, CPU: Intel Core i5 2.3GHz, Memory: 16GB
  5. kind architecure ;ͨͨͼ Server docker docker docker Kube-apiserver Kube-controller Kube-scheduler

    etcd kube-proxy coredns Image: kindest/node:v1.17.0 kind.cluster: test kind.role: control-plane Image: kindest/node:v1.17.0 kind.cluster: test kind.role: worker Image: kindest/node:v1.17.0 kind.cluster: test kind.role: worker Kubelet kube-proxy Kubelet Kubelet kube-proxy cni: kindnet cni: kindnet cni: kindnet EPDLFS CSJEHF frontend Pod frontend Pod frontend Pod Redis-master Pod Redis-slave Pod Redis-slave Pod github/kubernetes/examples/guestbook