kube-cascade/gitea/runner.yaml

48 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: gitea
gitea: runner
name: runner
namespace: gitea
spec:
podManagementPolicy: OrderedReady
replicas: 0
selector:
matchLabels:
app: gitea
gitea: runner
serviceName: runner
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: gitea
gitea: 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: zCG0cIW5Ut2C4HP4hYwE8niOW98pClqJN3o7ifbI
volumeMounts:
- mountPath: /data
name: gitea-runner-data
restartPolicy: Always
dnsPolicy: ClusterFirst
volumeClaimTemplates:
- metadata:
name: gitea-runner-data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: local-path
resources:
requests:
storage: 10Gi