add runners
This commit is contained in:
parent
d980866a02
commit
c76eb5bb09
|
@ -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
24
gitea/runner.yaml
Normal 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
16
gitea/svc-http.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user