Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ocp4_workload_external_odf] Update noobaa resources #8838

Merged
merged 10 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ odf_channel: stable-4.16
ocp4_workload_external_odf_registry_size: 100Gi
ocp4_workload_external_odf_storage_cluster_deploy_retries: 60
ocp4_workload_external_odf_backingstore_pv_volumes: 3
ocp4_workload_external_odf_backingstore_custom_resources: false
ocp4_workload_external_odf_backingstore_cpu_limits: 1000m
ocp4_workload_external_odf_backingstore_cpu_requests: 800m
ocp4_workload_external_odf_backingstore_memory_limits: 4000Mi
ocp4_workload_external_odf_backingstore_memory_requests: 800Mi
ocp4_workload_external_odf_backingstore_storage_requests: 50Gi
ocp4_workload_external_odf_noobaa_custom_resources: false
ocp4_workload_external_odf_noobaa_memory_limits: 4Gi
ocp4_workload_external_odf_noobaa_memory_requests: 4Gi
ocp4_workload_external_odf_noobaa_cpu_limits: 3
ocp4_workload_external_odf_noobaa_cpu_requests: 3
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,23 @@
spec:
pvPool:
numVolumes: "{{ ocp4_workload_external_odf_backingstore_pv_volumes }}"

- name: Change default BackingStore resources
when: ocp4_workload_external_odf_backingstore_custom_resources | default(false)
kubernetes.core.k8s:
state: patched
api_version: noobaa.io/v1alpha1
kind: BackingStore
name: noobaa-default-backing-store
namespace: openshift-storage
definition:
spec:
pvPool:
resources:
limits:
cpu: "{{ ocp4_workload_external_odf_backingstore_cpu_limits }}"
memory: "{{ ocp4_workload_external_odf_backingstore_memory_limits }}"
requests:
cpu: "{{ ocp4_workload_external_odf_backingstore_cpu_requests }}"
memory: "{{ ocp4_workload_external_odf_backingstore_memory_requests }}"
storage: "{{ ocp4_workload_external_odf_backingstore_storage_requests }}"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ spec:
externalStorage:
enable: true
labelSelector: {}
{% if ocp4_workload_external_odf_noobaa_custom_resources | default(false) %}
resources:
noobaa-core:
limits:
cpu: "{{ ocp4_workload_external_odf_noobaa_cpu_limits }}"
memory: "{{ ocp4_workload_external_odf_noobaa_memory_limits }}"
requests:
cpu: "{{ ocp4_workload_external_odf_noobaa_cpu_requests }}"
memory: "{{ ocp4_workload_external_odf_noobaa_memory_requests }}"
noobaa-db:
limits:
cpu: "{{ ocp4_workload_external_odf_noobaa_cpu_limits }}"
memory: "{{ ocp4_workload_external_odf_noobaa_memory_limits }}"
requests:
cpu: "{{ ocp4_workload_external_odf_noobaa_cpu_requests }}"
memory: "{{ ocp4_workload_external_odf_noobaa_memory_requests }}"
noobaa-endpoint:
limits:
cpu: "{{ ocp4_workload_external_odf_noobaa_cpu_limits }}"
memory: "{{ ocp4_workload_external_odf_noobaa_memory_limits }}"
requests:
cpu: "{{ ocp4_workload_external_odf_noobaa_cpu_requests }}"
memory: "{{ ocp4_workload_external_odf_noobaa_memory_requests }}"
{% endif %}
managedResources:
cephBlockPools:
disableStorageClass: true
Expand Down
Loading