Guest User

Untitled

a guest
Dec 14th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. gcloud config set compute/zone us-east1-d
  2. gcloud container clusters create kuar-cluster
  3. gcloud container clusters delete kuar-cluster
  4. gcloud auth application-default login
  5.  
  6. Kubernetest Proxy
  7. -routes network traffic to load-balanced services in cluster
  8.  
  9. Kubernetes DNS
  10. -naming and discovery within cluster
  11.  
  12. UI
  13. -Everything is a REST API; command line client, scripts, and UI all do the same thing
  14.  
  15. Pods
  16. -container(s) that share an IP and filesystem. Allows you to group multiple containers but allocate CPU/memory differently
  17.  
  18. Liveness/Readiness
  19. -Is it alive? Should it receive traffic?
  20.  
  21. Labels
  22. - ways to select different containers (we usually use DNS/IP to do this now)
  23. Annotations:
  24. - same thing as a label, only descriptions rather than selector
  25.  
  26. Service:
  27. This is a way to interact with things outside of your pod. Usually mounted on a Cluster IP which is basically a VIP.
  28.  
  29. Service Discovery
  30. -Where is a database or web-server? Again, usually solved with DNS/IP now in a static fashion. Not reliable when IP is abstracted away
  31. -NodePort: exposes a service so that if you can reach any node on it's external IP, you can hit the service
  32. -Endpoints: individual pods that listen to a Service
  33.  
  34. ReplicaSet
  35. - ReplicaSets are the best way to handle what *sets* of pods should do. They decouple what a pod is from how it should behave in terms of scaling
  36.  
  37. DaemonSet
  38. - This ensures at least one pod will live on every node. Useful for monitoring and logging for example.
  39.  
  40. Jobs
  41. -Pod that runs until succesful termination. Think Lambda.
  42.  
  43. 1.) Kubernetes is a Google product. Google has been running containers in production since the mid 2000's. The first production iteration was called Borg, the second was called Omega. Kubernetes (Greek for helmsman/pilot) is the third iteration. Started life as Project Seven to make a "friendlier borg". 7 spokes in the wheel is a nod to that codename. Kubernetes also does some word association with Docker which is famous for the whale like Linux is famous for the penguin. (pods).
  44. 2.) Kubernetes is to Docker what VSphere is to ESXi guests. It's orchestration and management, but it doesn't get into the business of redefining a container or container format. It's actually a little closer to openstack in that you could bend it to use non-Docker containers, but there's seldom a great reason to. It takes the pieces that Docker does well of definiing what a container is and how to build one, and adds orchestration to the whole thing to manage things like scheduling.
  45. 3.) What is a container? A container is just a filesystem that gets run with some degree of process isolation. It shares a common kernel, but beyond that can be isolated in process namespace, shared filesystems, network. You can essentially run it as a small VM if you like. Because the kernel is already running, it's very quick to start, and can be extremely tiny in size (Alpine Linux is only 5MB as a base image).
  46. 4.) So what does kubernetes do
Add Comment
Please, Sign In to add comment