kube-cascade/gitea/runner.yaml

49 lines
1.1 KiB
YAML
Raw Normal View History

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