Skip to content

Instantly share code, notes, and snippets.

@swdream
Last active November 19, 2018 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swdream/12367c6df9a3d520222e779abe156088 to your computer and use it in GitHub Desktop.
Save swdream/12367c6df9a3d520222e779abe156088 to your computer and use it in GitHub Desktop.

Master machine components

Etcd

  • Lưu trữ configuration files được sử dụng bởi các node trong cluster
  • là high availability key value store có thể được đặt trong nhiều node
  • nó chưá một số sensitive info và được access bởi kubenetes API server

API server

  • implement một interface, các tool và các thư viện khác nhau có thể connect tới
  • Đồng bộ hoá các operation trong cluster sử dụng rest API

Controller manager

  • Là thành phần quản lý toàn bộ các collectors điều chỉnh state của các cluster và các operation
  • Nó được xem xét như một daemon collect thông tin và gửi tới API server

Scheduler

  • là một service có trách nhiệm phân tán workload. Scheduler theo dõi việc workload của tất cả các node và đặt wordload vào các node available.

Node components

docker

Kubelet service

Là một small service :

  • Tương tác với ectd để đọc các configuration infor cho mỗi node
  • Tương tác với các master component để nhận các command và works

Kubenetes Proxy service

  • Run trên mỗi node
  • making services available to external host
  • foward request tới đúng các container và có khả năng thực thi load balancing

Job

@swdream
Copy link
Author

swdream commented Nov 19, 2018

error

Error from server (BadRequest): container "nginx-ingress-controller" in pod "nginx-nginx-ingress-controller-568d6f7dcb-22h8v" is waiting to start: trying and failing to pull image

lý do: private cluster không connect được ra mạng ngoài
solution: add cloud nat

@swdream
Copy link
Author

swdream commented Nov 19, 2018

kubectl -n kube-system patch deployment tiller-deploy -p '{"spec": {"template": {"spec": {"automountServiceAccountToken": true}}}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment