Kubernetes overview

Kubernetes overview

133558392038757a45654066915af021?s=128

Samina (Shan Jung Fu)

December 12, 2018
Tweet

Transcript

  1. Kubernetes Overview Presenter: Samina (Shan-Jung Fu) Date: 2018/12/12

  2. Agenda About Me Chapter 1 - Overview Chapter 2 -

    Hands-on Additional
  3. Chapter 1 - Overview

  4. Chapter 1 Overview Introduction Setup Solutions Architecture Components Resources

  5. Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

  6. Kubernetes Introduction • Kubernetes is Greek for captain or pilot

    • Aka K8s, replace “ubernete” with 8 • Experiences from Google and design by Google • An open-source system • A container management system
  7. Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

  8. Kubernetes Setup Solutions • Local-machine solutions • Hosted solutions •

    Turnkey cloud solutions • On-premises turnkey cloud solutions • Custom solutions • etc.
  9. Kubernetes Setup Solutions (Cont.) • Local-machine solutions A local, single-node

    Kubernetes cluster for development and testing ◦ Minikube ◦ microk8s ◦ etc. • Hosted solutions • Turnkey cloud solutions • On-premises turnkey cloud solutions • Custom solutions
  10. Kubernetes Setup Solutions (Cont.) • Local-machine solutions • Hosted solutions

    Maintain more machines and higher availability ◦ OpenShift ◦ VMware Cloud PKS ◦ etc. • Turnkey cloud solutions • On-premises turnkey cloud solutions • Custom solutions • ...
  11. Kubernetes Setup Solutions (Cont.) • Local-machine solutions • Hosted solutions

    • Turnkey cloud solutions Create K8s clusters on a range of Cloud IaaS providers with only a few commands ◦ AWS ◦ Google Compute Engine (GCE) ◦ etc. • On-psremises turnkey cloud solutions • Custom solutions
  12. Kubernetes Setup Solutions (Cont.) • Local-machine solutions • Hosted solutions

    • Turnkey cloud solutions • On-premises turnkey cloud solutions Create K8s clusters on your internal, secure, cloud network with only a few commands ◦ GKE On-Prem | Google Cloud ◦ SUSE CaaS Platform ◦ etc. • Custom solutions
  13. Kubernetes Setup Solutions (Cont.) • Local-machine solutions • Hosted solutions

    • Turnkey cloud solutions • On-premises turnkey cloud solutions • Custom solutions ◦ kubeadm ◦ Kubespray ◦ Kubernetes The Hard Way ◦ etc.
  14. Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

  15. Kubernetes Architecture apiserver etcd scheduler controller kubelet kubelet kubelet API

    CLI UI Users Control plane Nodes
  16. Kubernetes Architecture (Cont.) Node • A worker machine in K8s

    • Can be a VM or physical machine • also called "minions" • Node components do: ◦ Run on each node ◦ Maintain running pods ◦ Provid K8s runtime ENV • Components: ◦ Kubelet ◦ Kube-proxy ◦ Container Runtime Node Kubelet Container Runtime Kube-proxy Pod Pod Pod
  17. Kubernetes Architecture (Cont.) • The components of Control plane (its

    "brains"): ◦ API server (our point of entry to everything!) ◦ core services like scheduler & controller manager ◦ etcd ▪ a highly available key/value store ▪ "database" of K8s • Also called the "master"
  18. Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

  19. Kubernetes Components (Cont.)

  20. Kubernetes Components

  21. Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

  22. • Do many actions: create, update, delete ... • Contain

    a lot of objects called resources ◦ These resources are organized by type or Kind (in the API) Kubernetes API
  23. Kubernetes Resources (Cont.) • A few common resource types are:

    ◦ node (a machine - physical or virtual) ◦ pod (group of containers running together on a node) ◦ service (stable network endpoint to connect to one or multiple containers) ◦ namespace (more-or-less isolated group of things) And much more!
  24. Kubernetes Resources (Cont.) • We can see the full list

    by running kubectl api-resources (In Kubernetes 1.10 and prior, the command to list API resources was kubectl get)
  25. Copyright 2015 ITRI 工業技術研究院 Additional • Try https://labs.play-with-k8s.com/ , if

    you want. • GitHub Repository: https://github.com/play-with-docker/play-with-docker