-
Notifications
You must be signed in to change notification settings - Fork 0
NOTE: Github ARC #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
NOTE: Github ARC #23
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| on: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| run: | ||
| runs-on: [ self-hosted-k8n ] | ||
| steps: | ||
| run: echo 'Hello?' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,85 @@ | ||
| # prototype | ||
| For fast prototyping! | ||
|
|
||
| - https://docs.github.com/en/actions/concepts/runners/actions-runner-controller | ||
| - https://docs.github.com/en/actions/concepts/runners/support-for-arc | ||
|
|
||
| - https://docs.github.com/en/actions/tutorials/use-actions-runner-controller/quickstart | ||
|
|
||
| - https://github.com/parjong/prototype/settings/actions/runners | ||
|
|
||
| **STEP** Install docker | ||
|
|
||
| ``` | ||
| sudo apt install docker.io | ||
| ``` | ||
|
|
||
| **STEP** Install minikube | ||
|
|
||
| https://minikube.sigs.k8s.io/docs/start/?arch=%2Flinux%2Fx86-64%2Fstable%2Fdebian+package | ||
|
|
||
| **STEP** Install helm | ||
|
|
||
| ``` | ||
| sudo snap install --classic helm | ||
| ``` | ||
|
|
||
| **STEP** Start minikube cluster | ||
|
|
||
| ``` | ||
| minikube start | ||
| ``` | ||
|
|
||
| Check the status with | ||
| ``` | ||
| minikube kubectl -- get pods -A | ||
| ``` | ||
| **STEP** | ||
|
|
||
| ``` | ||
| helm install arc \ | ||
| --namespace "arc-systems" \ | ||
| --create-namespace \ | ||
| oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller | ||
|
|
||
| ``` | ||
|
|
||
| **STEP** Create namespace | ||
|
|
||
| ``` | ||
| minikube kubectl -- create namespace arc-runners | ||
| ``` | ||
|
|
||
| **STEP** Create secret | ||
|
|
||
| https://docs.github.com/en/actions/tutorials/use-actions-runner-controller/authenticate-to-the-api#authenticating-arc-with-a-personal-access-token-classic | ||
| ``` | ||
| minikube kubectl -- create secret generic pre-defined-secret \ | ||
| --namespace=arc-runners \ | ||
| --from-literal=github_token=$GITHUB_PAT | ||
| ``` | ||
|
|
||
| **STEP** | ||
| ``` | ||
| helm install "self-hosted-k8n" \ | ||
| --namespace "arc-runners" \ | ||
| --set githubConfigUrl="https://github.com/parjong/prototype" \ | ||
| --set githubConfigSecret.github_token="${GITHUB_PAT}" \ | ||
| oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set | ||
| ``` | ||
| https://github.com/actions/actions-runner-controller/blob/master/charts/gha-runner-scale-set/values.yaml | ||
|
|
||
| <!-- helm uninstall self-hosted-k8n --namespace arc-runners --> | ||
|
|
||
| ``` | ||
| helm list -A | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ``` | ||
|
|
||
| ``` | ||
| minikube kubectl -- get pods --namespace arc-runners | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ``minikube kubectl -- get pods --namespace arc-runners 흠 🤔
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. arc-runners가 배포가 되었으니 이에 따라서 만들어야 할 것 같은데 동작을 안하네 🤔 디버깅 하는 방법을 찾아보자. |
||
| ``` | ||
|
|
||
| **Alternative** | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
흠... 이게 왜 동작을 안할까?