Mirrormanager: the nfs mount is only available in prod
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
6d2919d8e2
commit
a00d7db58c
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
#
|
|
||||||
### Primary mirror scanning cron jobs
|
### Primary mirror scanning cron jobs
|
||||||
#
|
#
|
||||||
{% from "_macros.yml" import common_volume_mounts, common_volumes, common_env, security_context with context %}
|
{% from "_macros.yml" import common_volume_mounts, common_volumes, common_env, security_context with context %}
|
||||||
|
@ -32,8 +32,10 @@ spec:
|
||||||
mountPath: "/srv/pub"
|
mountPath: "/srv/pub"
|
||||||
- name: mirror-archive
|
- name: mirror-archive
|
||||||
mountPath: "/srv/pub/archive"
|
mountPath: "/srv/pub/archive"
|
||||||
|
{% if env == 'production' %}
|
||||||
- name: codecs
|
- name: codecs
|
||||||
mountPath: "/srv/codecs.fedoraproject.org"
|
mountPath: "/srv/codecs.fedoraproject.org"
|
||||||
|
{% endif %}
|
||||||
volumes:
|
volumes:
|
||||||
{{ common_volumes(with_ssh=True) | indent(4) }}
|
{{ common_volumes(with_ssh=True) | indent(4) }}
|
||||||
- name: mirror
|
- name: mirror
|
||||||
|
@ -42,8 +44,10 @@ spec:
|
||||||
- name: mirror-archive
|
- name: mirror-archive
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: primary-mirror-archive
|
claimName: primary-mirror-archive
|
||||||
|
{% if env == 'production' %}
|
||||||
- name: codecs
|
- name: codecs
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: codecs
|
claimName: codecs
|
||||||
|
{% endif %}
|
||||||
{{ security_context() | indent(4) }}
|
{{ security_context() | indent(4) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue