git hub runner script made
This commit is contained in:
parent
ae10039584
commit
f2edfcae40
1 changed files with 29 additions and 0 deletions
29
github_runner/install/install_arc.sh
Normal file
29
github_runner/install/install_arc.sh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== Enable MicroK8s features ==="
|
||||
sudo microk8s enable dns rbac hostpath-storage host-access
|
||||
sudo microk8s enable metrics-server
|
||||
|
||||
|
||||
echo "=== Configure kubectl for MicroK8s ==="
|
||||
microk8s kubectl config view --raw > ~/.kube/config
|
||||
chmod 600 ~/.kube/config
|
||||
sudo usermod -aG microk8s $USER
|
||||
sudo chown -f -R $USER ~/.kube
|
||||
newgrp microk8s
|
||||
|
||||
echo "=== Install Scale Set ARC Controller ==="
|
||||
helm install arc \
|
||||
--namespace arc-systems \
|
||||
--create-namespace \
|
||||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
|
||||
|
||||
echo "=== Install MealCraft Runner Scale Set ==="
|
||||
helm install mealcraft-runners \
|
||||
--namespace arc-systems \
|
||||
--set githubConfigUrl=https://github.com/MealCraft \
|
||||
--set githubConfigSecret.github_token=$GITHUB_PAT \
|
||||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
|
||||
|
||||
echo "=== ARC installation complete ==="
|
||||
Loading…
Add table
Reference in a new issue