“Sidecar” containers in Kubernetes pods

前端 未结 5 921
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 02:17

I\'d like a multi-container pod with a couple of components:

  • A \"main\" container which contains a build job
  • A \"sidecar\" container which contains an
5条回答
  •  北海茫月
    2020-12-24 02:41

    The feature might not have been available when the question was asked but, one can define postStart and preStop handlers for pod now. You could probably define preStop in your main container to kill sidecar container.

提交回复
热议问题