29 lines
908 B
Bash
29 lines
908 B
Bash
#!/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 ==="
|