Skip to content
Snippets Groups Projects
Verified Commit ad23b287 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

staging: Add extra volume configuration for the pathslicing objstorage

Refs. swh/infra/sysadm-environment#5164
parent 1dae05ea
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,10 @@ spec:
volumeMounts:
- name: configuration
mountPath: /etc/swh
{{ range $volume_name, $volume_config := .configuration.volumes }}
- name: {{ $volume_name }}
mountPath: {{ $volume_config.mountPath }}
{{ end }}
volumes:
- name: configuration
emptyDir: {}
......@@ -137,4 +141,9 @@ spec:
items:
- key: "config.yml.template"
path: "config.yml.template"
{{ range $volume_name, $volume_config := .configuration.volumes }}
- name: {{ $volume_name }}
persistentVolumeClaim:
claimName: {{ $volume_config.persistentVolumeClaim }}
{{ end }}
{{- end -}}
......@@ -851,6 +851,12 @@ objstorage:
minReplicaCount: 2
maxReplicaCount: 10
cpuPercentageUsage: 100
volumes:
staging-pathslicing-pv:
# See k8s-cluster-config for such pvc declaration
persistentVolumeClaim: staging-pathslicing-pv-claim
mountPath: /srv/softwareheritage/objects
# mandatory
# check readWriteStorageConfiguration example to configure your storage
objstorageConfigurationRef: readWriteObjstorageConfiguration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment