mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 04:59:54 +00:00
gitea act-runner
This commit is contained in:
8
act-runner/config.yaml
Normal file
8
act-runner/config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: act-runner-config
|
||||
namespace: act-runner
|
||||
data:
|
||||
GITEA_INSTANCE_URL: "https://gitea.michaelthomson.dev"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: "PWwo9fPd5jFTdGi9LrUuWHFCXQi4xPosuQUpmQjX"
|
||||
27
act-runner/deployment.yaml
Normal file
27
act-runner/deployment.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: act-runner
|
||||
namespace: act-runner
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: act-runner
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: act-runner
|
||||
spec:
|
||||
containers:
|
||||
- name: act-runner
|
||||
image: gitea/act_runner:nightly
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: act-runner-config
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
||||
12
act-runner/pvc.yaml
Normal file
12
act-runner/pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: data
|
||||
namespace: act-runner
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
18
bootstrap/kustomizations/kustomization-act-runner.yaml
Normal file
18
bootstrap/kustomizations/kustomization-act-runner.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: act-runner
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 15m
|
||||
path: ./act-runner
|
||||
prune: true # remove any elements later removed from the above path
|
||||
timeout: 2m # if not set, this defaults to interval duration, which is 1h
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
healthChecks:
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: act-runner
|
||||
namespace: act-runner
|
||||
4
bootstrap/namespaces/namespace-act-runner.yaml
Normal file
4
bootstrap/namespaces/namespace-act-runner.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: act-runner
|
||||
Reference in New Issue
Block a user