fix: add PVC for runner state to persist registration across restarts
This commit is contained in:
@@ -42,6 +42,8 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: runner-config
|
- name: runner-config
|
||||||
mountPath: /etc/runner
|
mountPath: /etc/runner
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
|
||||||
- name: dind
|
- name: dind
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
@@ -63,3 +65,6 @@ spec:
|
|||||||
- name: runner-config
|
- name: runner-config
|
||||||
configMap:
|
configMap:
|
||||||
name: gitea-runner-config
|
name: gitea-runner-config
|
||||||
|
- name: runner-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: gitea-runner-data
|
||||||
|
|||||||
12
runner/pvc.yaml
Normal file
12
runner/pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: gitea-runner-data
|
||||||
|
namespace: runner
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: do-block-storage
|
||||||
Reference in New Issue
Block a user