Share
Embed
Transcript
25 slides
-
Agenda About Me Chapter 1 - Overview Chapter 2 -
Hands-on Additional -
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 -
Kubernetes Setup Solutions • Local-machine solutions • Hosted solutions •
Turnkey cloud solutions • On-premises turnkey cloud solutions • Custom solutions • etc. -
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 -
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 • ... -
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 -
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 -
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. -
Kubernetes Architecture apiserver etcd scheduler controller kubelet kubelet kubelet API
CLI UI Users Control plane Nodes -
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 -
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" -
• 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 -
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! -
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) -
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