From 9f8ae4b0fa50d5abe26770090c47b3b8d5da75aa Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sat, 25 May 2024 10:45:27 +0200 Subject: [PATCH] gitea revert to dind runner --- infrastructure/external/kustomization.yaml | 1 - .../external/wireguard.ingress.yaml | 38 --------- infrastructure/gitea/actions.deployment.yaml | 79 +++++++++---------- infrastructure/gitea/actions.rbac.yaml | 38 --------- .../gitea/actions.sealedsecret.yaml | 2 +- infrastructure/gitea/kustomization.yaml | 8 +- 6 files changed, 42 insertions(+), 124 deletions(-) delete mode 100644 infrastructure/external/wireguard.ingress.yaml delete mode 100644 infrastructure/gitea/actions.rbac.yaml diff --git a/infrastructure/external/kustomization.yaml b/infrastructure/external/kustomization.yaml index a6f6a8b..57b916c 100644 --- a/infrastructure/external/kustomization.yaml +++ b/infrastructure/external/kustomization.yaml @@ -9,4 +9,3 @@ resources: - omv-s3.ingress.yaml - openmediavault.ingress.yaml - proxmox.ingress.yaml - - wireguard.ingress.yaml \ No newline at end of file diff --git a/infrastructure/external/wireguard.ingress.yaml b/infrastructure/external/wireguard.ingress.yaml deleted file mode 100644 index f57b346..0000000 --- a/infrastructure/external/wireguard.ingress.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: wireguard-ingressroute - namespace: external -spec: - entryPoints: - - websecure - routes: - - match: Host(`wireguard.kluster.moll.re`) - kind: Rule - services: - - name: wireguard - port: 443 - scheme: https - tls: - certResolver: default-tls ---- -apiVersion: v1 -kind: Endpoints -metadata: - name: wireguard - namespace: external -subsets: - - addresses: - - ip: 192.168.2.1 - ports: - - port: 443 ---- -apiVersion: v1 -kind: Service -metadata: - name: wireguard - namespace: external -spec: - ports: - - port: 443 - targetPort: 443 \ No newline at end of file diff --git a/infrastructure/gitea/actions.deployment.yaml b/infrastructure/gitea/actions.deployment.yaml index 6abe7ec..b8f337e 100644 --- a/infrastructure/gitea/actions.deployment.yaml +++ b/infrastructure/gitea/actions.deployment.yaml @@ -1,28 +1,24 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: actions-runner + labels: + app: act-runner + name: act-runner spec: + replicas: 1 selector: matchLabels: - app: actions-runner + app: act-runner template: metadata: labels: - app: actions-runner + app: act-runner spec: - hostname: kube-runner - serviceAccountName: actions-runner + restartPolicy: Always containers: - - name: actions-runner - image: actions-runner - resources: - requests: - memory: "128Mi" - cpu: "500m" - limits: - memory: "2Gi" - cpu: "2" + - name: runner + image: runner + command: ["sh", "-c", "while ! nc -z localhost 2376