MirrorManager: add the mountpoint for codecs

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-09-17 14:36:04 +02:00
parent 1ad5441c8b
commit 6d2919d8e2
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 19 additions and 0 deletions

View file

@ -72,6 +72,20 @@ spec:
path: /fedora_ftp_archive
persistentVolumeReclaimPolicy: Retain
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: codecs
spec:
capacity:
storage: 5Gi
accessModes:
- ReadOnlyMany
nfs:
server: ntap-iad2-c02-fedora01-nfs01a
path: /openshift_prod_codecs
persistentVolumeReclaimPolicy: Retain
---
# Then, the PVCs
apiVersion: v1
kind: PersistentVolumeClaim

View file

@ -32,6 +32,8 @@ spec:
mountPath: "/srv/pub"
- name: mirror-archive
mountPath: "/srv/pub/archive"
- name: codecs
mountPath: "/srv/codecs.fedoraproject.org"
volumes:
{{ common_volumes(with_ssh=True) | indent(4) }}
- name: mirror
@ -40,5 +42,8 @@ spec:
- name: mirror-archive
persistentVolumeClaim:
claimName: primary-mirror-archive
- name: codecs
persistentVolumeClaim:
claimName: codecs
{{ security_context() | indent(4) }}
{% endfor %}