From 6d2919d8e2c36fea8e9c16b336f4faff8959601c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Tue, 17 Sep 2024 14:36:04 +0200 Subject: [PATCH] MirrorManager: add the mountpoint for codecs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../openshift-apps/mirrormanager/files/storage.yml | 14 ++++++++++++++ .../templates/cron-primary-mirror.yml | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/roles/openshift-apps/mirrormanager/files/storage.yml b/roles/openshift-apps/mirrormanager/files/storage.yml index 4f42f0bcee..ad56330989 100644 --- a/roles/openshift-apps/mirrormanager/files/storage.yml +++ b/roles/openshift-apps/mirrormanager/files/storage.yml @@ -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 diff --git a/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml b/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml index b6dbcdec4e..034f88e40c 100644 --- a/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml +++ b/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml @@ -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 %}