diff --git a/infrastructure-provisioning/on-prem/talos/talconfig.yaml b/infrastructure-provisioning/on-prem/talos/talconfig.yaml index 5ed08cb7..1ff61a2c 100644 --- a/infrastructure-provisioning/on-prem/talos/talconfig.yaml +++ b/infrastructure-provisioning/on-prem/talos/talconfig.yaml @@ -1,7 +1,7 @@ clusterName: opcluster -talosVersion: v1.5.1 -kubernetesVersion: 1.28.0 +talosVersion: v1.5.2 +kubernetesVersion: 1.28.2 endpoint: "https://opcluster.homelab.danmanners.com:6443" cniConfig: diff --git a/manifests/workloads/gitea/database/git-cluster.yaml b/manifests/workloads/gitea/database/git-cluster.yaml index 95328024..2ecfe6e8 100644 --- a/manifests/workloads/gitea/database/git-cluster.yaml +++ b/manifests/workloads/gitea/database/git-cluster.yaml @@ -7,7 +7,7 @@ spec: instances: 2 primaryUpdateStrategy: unsupervised storage: - size: 30Gi + size: 40Gi storageClass: ceph-rbd superuserSecret: name: gitdb-superuser diff --git a/manifests/workloads/gitea/runners/deployment.yaml b/manifests/workloads/gitea/runners/deployment.yaml new file mode 100644 index 00000000..0fc82bcf --- /dev/null +++ b/manifests/workloads/gitea/runners/deployment.yaml @@ -0,0 +1,85 @@ +apiVersion: v1 +kind: Pod +metadata: + name: gitea-runner + namespace: git + labels: + gitea-runner: '' +spec: + serviceAccountName: grt + restartPolicy: OnFailure + initContainers: + - name: fetch-runner-token + image: init-container-image + command: ["ash", "-c"] + args: + - | + apk add --no-cache curl 2>&1 >/dev/null + export ARCH=$(uname -m | awk '{print ($1=="x86_64" ? "amd64" : ($1=="aarch64" ? "arm64" : "unknown"))}') + curl -sLO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl" 2>&1 >/dev/null + chmod +x ./kubectl 2>&1 >/dev/null + ./kubectl exec -n git deployments/gitea -c gitea -- gitea actions grt > /token/GITEA_RUNNER_REGISTRATION_TOKEN + echo "Registration Token: $(cat /token/GITEA_RUNNER_REGISTRATION_TOKEN)" + resources: {} + volumeMounts: + - name: token + mountPath: /token + containers: + - name: runner + image: runner-image + command: ["sh", "-c", "while ! nc -z localhost 2376 &1 >/dev/null chmod +x ./kubectl 2>&1 >/dev/null ./kubectl exec -n git deployments/gitea -c gitea -- gitea actions grt > /token/GITEA_RUNNER_REGISTRATION_TOKEN + echo "Registration Token: $(cat /token/GITEA_RUNNER_REGISTRATION_TOKEN)" resources: {} volumeMounts: - name: token mountPath: /token containers: - name: runner - image: core.harbor.homelab.danmanners.com/docker.io/gitea/act_runner:nightly + image: runner-image command: ["sh", "-c", "while ! nc -z localhost 2376