feat(actions): bootstrap sol runner
All checks were successful
runner-smoke / smoke (push) Successful in 36s
All checks were successful
runner-smoke / smoke (push) Successful in 36s
This commit is contained in:
90
bootstrap/gitea-actions/runner-deployment.yaml
Normal file
90
bootstrap/gitea-actions/runner-deployment.yaml
Normal file
@@ -0,0 +1,90 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: trade-next-act-runner
|
||||
namespace: gitea-actions
|
||||
labels:
|
||||
app.kubernetes.io/name: trade-next-act-runner
|
||||
app.kubernetes.io/part-of: trade-gitops
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: trade-next-act-runner
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: trade-next-act-runner
|
||||
app.kubernetes.io/part-of: trade-gitops
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: sol
|
||||
volumes:
|
||||
- name: runner-data
|
||||
hostPath:
|
||||
path: /var/lib/trade-gitops/gitea-actions/runner-data
|
||||
type: DirectoryOrCreate
|
||||
- name: runner-config
|
||||
configMap:
|
||||
name: act-runner-config
|
||||
- name: docker-sock
|
||||
emptyDir:
|
||||
sizeLimit: 1Gi
|
||||
- name: dind-data
|
||||
emptyDir:
|
||||
sizeLimit: 20Gi
|
||||
containers:
|
||||
- name: dind
|
||||
image: docker:27-dind
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
args:
|
||||
- --host=unix:///var/run/docker.sock
|
||||
- --group=1001
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 1Gi
|
||||
volumeMounts:
|
||||
- name: docker-sock
|
||||
mountPath: /var/run
|
||||
- name: dind-data
|
||||
mountPath: /var/lib/docker
|
||||
- name: runner
|
||||
image: docker.io/gitea/act_runner:latest
|
||||
env:
|
||||
- name: CONFIG_FILE
|
||||
value: /config/config.yaml
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: https://gitea.mpabi.pl
|
||||
- name: GITEA_RUNNER_NAME
|
||||
value: trade-next-sol
|
||||
- name: GITEA_RUNNER_LABELS
|
||||
value: ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest,k3s-deploy:docker://docker.gitea.com/runner-images:ubuntu-latest
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: act-runner-registration-token
|
||||
key: token
|
||||
- name: DOCKER_HOST
|
||||
value: unix:///var/run/docker.sock
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: runner-data
|
||||
mountPath: /data
|
||||
- name: runner-config
|
||||
mountPath: /config
|
||||
- name: docker-sock
|
||||
mountPath: /var/run
|
||||
Reference in New Issue
Block a user