You've already forked act_runner-helm
Add shared storage
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: act-runner
|
||||
type: application
|
||||
version: 1.3.0
|
||||
version: 1.4.0
|
||||
appVersion: "0.2.10"
|
||||
|
||||
@@ -49,6 +49,10 @@ spec:
|
||||
key: act-runner-token
|
||||
- name: GITEA_RUNNER_LABELS
|
||||
value: {{ join "," .Values.act_runner.labels }}
|
||||
- name: ACT_CACHE_SERVER_ENABLED
|
||||
value: "true"
|
||||
- name: ACT_CACHE_SERVER_DIR
|
||||
value: "/data/cache/server"
|
||||
volumeMounts:
|
||||
- name: docker-data
|
||||
mountPath: /shared
|
||||
@@ -69,12 +73,17 @@ spec:
|
||||
volumeMounts:
|
||||
- name: docker-data
|
||||
mountPath: /shared
|
||||
- name: {{ include "act_runner.fullname" . }}-shared-pvc
|
||||
mountPath: "/data/cache/server"
|
||||
volumes:
|
||||
- name: docker-data
|
||||
emptyDir: { }
|
||||
- name: {{ include "act_runner.fullname" . }}-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "act_runner.fullname" . }}-pvc
|
||||
- name: {{ include "act_runner.fullname" . }}-shared-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "act_runner.fullname" . }}-shared-pvc
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
||||
@@ -15,4 +15,22 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: "1024Mi"
|
||||
storageClassName: {{ .Values.act_runner.storageclass }}
|
||||
storageClassName: {{ .Values.act_runner.storageClass }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "act_runner.fullname" . }}-shared-pvc
|
||||
labels:
|
||||
{{- include "act_runner.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.act_runner.sharedStorageSize }}
|
||||
storageClassName: {{ .Values.act_runner.sharedStorageClass }}
|
||||
|
||||
@@ -62,7 +62,9 @@ tolerations: [ ]
|
||||
affinity: { }
|
||||
|
||||
act_runner:
|
||||
storageclass: "default"
|
||||
storageClass: "default"
|
||||
sharedStorageClass: "default"
|
||||
sharedStorageSize: "50Gi"
|
||||
registryMirror: ""
|
||||
|
||||
instance: "https://gitea.example.com"
|
||||
|
||||
Reference in New Issue
Block a user