id
type
5 (blog/news article)
status
21 (imported old-v2, waiting for another import)
review version
0
cleanup version
0
pending deletion
0 (-)
created at
2025-05-19 02:52:55
updated at
2025-11-09 20:57:23
url
https://sreake.com/blog/kubernetes-native-sidecar/
url length
50
url crc
20903
url crc32
829772199
location type
1 (url matches target location, page_location is empty)
canonical status
10 (verified canonical url)
canonical page id
domain id
domain tld
0
domain parts
0
originating warc id
-
originating url
https://sreake.com/post-sitemap.xml
source type
1 (sitemap)
server ip
Publication date
2025-11-09 20:57:22
Fetch attempts
1
Original html size
88968
Normalized and saved size
35607
title
Kubernetes Sidecar 一問一答 | sreake.com | 株式会社スリーシェイク
excerpt
content
目次 はじめに Kubernetes 1.29からBeta機能となったSidecar Containerという機能を使う機会があったので、これについて一問一答形式で概要を共有してみようと思います。 小粒なTipsになりますがご参考にしてください。 公式DOC: https://kubernetes.io/ja/docs/concepts/workloads/pods/sidecar-containers/ Q. Sidecar Containerってどんな機能? Podが複数のコンテナで構成されるとき、メインとなる業務ロジックが実装されたコンテナとは別に、ログコレクターやネットワークプロキシをセカンドコンテナとして一緒にデプロイするケースがかねてより存在しました。このセカンドコンテナを従来から「サイドカーコンテナ」と呼んでいました。 Kubernetes 1.29からBeta機能となったSidecar Containerは少し特殊なInitContainerで、起動したコンテナはCompletedで終了などせずメインコンテナと並んで稼働し続けます。これによって従来のサイドカーコンテナのユースケースをネイティブ機能として提供されます。 Q. 何が嬉しいの? 従来のサイドカーコンテナの場合、主に以下のような問題点がありました。 【起動順序・終了順序の制御が困難】 例えば、Istioを使っている場合ネットワークプロキシの役割でサイドカーコンテナとしてenvoyが構成されます。しかし起動のラグで通信を取りこぼしてしまう可能性があるため起動順序は envoy → メインコンテナ となって欲しいです。これを実現するためにIstioではコンテナの起動順序を制御するような機能追加していました。 また、Pod終了時も メインコンテナ → envoy の順番で終了して欲しいためこういった制御を入れていました。 Sidecar Container機能は、InitContainerがベースとなるためk8sは一番最初に起動しようと試みます。これによってメインコンテナとの関係性を明確に定義できるようになり、whileループなどでお隣のコンテナの様子を伺...
author
kobayashikenta
updated
1764048574
block type
0
extracted fields
237
extracted bits
featured image
article author
title
full content
content was extracted heuristically
OpenGraph suggests this is an article
detected location
0
detected language
126 (language undetectable (empty document, too short, or engines disagree))
category id
index version
2025110801
paywall score
0
spam phrases
0
text nonlatin
1356
text cyrillic
0
text characters
2093
text words
134
text unique words
112
text lines
1
text sentences
6
text paragraphs
1
text words per sentence
22
text matched phrases
5
text matched dictionaries
1
links self subdomains
0
links other subdomains
4
links other domains
1
links spam adult
0
links spam random
0
links spam expired
0
links ext activities
0
links ext ecommerce
0
links ext finance
0
links ext crypto
0
links ext booking
0
links ext news
0
links ext leaks
0
links ext ugc
4
links ext klim
0
links ext generic
0
image author