关于kubernetes:Kubernetes基于容器的分布式系统

10次阅读

共计 807 个字符,预计需要花费 3 分钟才能阅读完成。

1. Single-Container Management Patterns

2. Single-Node, Multi-Container Application Patterns

跨容器设计模式
https://kubernetes.io/blog/20…

* Pod: k8s 中创立和治理的、最小可部署计算单元。共享网络、存储

* Container: 容器,资源核算和调配的单元

1) Sidecar Pattern

An extra container in your pod to enhance or extend the functionality of the main container.

应用独立容器,不将性能构建在主容器中的劣势

  • 辅助容器在主容器服务不忙碌时应用闲置资源
  • 独自开发测试
  • 辅助容器可作为组件反复利用
  • 容错边界,辅助容器出错不影响主容器服务失常运行
  • 独自公布回滚

2)Ambassador Pattern

A container that proxy the network connection to the main container.

大使模式:通过大使容器帮忙利用容器拜访内部服务

3)Adapter Pattern

A container that transform output of the main container.

适配器模式:格式化解决主容器的输入

3. Multi-Node Application Patterns

1) Leader Election Pattern

2) Work Queue Pattern

3) Scatter/Gatter Pattern

Reference

https://kubernetes.io/zh/docs…

https://segmentfault.com/a/11…

https://www.usenix.org/system…

https://www.jianshu.com/p/e43…

https://techbeacon.com/enterp…

正文完
 0