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
GitHub Actions Runner Controller
Search
Shigeki Shoji
March 12, 2024
Technology
0
160
GitHub Actions Runner Controller
2024-03-13 LT
Shigeki Shoji
March 12, 2024
Tweet
Share
More Decks by Shigeki Shoji
See All by Shigeki Shoji
依存ライブラリはどこに?
takesection
0
150
Amazon RDS for Db2
takesection
0
27
らいよんで、とうだんしたよ、えるてぃーで
takesection
0
43
Java in containers and serverless
takesection
0
240
2023 ANGEL Dojo LT
takesection
0
160
Mameyose 2023-06-01
takesection
0
27
AWS Lambda with Scala
takesection
0
500
Introduction to functional programming
takesection
0
180
JVMアセンブラ言語
takesection
0
140
Other Decks in Technology
See All in Technology
kcp: Kubernetes APIs Are All You Need #techfeed_live / TechFeed Experts Night 28th
ytaka23
1
170
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
200
AWSやJAWS-UGとの出会いを振り返る
yoyoyopg
1
190
実例で紹介するRAG導入時の知見と精度向上の勘所
yamahiro
7
2.4k
TypescriptでのContextualな構造化ロギングと社内全体への導入
leveragestech
3
180
ルーターでプレゼンする
puhitaku
1
3.4k
Azureの基本的な権限管理の勉強会
yhana
1
2.2k
【基本】データベース設計
oracle4engineer
PRO
2
290
中年男性がメインフレームから クラウドへキャリアシフトしてみた
uechishingo
1
430
AWS学習者向けにAzureの解説スライドを作成した話
handy
3
220
Microsoft Intune 勉強会 第 2 回目
tamaiyutaro
2
520
データベース03: 関係データモデル
trycycle
0
110
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
226
17k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
Why Our Code Smells
bkeepers
PRO
331
56k
Gamification - CAS2011
davidbonilla
77
4.6k
How STYLIGHT went responsive
nonsquared
92
4.8k
Atom: Resistance is Futile
akmur
260
25k
A better future with KSS
kneath
231
16k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
How to name files
jennybc
65
93k
Practical Orchestrator
shlominoach
183
9.7k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
0
54
Transcript
GitHub Actions Runner Controller 2024年3⽉13⽇ Shigeki Shoji
庄司重樹 受賞歴 AWS 2023 Japan Top Engineers 資格 AWS認定12冠 (All
Certifications) Professional Scrum Product Owner I Professional Scrum Master I Professional Scrum Developer I コミュニティ AWS Community Builders program、関ジャバ、JJUG、Scala関⻄、もめんと会他 2
スマートファクトリ • こんな構成で取り組みたい 3
GitHub Actionsとは “GitHub Actions は、ビルド、テスト、デプロイのパイプライン を⾃動化できる継続的インテグレーションと継続的デリバリー (CI/CD) のプラットフォームです。” 引⽤元:GitHub Actions
を理解する 4
Kubernetesでデバイスを扱うには • Device Plugins 標準 • gRPC を使って通信 • NVIDIA
GPUを使うケースで使⽤されているのを⾒たことがあるかも • OPC-UA のようなデバイスを利⽤する場合 • Microsoft 社の公式ドキュメントにも登場する Akri が有⼒そう 5
k3sって何? • 本番環境で利⽤可能 • 本番環境で利⽤可能 • シングルノードから利⽤可能 • 軽量 •
事例も豊富にある。2020年7⽉のYoutube動画によると戦闘機 でも利⽤されているとのこと • SUSE社の有償サポートがある 6
GHAをセルフホストする • Self-hosted Runnerの概要はここ • RunnerをKubernetes環境で実⾏する GitHub Actions Runner Controller
(ARC) がある • k3s の構成ファイルを環境変数に設定して helm コマンドでインス トールできる • export KUBECONFIG=/etc/rancher/k3s/k3s.yaml 7
ARCを利⽤するコツ • ARCのイメージには、通常のGHAで使⽤可能なコマンドが含ま れていない • ビルドに使⽤するWorkflowの定義は、GHAのWorkflowと揃えられる ように、使⽤するコマンドを含んだARCイメージを作成しておくこと がおすすめ 8
セルフホストの嬉しい点 • 特殊なデバイスのサポートが必要なコードの継続的インテグ レーションに使⽤できる。 9
参考資料 • GitHub Actions Runner Controller (ARC) をk3sにインストール 10
11 ご清聴ありがとうございました