add runners

This commit is contained in:
James Andariese 2023-07-22 16:46:29 -05:00
parent d980866a02
commit c76eb5bb09
4 changed files with 41 additions and 1 deletions

View File

@ -16,7 +16,7 @@ spec:
service: service:
name: gitea name: gitea
port: port:
number: 3000 name: gitea
tls: tls:
- hosts: - hosts:
- git.strudelline.net - git.strudelline.net

24
gitea/runner.yaml Normal file
View File

@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: gitea
name: runner
spec:
replicas: 3
selector:
matchLabels:
app: runner
template:
metadata:
labels:
app: runner
spec:
containers:
- image: gitea/act_runner
name: runner
env:
- name: GITEA_INSTANCE_URL
value: http://gitea.gitea.svc.cluster.local:3000
- name: GITEA_RUNNER_REGISTRATION_TOKEN
value: OglSwX59lJ5t96JTwu1AIwUkQEkgxrGdd7TQvQhC
restartPolicy: Always

16
gitea/svc-http.yaml Normal file
View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: gitea
name: gitea
namespace: gitea
spec:
selector:
app: gitea
ports:
- port: 3000
name: gitea
protocol: TCP
targetPort: 3000
type: ClusterIP