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
210
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
JAWS-UG Okayama 2024 LT
takesection
0
29
IaCツールのいろいろ
takesection
0
250
依存ライブラリはどこに?
takesection
0
190
Amazon RDS for Db2
takesection
0
36
らいよんで、とうだんしたよ、えるてぃーで
takesection
0
57
Java in containers and serverless
takesection
0
280
2023 ANGEL Dojo LT
takesection
0
180
AWS Lambda with Scala
takesection
0
540
Introduction to functional programming
takesection
0
190
Other Decks in Technology
See All in Technology
AWSサービスメニュー開発をしていてAWSを好きだ!と感じた瞬間
toru_kubota
0
130
Azure OpenAI Service Dev Day / LLMでできる!使える!生成AIエージェント
masahiro_nishimi
3
750
テストケースの自動生成に生成AIの導入を試みた話と生成AIによる今後の期待
shift_evolve
0
180
Matterport を使ってクラスメソッド各拠点のバーチャルオフィスツアーを作成してみた
wakatsuki
0
160
楽しくGoを学び合う、LayerXの勉強会文化 / LayerX's study culture of having fun and learning Go together
ar_tama
2
350
[NIKKEI Tech Talk]Bias for Action!! 実践から学ぶための仕組とコミュニティ / Community for Practice and Learning
kanamasa
0
270
LINE WORKSへ簡単通知!Incoming Webhookアプリの紹介
mmclsntr
0
110
dxd2024-生成AIに振り回された3か月間の成功と失敗/dxd2024-link-and-motivation
lmi
2
260
How to Think Like a Performance Engineer
csswizardry
4
590
Azure AI ことはじめ
tsubakimoto_s
0
130
スタートアップにおける組織設計とスクラムの長期戦略 / Scrum Fest Kanazawa 2024
yoshikiiida
13
3.6k
技術負債による事業の失敗はなぜ起こるのか / Why do business failures due to technical debt occur?
i35_267
0
190
Featured
See All Featured
The Cult of Friendly URLs
andyhume
75
5.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
28
2.2k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
17
8.7k
How GitHub (no longer) Works
holman
305
140k
Practical Orchestrator
shlominoach
185
10k
5 minutes of I Can Smell Your CMS
philhawksworth
200
19k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.3k
Optimising Largest Contentful Paint
csswizardry
18
2.6k
Unsuck your backbone
ammeep
666
57k
Code Review Best Practice
trishagee
58
16k
Principles of Awesome APIs and How to Build Them.
keavy
124
16k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
353
29k
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 ご清聴ありがとうございました