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

Kubernetes overview

Kubernetes overview

Samina (Shan Jung Fu)

December 12, 2018
Tweet

More Decks by Samina (Shan Jung Fu)

Other Decks in Technology

Transcript

  1. 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
  2. Kubernetes Setup Solutions • Local-machine solutions • Hosted solutions •

    Turnkey cloud solutions • On-premises turnkey cloud solutions • Custom solutions • etc.
  3. 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
  4. 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 • ...
  5. 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
  6. 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
  7. 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.
  8. 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
  9. 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"
  10. • 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
  11. 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!
  12. 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)
  13. 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