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