Kubernetes.K3s.installLog/services/Gitea-Legacy/deployment-act-runner-dind-rootless.yaml
2024-11-26 21:20:36 +11:00

77 lines
2.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: act-runner-dind-rootless
name: act-runner-dind-rootless
namespace: gitea-legacy
spec:
replicas: 1
selector:
matchLabels:
app: act-runner-dind-rootless
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
app: act-runner-dind-rootless
spec:
hostname: act-runner-dind-rootless
restartPolicy: Always
volumes:
- name: runner-config
configMap:
name: runner-config
items:
- key: dind-rootless-config.yml
path: dind-rootless-config.yml
- name: docker-certs
emptyDir: {}
- name: runner-data
persistentVolumeClaim:
claimName: act-runner-dind-rootless
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
- name: flexvolsmb-runner-scratch
persistentVolumeClaim:
claimName: flexvolsmb-runner-scratch
securityContext:
fsGroup: 1000
containers:
- name: runner
image: gitea/act_runner:nightly-dind-rootless
imagePullPolicy: Always
env:
- name: CONFIG_FILE
value: /opt/act/config.yml
- name: DOCKER_HOST
value: tcp://localhost:2376
- name: DOCKER_CERT_PATH
value: /certs/client
- name: DOCKER_TLS_VERIFY
value: "1"
- name: GITEA_INSTANCE_URL
value: http://gitea.gitea.svc.cluster.local:3000
- name: GITEA_RUNNER_LABELS
value: dind-rootless:docker://node:21-bullseye
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: runner-secret
key: token
securityContext:
privileged: true
volumeMounts:
- name: runner-data
mountPath: /data
- name: runner-config
mountPath: /opt/act/config.yml
subPath: dind-rootless-config.yml
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch