feat(forgejo): added forgejo runner
This commit is contained in:
parent
2785c57ce9
commit
a12c99f9aa
1 changed files with 45 additions and 0 deletions
45
manifests/forgejo/runner.yaml
Normal file
45
manifests/forgejo/runner.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: forgejo-runner
|
||||||
|
namespace: forgejo
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: forgejo-runner
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: forgejo-runner
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: runner
|
||||||
|
image: code.forgejo.org/forgejo/runner:3.5.1
|
||||||
|
command: ["forgejo-runner", "daemon"]
|
||||||
|
env:
|
||||||
|
- name: FORGEJO_INSTANCE_URL
|
||||||
|
value: "http://forgejo.forgejo.svc.cluster.local:3000"
|
||||||
|
- name: FORGEJO_RUNNER_REGISTRATION_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: forgejo-runner-token
|
||||||
|
key: token
|
||||||
|
- name: FORGEJO_RUNNER_NAME
|
||||||
|
value: "k3s-runner"
|
||||||
|
- name: DOCKER_HOST
|
||||||
|
value: tcp://localhost:2375
|
||||||
|
- name: DOCKER_TLS_CERTDIR
|
||||||
|
value: ""
|
||||||
|
volumeMounts:
|
||||||
|
- name: dind-storage
|
||||||
|
mountPath: /var/lib/docker
|
||||||
|
- name: dind
|
||||||
|
image: docker:dind
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- name: dind-storage
|
||||||
|
mountPath: /var/lib/docker
|
||||||
|
volumes:
|
||||||
|
- name: dind-storage
|
||||||
|
emptyDir: {}
|
||||||
Loading…
Add table
Reference in a new issue