transition runner to sts

This commit is contained in:
James Andariese 2023-07-22 17:09:21 -05:00
parent b39a8653c1
commit 57fa5caedf

View File

@ -1,17 +1,26 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
namespace: gitea
labels:
app: gitea
gitea: runner
name: runner
namespace: gitea
spec:
replicas: 3
podManagementPolicy: OrderedReady
replicas: 1
selector:
matchLabels:
app: runner
app: gitea
gitea: runner
serviceName: runner
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: runner
app: gitea
gitea: runner
spec:
containers:
- image: gitea/act_runner
@ -20,5 +29,20 @@ spec:
- name: GITEA_INSTANCE_URL
value: http://gitea.gitea.svc.cluster.local:3000
- name: GITEA_RUNNER_REGISTRATION_TOKEN
value: aCVQvzqjuAmZ06uVJhRAVz44yE0vm1cO6dsXlNin
value: zCG0cIW5Ut2C4HP4hYwE8niOW98pClqJN3o7ifbI
volumeMounts:
- mountPath: /data
name: gitea-runner-data
restartPolicy: Always
dnsPolicy: ClusterFirst
restartPolicy: Always
volumeClaimTemplates:
- metadata:
name: gitea-runner-data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: local-path
resources:
requests:
storage: 10Gi