transition runner to sts
This commit is contained in:
parent
b39a8653c1
commit
57fa5caedf
|
@ -1,17 +1,26 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
namespace: gitea
|
labels:
|
||||||
|
app: gitea
|
||||||
|
gitea: runner
|
||||||
name: runner
|
name: runner
|
||||||
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
podManagementPolicy: OrderedReady
|
||||||
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: runner
|
app: gitea
|
||||||
|
gitea: runner
|
||||||
|
serviceName: runner
|
||||||
|
updateStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: runner
|
app: gitea
|
||||||
|
gitea: runner
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gitea/act_runner
|
- image: gitea/act_runner
|
||||||
|
@ -20,5 +29,20 @@ spec:
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
value: http://gitea.gitea.svc.cluster.local:3000
|
value: http://gitea.gitea.svc.cluster.local:3000
|
||||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
value: aCVQvzqjuAmZ06uVJhRAVz44yE0vm1cO6dsXlNin
|
value: zCG0cIW5Ut2C4HP4hYwE8niOW98pClqJN3o7ifbI
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: gitea-runner-data
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: gitea-runner-data
|
||||||
|
spec:
|
||||||
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
|
storageClassName: local-path
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user