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

Picture-story Kubernetes

aoi
November 24, 2021

Picture-story Kubernetes

Picture-story Kuberenetes.
Made for Kubernetes beginners

aoi

November 24, 2021
Tweet

More Decks by aoi

Other Decks in Technology

Transcript

  1. First What I am going to speak • Abstracts and

    consideration about Kubernetes Not speak about • Description about Docker and containers • How to useKubernetes
  2. Episode 1:Here Comes Kubernetes!   Why Kubernetes was created Episode 2:Kubernetes

    and the Days   Deployment flow for Kubernetes Episode 3:And the Journy Continues   Mechanisms to keep running Kubernetes 目次
  3. There Were No Problems in the Beginning But... A failure

    in one place affects the whole takes time to start takes time to release
  4. But That Doesn't Make the Challenge Go Away. Hard to

    detect a failure and bring the container back up. Which server did I deploy the container? Where should I deploy the container?
  5. What Makes You Happy When You Use a Container? ・Containers

    are faster to boot than virtual machines. ・Applications are isolated in containers, which is convenient. On the other hand, containers become disorganized and difficult to manage.
  6. App Guest OS Host OS Hardware Virtual Machine Container Hypervisor

    Guest OS Middle ware Middle ware App App App App App App App Middle ware Middle ware Hardware Host OS Container Runtime
  7. What is Kubernetes? Kubernetes is a portable, extensible, open-source platform

    for managing containerized workloads and services, that facilitates both declarative configuration and automation. (From Kubernetes Document https://kubernetes.io/docs/concepts/overvie w/what-is-kubernetes/)
  8. 1. Implement “Infrastructure As Code” through the use of resource

    configuration files called manifests 2. Standardized and abstracted by Kubernetes API, no need to know server-specific settings 3. Reconciliation Loop Kubernetes Makes Container Operations Convenient
  9. apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: -

    name: test image: nginx:1.14.2 resources: requests: memory: "100Mi" Example of manifest:nginx container Which server to deploy? What Operating System to use?Specification of the server memory? No need to worry!
  10. To Develop Using Containers... Connection between containers? App App App

    Middle ware Middle ware Hardware Host OS Container Runtime How to Access from the outside? How to pass the configuration file? How to use storage?
  11. Is it Good to manually kubectl apply each time? kubectl

    apply kubectl apply How do you manage it? When to apply? Which environment to apply it to?
  12. Difference? CIOps:Push-based model. It is easy to understand and intuitive

    because it automates what kubectl apply does. GitOps:Pull-based model. Because it is declarative, the managed manifest is always the correct configuration.
  13. Kubernetes Architecture kube- apiserver etcd controller manager kubelet kube- proxy

    kubectl kube- scheduler Control Plane Node Node kubelet kube- proxy
  14. Still, Failures Happen: Examples from Other Companies Deleting a cluster

    in the production environment (Spotify) Cleanup process removes Docker images from production environment (Airbnb)
  15. • No matter how good Kubernetes is, failures will occur.

    • “Logging in to a VM, checking it with ps or systemctl, and looking at the log file" is no longer an option. Log! Metrics! Alert! Important! Observability
  16. Reference Kubernetesとは何か? https://kubernetes.io/ja/docs/concepts/overview/what-is-kubernetes/ Using Pods https://kubernetes.io/docs/concepts/workloads/pods/#using-pods 10 More Weird Ways

    to Blow Up Your Kubernetes - Jian Cheung & Joseph Kim, Airbnb https://www.youtube.com/watch?v=4CT0cI62YHk Keynote: How Spotify Accidentally Deleted All its Kube Clusters with No User Impact - David Xia https://www.youtube.com/watch?v=ix0Tw8uinWs Kubernetes Failure Stories https://k8s.af