Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to kubernetes

731 views

Published on

Introduction to kubernetes

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Introduction to kubernetes

  1. 1. Introduction to Kubernetes Speaker : Thor Chin
  2. 2. Agenda Container VS Virtual MachineA DockerB KubernetesC Kubernetes integrate with OpenStackD What’s Next?E
  3. 3. Agenda Container VS Virtual MachineA DockerB KubernetesC Kubernetes integrate with OpenStackD What’s Next?E
  4. 4. Container VS Virtual Machine
  5. 5. Container VS Virtual Machine Container Virtual Machine Represents operating system virtualization Represents hardware-level virtualization Lightweight Heavyweight Real-time provisioning and scalability Slow provisioning Native performance Limited performance Process-level isolation and hence less secure Fully isolated and hence more secure
  6. 6. Agenda Container VS Virtual MachineA DockerB KubernetesC Kubernetes integrate with OpenStackD What’s Next?E
  7. 7. What’s Docker  Docker is an open-source project that automates the deployment of applications inside software containers  Docker uses the resource isolation features of the Linux kernel such as cgroups and kernel namespaces, and a union-capable file system such as OverlayFS to allow independent "containers" to run within a single Linux instance.
  8. 8. Docker Architecture • Docker Container • Docker Image • Docker Registry • Dockerfile
  9. 9. Why Docker needs Kubernetes?
  10. 10. Agenda Container VS Virtual MachineA DockerB KubernetesC Kubernetes integrate with OpenStackD What’s Next?E
  11. 11. Why Kubernetes?  Powerful Community  Open Source – no vendor lock-in  Large Scale  Rolling Upgrade  Self-healing  Federation and Hybrid  Easy to Management  Easy to integrate with monitoring system – Heapster, InfluxDB, Grafana
  12. 12. Three Important Concept of Kubernetes  Pod  Service  Deployments (Replication Controller)
  13. 13. Pod  Pod is a group of one or more containers  Containers in a Pod will share network namespaces, IP and port  When a Pod terminated, all the container in the Pod will also be terminated
  14. 14. Service  A Kubernetes Service is an abstraction which defines a logical set of Pods and a policy by which to access them - sometimes called a micro- service  The set of Pods targeted by a Service is (usually) determined by a Label Selector
  15. 15. Deployment  A Deployment provides declarative updates for Pods and Replica Sets  A Deployment will guarantee the Replica Set of the K8S System  A Deployment can support Rolling Back / Update and Scaling functions
  16. 16. Kubernetes Components  Master Components  kube-apiserver : exposes the Kubernetes API  etcd : used as Kubernetes’ backing store. All cluster data is stored here  kube-controller-manager : the background threads that handle routine tasks in the cluster  kube-scheduler : watches newly created pods that have no node assigned, and selects a node for them to run on
  17. 17. Kubernetes Components  Node Components  kubelet : the primary node agent runs the pod’s containers via docker  kube-proxy : enables the Kubernetes service abstraction by maintaining network rules on the host and performing connection forwarding  docker : used for actually running containers  fluentd : a daemon which helps provide cluster-level logging
  18. 18. Kubernetes Architecture
  19. 19. Kubernetes Users
  20. 20. Run Kubernetes on OpenStack at Scale at Yahoo! JAPAN Ref : http://blog.kubernetes.io/2016/10/kubernetes-and-openstack-at-yahoo-japan.html
  21. 21. Kubernetes 1.6 Scalability Update Kubernetes 1.6 can handle 5,000-node clusters with up to 150,000 pods
  22. 22. Kubernetes 1.6 Scalability Update API response latency for a 5000-node Kubernetes 1.6 cluster are less than 500ms, and even 90th percentile is less than about 100ms
  23. 23. Agenda Container VS Virtual MachineA DockerB KubernetesC Kubernetes integrate with OpenStackD What’s Next?E
  24. 24. Solutions for integrate OpenStack and Kubernetes Magnum Nova + Ironic Kolla-kubernetes / Helm
  25. 25. Magnum Controller node Magnum HAProxy Neutron Controller node Magnum HAProxy Neutron Controller node Magnum HAProxy Neutron Computing Resource Scaling Compute Node Nova K8S Master K8S Node Compute Node Nova K8S Master Compute Node Nova K8S Master 10g K8S Node K8S Node
  26. 26. Magnum
  27. 27. Nova + Ironic Controller node ceph-mon HAProxy Neutron Controller node ceph-mon HAProxy Neutron Controller node ceph-mon HAProxy Neutron Computing Resource Scaling Storage Resource Scaling Storage node ceph-osd ceph-osd ceph-osd Storage node ceph-osd ceph-osd ceph-osd Storage node ceph-osd ceph-osd ceph-osd Storage node ceph-osd ceph-osd ceph-osd K8S node Pod1 Pod2 Pod3 K8S node Pod1 Pod2 Pod3 K8S node Pod1 Pod2 Pod3 Compute Node Ironic Nova K8S Master Compute Node Ironic Nova K8S Master Compute Node Ironic Nova K8S Master 10g 10g
  28. 28. Kolla-kubernetes / Helm
  29. 29. Kolla-kubernetes / Helm K8S master etcd kub-ctl scheduler K8S master etcd kub-ctl scheduler K8S master etcd kub-ctl scheduler K8S node cinder glance neutron K8S node horizon keystone heat K8S node nova nova nova K8S node nova nova nova K8S node Pod1 Pod2 Pod3 K8S node Pod1 Pod2 Pod3 K8S node Pod1 Pod2 Pod3 K8S node ceph-mon ceph-rgw ceph-rgw K8S node ceph-mon ceph-rgw ceph-rgw Storage node ceph-osd ceph-osd ceph-osd Storage node ceph-osd ceph-osd ceph-osd Storage node ceph-osd ceph-osd ceph-osd 10g 10g
  30. 30. Agenda Container VS Virtual MachineA DockerB KubernetesC Kubernetes integrate with OpenStackD What’s Next?E
  31. 31. What’s Next?
  32. 32. IoT Cloud Platform
  33. 33. www.inwinstack.com Thank You! 迎 棧 科 技 股 份 有 限 公 司

×