save current
This commit is contained in:
parent
6bfe24d054
commit
6b7d2b5215
2 changed files with 22 additions and 16 deletions
|
|
@ -1,4 +1,6 @@
|
|||
FROM library/python:3.12-bullseye
|
||||
# Personal access token 'mist _runner'
|
||||
ENV GITHUB_PAT=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
|
||||
|
||||
ARG USER=vscode
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
|
|
|||
|
|
@ -1,29 +1,33 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
# # !/bin/bash
|
||||
# set -ex
|
||||
|
||||
echo "=== Enable MicroK8s features ==="
|
||||
sudo microk8s enable dns rbac hostpath-storage host-access
|
||||
sudo microk8s enable metrics-server
|
||||
# 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 "=== 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
|
||||
|
||||
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 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 containerMode.type=kubernetes \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.accessModes[0]=ReadWriteOnce \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.storageClassName=microk8s-hostpath \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.resources.requests.storage=1Gi \
|
||||
--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