Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
入社後初めてのタスクでk8sアップグレードした話.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ken Kato
April 09, 2024
Technology
900
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
入社後初めてのタスクでk8sアップグレードした話.pdf
Ken Kato
April 09, 2024
More Decks by Ken Kato
See All by Ken Kato
Blue/Green Deployment を用いた PostgreSQL のメジャーバージョンアップ
kkato1
1
310
Datadog RUMを導入するまで
kkato1
0
130
初めてのPostgreSQLメジャーバージョンアップ
kkato1
0
2.2k
ウォンテッドリーのマイクロサービス運用・開発を加速する kube
kkato1
0
350
PostgreSQLのVACUUMとは
kkato1
3
3.5k
論理レプリケーションを使ったDB統合
kkato1
0
1.3k
ウォンテッドリーにおけるk8sマニフェストの管理方法
kkato1
0
350
DNSルックアップの回数制限でハマった話
kkato1
1
760
Other Decks in Technology
See All in Technology
【CEDEC2026】専門性の高いデフォルメチームが挑んだ人材育成戦略 〜Cygames Academiaの企画から実施まで〜
cygames
PRO
0
600
会社紹介資料 / Sansan Company Profile
sansan33
PRO
23
430k
PLATEAU で バーチャル花火大会
tatsuya1970
0
150
ラジオの科学
frievea
0
310
ガバメント AI 源内を地方自治体は活用できるのか可能性と課題、期待について
takeda_h
1
400
第3回しろおびセキュリティスポンサーセッション
log0417
0
180
FDEの心得
noriakioji
4
5.5k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
2.2k
LanceDB入門
mocobeta
7
490
ホームラボ紹介
y_sera15
0
170
Featured
See All Featured
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
Fireside Chat
paigeccino
42
4k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
250
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
270
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
380
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.8k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
480
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
How to build a perfect <img>
jonoalderson
1
5.9k
Transcript
© 2024 Wantedly, Inc. 入社後初めてのタスクで k8s アップグレードした話 Kubernetes Novice Tokyo
#31 April 9 2024 - Ken Kato
© 2024 Wantedly, Inc. 自己紹介 加藤 健 所属:ウォンテッドリー株式会社 職種:インフラエンジニア 趣味:ボルダリング
🧗
© 2024 Wantedly, Inc. 前置き 2024年1月 ウォンテッドリーに入社 2024年2月 k8s アップグレード実施
(4週間)
© 2024 Wantedly, Inc. 目次 • ウォンテッドリーの k8s 構成 •
ウォンテッドリーの k8s アップグレード戦略 • 手順 • 感想
© 2024 Wantedly, Inc. ウォンテッドリーのk8s構成 2016年からKubernetesを本番環境で運用している • Amazon EKS •
3つのクラスタ ◦ production ◦ qa ◦ sandbox • マイクロサービス: 100個以上 • 各クラスタのノード台数: 40~80くらい • k8s クラスタアドオン: 34個 (内EKSアドオンが4個) ◦ Wantedly Kubernetes クラスタアドオン大全 2023
© 2024 Wantedly, Inc. ウォンテッドリーの k8s アップグレード戦略 ① • 3ヶ月に1回
アップグレード を行なっている ◦ EOLに追いつかれないように、3ヶ月に1回の頻度でアップグレードしている ◦ 現在のバージョンは1.28 Kubernetes バージョン 標準サポート終了日 (EOL) 1.29 2025年3月23日 1.28 2024年11月26日 1.27 2024年7月24日 1.26 2024年6月11日 1.25 2024年5月1日 参考: https://docs.aws.amazon.com/ja_jp/eks/latest/userguide/kubernetes-versions.html 4ヶ月 4ヶ月 1ヶ月 1ヶ月
© 2024 Wantedly, Inc. ウォンテッドリーの k8s アップグレード戦略 ② • 基本的には
In-place ◦ 3環境あるので、どこかで問題に気づけるはず ◦ リスクがある場合はBlue / Green (クラスタ移行)を実施する ノードA ノードB ノードC ノードC’ ノードB’ ノードA’ 古いノードグループ 古いノードグループ 新しいノードグループ
© 2024 Wantedly, Inc. ウォンテッドリーの k8s アップグレード戦略 ③ • 事前にアドオンをアップグレードする
◦ アドオンがクラスタの新バージョンに対応していないことがある ◦ k8s アップグレードとは別に定期的にアドオンのアップグレードを実施している ウォンテッドリーでは以下のツールを使ってアドオンのアップグレードを効率化 Argo CD Helmfile Renovate
© 2024 Wantedly, Inc. 手順 sandbox -> qa -> productionの順番でアップグレードする
Terraformで管理していて、PRベースで実施している 1. k8s / EKS、アドオンの破壊的変更の確認 ◦ 対応が必要なものはアップグレード前に実施する 2. コントロールプレーンのアップグレード 3. ノードのアップグレード ◦ Elasticsearchノードの入れ替え ◦ メインノードの入れ替え 4. EKSアドオンのアップグレード 5. kubectlのアップグレード
© 2024 Wantedly, Inc. 感想 • よかった点 ◦ 手順が確立されていて初めてでもスムーズに進められた ◦
先輩社員が1人サポートについてくれたので心強かった • 苦労した点 ◦ 破壊的変更の確認が大変だった ◦ StatefulSetをrollout restartして新しいノードに再配置するのに時間がかかった
© 2024 Wantedly, Inc. We are hiring! https://www.wantedly.com/projects/522096