sidecar 容器_kubernetes学习sidecar容器模式

sidecar 容器

Kubernetes is an open-source container orchestration engine for automating deployment, scaling, and management of containerized applications. A pod is the basic building block of kubernetes application. Kubernetes manages pods instead of containers and pods encapsulate containers. A pod may contain one or more containers, storage, IP addresses, and, options that govern how containers should run inside the pod.

Kubernetes是一个开源容器编排引擎,用于自动化容器化应用程序的部署,扩展和管理。 Pod是kubernetes应用程序的基本构建块。 Kubernetes管理Pod而不是容器,并且Pod封装容器。 一个Pod可能包含一个或多个容器,存储,IP地址以及控制容器在Pod中运行方式的选项。

A pod that contains one container refers to a single container pod and it is the most common kubernetes use case. A pod that contains Multiple co-related containers refers to a multi-container pod. There are few patterns for multi-container pods one of them is the sidecar container pattern. In this post, we will see this pattern in detail with an example project.

包含一个容器的Pod是指单个容器Pod,这是最常见的kubernetes用例。 包含多个相互关联的容器的容器是指多容器容器。 用于多容器吊舱的模式很少,其中一种是边车集装箱模式。 在这篇文章中,我们将通过一个示例项目来详细了解这种模式。

  • What are Sidecar Containers

    什么是边车集装箱

  • Example Project

    示例项目

  • Test With Deployment Object

    使用部署对象进行测试

  • How to Configure Resource Limits

    如何配置资源限制

  • When should we use this pattern

    我们什么时候应该使用这种模式

  • Summary

    摘要

  • Conclusion

    结论

什么是边车集装箱 (What are Sidecar Containers)

Sidecar containers are the containers that should run along with the main container in the pod. This sidecar pattern extends and enhances the functionality of current containers without changing it. Nowadays, We know that we use container technology to wrap all the dependencies for the application to run anywhere. A container does only one thing and does that thing very well.

Sidecar容器是应与吊舱中的主容器一起运行的容器。 这种Sidecar模式在不更改它的情况下扩展并增强了当前容器的功能。 如今,我们知道我们使用容器技术来包装所有依赖项,以便应用程序可以在任何地方运行。 容器只做一件事情,并且做得很好。

Imagine that you have the pod with a single container working very well and you want to add some functionality to the current container without touching or changing, how can you add the additional functionality or extending the current functionality? This sidecar container pattern really helps exactly in that situation.

想象一下,您的带有单个容器的容器运行得很好,并且您想在不触摸或更改的情况下向当前容器添加一些功能,如何添加其他功能或扩展当前功能? 在这种情况下,这种边车集装箱模式确实可以提供帮助。

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值