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
160
Amazon RDS for Db2
takesection
0
29
らいよんで、とうだんしたよ、えるてぃーで
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
パスワードを保存しますか?
hanacchi
0
240
From here to resilience - a travel guide
ufried
1
150
知識と実践を紡ぐGenAI / Connecting Knowledge and experience with GenAI
aki_moon
2
120
TypeScript の抽象構文木を用いた、数百を超える API の大規模リファクタリング戦略
yanaemon
6
1.2k
AWS アーキテクチャ作図入門/aws-architecture-diagram-101
ma2shita
16
6.7k
サービス開発におけるVue3とTypeScriptの親和性について
tsukuha
9
1.7k
Password cracking: past, present, future
openwall
0
110
TDD - Test Driven Drupal
opdavies
0
3k
【リラン】AIの光と闇?失敗しないために知っておきたいAIリスクとその対応 ①政府の動き編
tkhresk
0
130
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
0
2k
高専で制御を、大学でセンシングを学び、次は脳みそ
satoshirobatofujimoto
0
130
認知症フレンドリーテックとスタックチャン
naokiuc
0
400
Featured
See All Featured
The Invisible Side of Design
smashingmag
294
49k
Unsuck your backbone
ammeep
664
57k
Designing with Data
zakiwarfel
96
4.8k
[RailsConf 2023] Rails as a piece of cake
palkan
28
4k
The Illustrated Children's Guide to Kubernetes
chrisshort
32
47k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
9
1.3k
Making the Leap to Tech Lead
cromwellryan
125
8.5k
The Cost Of JavaScript in 2023
addyosmani
21
3.9k
Robots, Beer and Maslow
schacon
PRO
155
7.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
228
16k
Ruby is Unlike a Banana
tanoku
96
10k
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 ご清聴ありがとうございました