terraform plan
This commit is contained in:
parent
911a35b079
commit
505aa2cc55
1 changed files with 19 additions and 23 deletions
|
|
@ -1,41 +1,37 @@
|
|||
# # !/bin/bash
|
||||
# set -ex
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
# echo "=== Enable MicroK8s features ==="
|
||||
# OPTIONAL: Enable MicroK8s features first
|
||||
# sudo microk8s enable dns rbac hostpath-storage host-access
|
||||
# sudo microk8s enable metrics-server
|
||||
|
||||
|
||||
# echo "=== Configure kubectl for MicroK8s ==="
|
||||
# OPTIONAL: Configure kubectl
|
||||
# microk8s kubectl config view --raw > ~/.kube/config
|
||||
# chmod 600 ~/.kube/config
|
||||
# sudo usermod -aG microk8s $USER
|
||||
# sudo chown -f -R $USER ~/.kube
|
||||
|
||||
helm uninstall arc -n arc-systems || true
|
||||
|
||||
# if you need to uninstall first
|
||||
helm uninstall arc -n arc-systems
|
||||
echo "=== Install Scale Set ARC Controller ==="
|
||||
echo "=== Install ARC Scale Set Controller ==="
|
||||
helm install arc \
|
||||
--namespace arc-systems \
|
||||
--create-namespace \
|
||||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
|
||||
|
||||
helm uninstall mealcraft-runners -n arc-systems
|
||||
helm uninstall mealcraft-runners -n arc-systems || true
|
||||
|
||||
helm install mealcraft-runners \
|
||||
--namespace arc-systems \
|
||||
--set runnerScaleSetName=mealcraft-runners \
|
||||
--set runnerLabels[0]=mealcraft-runners \
|
||||
--set githubConfigUrl=https://github.com/MealCraft \
|
||||
--set githubConfigSecret.github_token=$GITHUB_PAT \
|
||||
--set githubConfigSecret.name=github-secret \
|
||||
\
|
||||
--set containerMode.type=kubernetes \
|
||||
--set containerMode.kubernetesModeDefaultContainer.image=ubuntu:22.04 \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.accessModes[0]=ReadWriteOnce \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.storageClassName=microk8s-hostpath \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.resources.requests.storage=1Gi \
|
||||
\
|
||||
--create-namespace \
|
||||
--set runnerScaleSetName="mealcraft-runners" \
|
||||
--set githubConfigUrl="https://github.com/MealCraft" \
|
||||
--set githubConfigSecret.name="github-secret" \
|
||||
--set githubConfigSecret.github_token="$GITHUB_PAT" \
|
||||
--set containerMode.type="kubernetes" \
|
||||
--set containerMode.kubernetesModeDefaultContainer.image="ubuntu:22.04" \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.accessModes[0]="ReadWriteOnce" \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.storageClassName="microk8s-hostpath" \
|
||||
--set containerMode.kubernetesModeWorkVolumeClaim.resources.requests.storage="1Gi" \
|
||||
--set runnerLabels[0]="mealcraft" \
|
||||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
|
||||
|
||||
echo "=== ARC installation complete ==="
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue